-
Notifications
You must be signed in to change notification settings - Fork 171
F38 Changes: Kola test for shorter shutdown timer #2247
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
|
If I run that on an FCOS system right now I get: |
|
You should also check all values, not just one. |
|
Can you also add a link to the issue you're fixing to the commit message and update the first comment here? Something like: |
|
when you say check all values do you mean these three : |
2e3a936 to
c3a662b
Compare
|
All the values mentioned in the configuration that we are changing in https://src.fedoraproject.org/rpms/fedora-release/pull-request/249 from coreos/fedora-coreos-tracker#1404 |
|
So that two times 3 values as we are changing user & system values. |
20dc31e to
80dbb3c
Compare
aba3a28 to
e482f65
Compare
9b8cc73 to
8510088
Compare
|
Alright, this is now failing on: which is expected given that this is only in the systemd version in rawhide now. What we need to do now is to check the systemd version using the rpm command (look for that logic in other tests here) and check this value only if systemd is recent enough. |
a0b4d6a to
80dbb3c
Compare
travier
left a comment
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.
Two nits but LGTM otherwise
716e287 to
8510088
Compare
| fatal $error | ||
| fi | ||
|
|
||
| if [[ "${systemd_version}" == "${required_version}" || "${systemd_version}" > "${required_version}" ]]; then |
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 not sure if the comparison will work with the . in the middle. Does it work?
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've run the test on rawhide and fcos and they both seem to be passing at the moment. Here are the results i got :
Output 1:
`adamobrien@fedora:~/OS-Builds/fcos » cosa kola run ext.config.systemd
+cosa:16> podman run --rm -ti --security-opt 'label=disable' --privileged '--uidmap=1000:0:1' '--uidmap=0:1:1000' --uidmap 1001:1001:64536 -v /home/adamobrien/OS-Builds/fcos:/srv/ --device /dev/kvm --device /dev/fuse --tmpfs /tmp -v /var/tmp:/var/tmp quay.io/coreos-assembler/coreos-assembler:latest kola run ext.config.systemd
kola -p qemu-unpriv --output-dir tmp/kola run ext.config.systemd
⚠️ Skipping kola test pattern "fcos.internet":
👉 https://github.com/coreos/coreos-assembler/pull/1478
⚠️ Skipping kola test pattern "podman.workflow":
👉 https://github.com/coreos/coreos-assembler/pull/1478
🕒 Snoozing kola test pattern "ext.config.platforms.aws.nvme" until Mar 10 2023:
👉 https://github.com/coreos/fedora-coreos-tracker/issues/1306#issuecomment-1426106534
=== RUN non-exclusive-test-bucket-0
=== RUN non-exclusive-test-bucket-0/ext.config.systemd
--- PASS: non-exclusive-test-bucket-0 (27.15s)
--- PASS: non-exclusive-test-bucket-0/ext.config.systemd (1.52s)
PASS, output in tmp/kola
+cosa:24> rc=0
+cosa:24> set +x`
Output 2:
`adamobrien@fedora:~/OS-Builds/fcos-rawhide » cosa kola run ext.config.systemd
+cosa:16> podman run --rm -ti --security-opt 'label=disable' --privileged '--uidmap=1000:0:1' '--uidmap=0:1:1000' --uidmap 1001:1001:64536 -v /home/adamobrien/OS-Builds/fcos-rawhide:/srv/ --device /dev/kvm --device /dev/fuse --tmpfs /tmp -v /var/tmp:/var/tmp quay.io/coreos-assembler/coreos-assembler:latest kola run ext.config.systemd
kola -p qemu-unpriv --output-dir tmp/kola run ext.config.systemd
⚠️ Skipping kola test pattern "fcos.internet":
👉 https://github.com/coreos/coreos-assembler/pull/1478
⚠️ Skipping kola test pattern "podman.workflow":
👉 https://github.com/coreos/coreos-assembler/pull/1478
🕒 Snoozing kola test pattern "ext.config.platforms.aws.nvme" until Mar 10 2023:
👉 https://github.com/coreos/fedora-coreos-tracker/issues/1306#issuecomment-1426106534
=== RUN non-exclusive-test-bucket-0
=== RUN non-exclusive-test-bucket-0/ext.config.systemd
--- PASS: non-exclusive-test-bucket-0 (27.33s)
--- PASS: non-exclusive-test-bucket-0/ext.config.systemd (1.58s)
PASS, output in tmp/kola
+cosa:24> rc=0
+cosa:24> set +x`
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 think if you do some more testing you'll find that while it may work in this limited set of use cases it would be better if we made something a little more comprehensive here. I propose we add some new functions to the common library and then use them here. See what you think about #2280
|
eventually we'll need to squash all the commits down into a single commit. |
|
mind again squashing down into a single commit? |
will do! |
dustymabe
left a comment
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 - I'll address #2247 (comment) in #2280
|
It's a problem for us to write tests like this that explicitly hardcode something about the operating system. Today, when tests fail we stop shipping operating system updates by default. In my opinion, this test should be at best informative. (We don't have a good way to express that today) However, I think there's a simpler fix: Instead of hardcoding expecting to find 1m 30s, let's hardcode that we expect a timeout that is at least that value. Then we don't need to do anything with respect to the systemd or operating sytsem version. |
|
(The above comment is motivated by this test failing in the midst of us trying to ship RHEL CoreOS 9.2) |
The config bumps are gated by CI. When this config bump landed it should have failed in CI so IMO "no, this shouldn't have stopped us shipping operating system updates".
That's a bit hard here since we're dealing with strings.
The only reason we are checking systemd version is because |
Yes, but this is not true for RHCOS today.
Yeah...external tests are nice, bash is not.
I think the test can skip checking the property if it is empty. |
If that's not true then this is the thing we should be complaining about.
Looking at the test failure: It's apparent that |
That seems like a good idea, until systemd upstream changes the property name and then we have a test that's not checking for the right value. |
Complaining to...? We own this whole thing and need to keep in mind both c9s and rhel9 too.
That seems very unlikely to me. Changing the property name would break anyone who was trying to configure it. |
|
fedora-coreos-config bumps are gated in Prow CI in openshift/os. This very specific one got through because I disabled 8.6 CI too early in openshift/release#35789 as we decided to keep the 8.6 branch alive a bit longer. This is only impacting RHEL 8.6 builds so it should not block 9.2 builds. |
|
We'll skip it in openshift/os#1205 |
Yeah, but crucially not on package changes.
But yes, I think I got build logs crossed here, so it didn't impact 9.2 work, so indeed not too important. (But the larger point still stands I think) |
New PR as the last one was pushing to main