-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[PR] Fix CI API tests failing #314
Conversation
Codecov Report
@@ Coverage Diff @@
## main #314 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 15 15
Lines 475 475
=========================================
Hits 475 475 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
This is super weird. The server is running and I've tested the tests locally and they all pass. But it seems that the tests are not reaching the server running on |
I've looked everywhere but none of the issues help the case. The connection to
Again, running these tests on my computer works. And I'm running |
@LuchoTurtle this is looking promising. 👌 |
lib/api/fly_dev.json
Outdated
@@ -0,0 +1,12 @@ | |||
{ | |||
"host": "https://mvp-pr-314.fly.dev", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does this hard-coding of the host
mean that this will only work while the 314
PR is open? 💭
What happens to the next PR that doesn't have this ID?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nelsonic dang it, I thought I had gotten everything covered. I knew one last step was missing. You are right, this was a temporary fix just to see if the runs were being correctly executed on my local machine back-to-back.
Please assign the PR back to me, I will address this. Sorry about this, completely forgot this last step.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure thing. re-assigned to you. Please review your own PRs before assigning them to ensure you have checked everything. 🙏
@LuchoTurtle do you think we could remove the line: Line 73 in f96d854
So that the deployment of the If the I feel like we're burning a lot of time waiting for the CI to run to debug this ... ⏳ |
The Run hopp test -e ./lib/api/fly_dev.json ./lib/api/MVP.json
Running: MVP/Tags/Create tag
POST https://mvp-pr-31[4](https://github.com/dwyl/mvp/actions/runs/4291630310/jobs/7477259821#step:5:5).fly.dev/api/tags ERROR
⚠ Error running request.
⚠ Error running test-script. While the other ones all succeed. This didn't happen prior to changing the |
OK. looks like you've figured out the "hard" part of injecting the review app URL into the |
That appears to have fixed it. |
Nevermind. I don't know why Github is showing it was unsuccessful when the https://github.com/dwyl/mvp/actions/runs/4291836918 run was ... |
Ok, that should do it. Over to you, @nelsonic |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@LuchoTurtle looks good. 👌
Really hope this is more robust now. 🤞🏼
Thanks. ☀️
closes #297
closes #315