-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Cirrus: Update CI VM Image to F38 #18326
Conversation
@mtrmac IIRC you know a lot about these things. Is it okay for me to replace these calls as suggested in the linter output? |
I think the answer to that changes a bit based on whether we require Go 1.20 for Podman (https://go.dev/doc/go1.20 , random seed by default).
Would not work, vendor/github.com/docker/docker/pkg/namesgenerator/names-generator.go uses the global RNG. With Go 1.20, we can just delete the seeding to silence the warning without a behavior change. Ideally, the generator should take an explicit RNG parameter, and Podman should call
Supposedly the
Sure, use a |
Thanks for your input @mtrmac |
@mtrmac PTAL a82f74c see if I got that right. Are you at all concerned that these changes will be invalid for <F38 which isn't using golang 1.20? Edit: Ref. 1.19 docs say:
vs in 1.20 (assuming we remove the Seed() call):
|
1f4f50c
to
dad5e83
Compare
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 worried that fixing the libpod
part completely cleanly might require changes to docker/docker/pkg/namesgenerator
.
@vrothberg & @mheon Might could use your input on this Edit: Not sure I'm using the "initialized" term right. |
Force-push: Add go <1.20 build tag to handle the Seed() change. Also added new CI validation task for rawhide - it would have caught this problem earlier. |
0c35a2d
to
1c3b018
Compare
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.
LGTM. Changing the generator would be a bit cleaner, but also feels rather out of scope.
The RNG changes at least, that is. I didn’t check what else is changing, and if anything is failing. |
@vrothberg & @mheon un-Ping. I think Miloslav and I have it worked out. |
Force-push: simple file rename & rebase against main. |
Force-push: Added a simple e2e test to confirm running two containers w/ generated names works. |
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 would suggest just removing the new test
72c9cb5
to
e8a0de4
Compare
Ref: https://pkg.go.dev/math/[email protected]#Seed Note: For `runtime_test.go`, this test-case was never actually doing what appears as it's intent . Fixing it to work as intended would be require incredibly libpod-invasive changes. Do the least-worse thing and simply confirm that consecutive generated names are different. Signed-off-by: Chris Evich <[email protected]>
Signed-off-by: Chris Evich <[email protected]>
Signed-off-by: Chris Evich <[email protected]>
This should be ready now. |
/lgtm |
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.
LGTM.
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cevich, rhatdan The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Bump F36 -> F37, and F37 -> F38
Does this PR introduce a user-facing change?