-
Notifications
You must be signed in to change notification settings - Fork 320
Bump go to 1.23, fix tests, add more images #464
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
Conversation
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, that all makes sense
Looks like the container test all ship an outdated go? I guess from the normal LTS repos. Likely need to sideload go there.
2709a7d
to
fe1e568
Compare
Move the logic of running tests in a container to the script, as it is easy to work with. No change in functionality, except for shorter sleep duration. Signed-off-by: Kir Kolyshkin <[email protected]>
be69c8f
to
128647a
Compare
Signed-off-by: Kir Kolyshkin <[email protected]>
Instead of relying a distro to provide a recent Go version, let's install it ourselves from a binary distribution. Signed-off-by: Kir Kolyshkin <[email protected]>
Currently, go 1.23 is the "old" supported version, meaning the older versions are no longer supported. Let's use it as a minimally required version. Signed-off-by: Kir Kolyshkin <[email protected]>
In some cases, TestListJobs fails like this: methods_test.go:712: oneshot.service job not found in list This happens because 'ExecStart=/bin/sh sleep 400' doesn't really run sleep; it merely fails. So, the job is queued and then ExecStart fails instantly, and if the test checks the job status after the failure, the test fails. Fix the ExecStart. While at it, - fix unit description; - remove ExecStartPost as it's useless (and also wrong). Signed-off-by: Kir Kolyshkin <[email protected]>
On newer distros, some session paths have c instead of _. Fix the test accordingly. Signed-off-by: Kir Kolyshkin <[email protected]>
The output also missed a newline. Signed-off-by: Kir Kolyshkin <[email protected]>
This test assumed the first entry in systemd-journald.service log comes with MESSAGE_ID set. This is not true for modern distros, so the test fails. Add a loop to scan for MESSAGE_ID, and skip if not found. Co-authored-by: Claude Code Signed-off-by: Kir Kolyshkin <[email protected]>
1. Replace ubuntu 22.04 with 24.04 2. Add debian trixie (13, "stable"). 3. Add fedora. Signed-off-by: Kir Kolyshkin <[email protected]>
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
Please see individual commits for details.
High level overview:
These are moved to a followup PR: