-
Notifications
You must be signed in to change notification settings - Fork 297
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
Remove /lifecycle
symlink on created builders
#763
Conversation
Codecov Report
@@ Coverage Diff @@
## main #763 +/- ##
==========================================
+ Coverage 73.52% 73.53% +0.02%
==========================================
Files 75 75
Lines 5112 5103 -9
==========================================
- Hits 3758 3752 -6
+ Misses 1039 1037 -2
+ Partials 315 314 -1
Flags with carried forward coverage won't be shown. Click here to find out more. |
- reduces flakes that result from gouroutines sharing environment variables Signed-off-by: dwillist <[email protected]>
Signed-off-by: dwillist <[email protected]>
Signed-off-by: dwillist <[email protected]>
0d82f12
to
5b67313
Compare
@@ -18,7 +18,7 @@ import ( | |||
) | |||
|
|||
func TestSetRunImageMirrorsCommand(t *testing.T) { | |||
spec.Run(t, "Commands", testSetRunImageMirrorsCommand, spec.Parallel(), spec.Report(report.Terminal{})) | |||
spec.Run(t, "Commands", testSetRunImageMirrorsCommand, spec.Sequential(), spec.Report(report.Terminal{})) |
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'm sort of confused by this as it seems we use spec.Parallel()
more often than spec.Sequential()
. What's the reason that this test needs to be run sequentially?
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.
This test is uses environment variables during setup here and here, environment variables are shared by goroutines so running this test with any sort of parallelism will have race conditions. Using make unit
runs unit tests sequentially by using a single goroutine configured here so they end up passing.
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.
Thanks for the contribution! Keep it up!
/lifecycle
symlink on created builders
Summary
Remove code to create obsolete
/lifecycle
symlink in buildersSmall fix to run image mirror tests to disable parallel test execution.
Before
Directory structure of builders:
After
Directory structure of builders:
Documentation
No documentation needed
Related
Resolves #460