-
Notifications
You must be signed in to change notification settings - Fork 33
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
Cleanups to help fix CI #72
Conversation
Codecov Report
@@ Coverage Diff @@
## main #72 +/- ##
=======================================
Coverage 33.89% 33.89%
=======================================
Files 3 3
Lines 413 413
=======================================
Hits 140 140
Misses 250 250
Partials 23 23 Continue to review full report at Codecov.
|
5258063
to
f7ba43a
Compare
I'm concerned that CI is working within PRs but broken on main, if that's the case, landing this will be a nice improvement, but won't fix the build for pushing to quay and we'll still need deeper debugging and a follow-up. |
Please continue with that deeper dive, this is a priority. |
Signed-off-by: Nahum Shalman <[email protected]>
f7ba43a
to
7ae4277
Compare
Okay, I've managed to trip the intermittent test failure:
Flaky tests are the worst. This might require deeper changes to fix that test. |
The issue is the use of a hardcoded port hegel/http-server/http_server_test.go Lines 914 to 915 in 9bb4194
being assigned to a global variable hegel/http-server/http_server.go Line 26 in 9bb4194
This is exacerbated by the fact that during CI we run tests twice: hegel/.github/workflows/ci.yaml Lines 24 to 27 in 9bb4194
This greatly increases the chances that the port won't be properly available. For now the easy fix is to consolidate to a single test run in CI, and later a deeper refactor can make this code more flexible about how it chooses a port for running tests. |
See #72 (comment) Signed-off-by: Nahum Shalman <[email protected]>
Description
Fix CI
Why is this needed
CI is broken
How Has This Been Tested?
How are existing users impacted? What migration steps/scripts do we need?
Checklist:
I have: