-
Notifications
You must be signed in to change notification settings - Fork 187
chore: improve mysql readiness checks #2397
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
chore: improve mysql readiness checks #2397
Conversation
Signed-off-by: Ramon Petgrave <ramon.petgrave64@gmail.com>
4f21656 to
fa27085
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2397 +/- ##
===========================================
- Coverage 66.46% 25.25% -41.21%
===========================================
Files 92 192 +100
Lines 9258 24857 +15599
===========================================
+ Hits 6153 6277 +124
- Misses 2359 17803 +15444
- Partials 746 777 +31
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| retries: 3 | ||
| start_period: 10s | ||
| retries: 5 | ||
| start_period: 90s |
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.
Are you developing on macOS or Linux? While this is just for developers so I'm not really concerned with bumping this, I want to make sure there's not a bug with the container.
Personally, I noticed that when I switched from developing on Linux to macOS, I saw more startup errors. Saw some mentions online of needing a different MySQL container but didn't dig into this more.
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.
Yes, the e2e-test.sh works on linux, but I see some platform-related errors when running it on mac, I suspect I need to remove the platform: specification and somehow find another multiplatform image for the gcp-pubsub-emulator
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.
@bobcallaway thanks, #2406 helps out, though I'm still having some perhaps unrelated port-forwarding issues on mac with rancher-desktop.
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.
can you share your specific commands that you're running which aren't working?
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.
I was running both e2e-test.sh and ./tests/e2e-test.sh. It turns out the issue was with my Mac. Somehow another program ssh was using the same port 3000 as rekor-server. I suspect it was because of vscode's remote development feature. But rancher didn't error or warn me about that conflict. It's working fine now.
Signed-off-by: Ramon Petgrave <ramon.petgrave64@gmail.com>
sigstore/rekor-tiles#38
Summary
Improves the docker-compose.yml file by enforcing healtchecks between mysql and the trillian services. It also increases the timeouts for the healthchecks.
See https://docs.docker.com/reference/dockerfile/#healthcheck
This improves the developer experience, so we don't see so many startup errors for the trillian services, like
Testing process
On a personal machine, it can take 90s for mysql to be ready.
trillian-log-signer starts cleanly
Release Note
Better timeouts and readiness checks in docker-compose.yml.
Documentation