Skip to content
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

NO-JIRA: ci: Use 'centos-release' package to detect if we are testing CentOS Stream #1448

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions ci/prow-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,7 @@ kola_test_qemu() {

# Skip Secure Boot tests on SCOS for now
# See: https://github.com/openshift/os/issues/1237
if [[ -f "src/config.json" ]]; then
variant="$(jq --raw-output '."coreos-assembler.config-variant"' 'src/config.json')"
else
variant="default"
fi
if [[ "${variant}" != "scos" ]]; then
if rpm-ostree compose tree --print-only "${manifest}" | jq -r '.packages[]' | grep -q "centos-release"; then
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This logic looks inverted. If centos-release is present then we need to skip Secure Boot tests, not the other way around.

I think the reason this passed CI is that this condition happened to fail on another error, which is that manifest is not defined:

/src/ci/prow-entrypoint.sh: line 126: manifest: unbound variable

And I think the reason set -e didn't kick in here is likely a combination of it being in an if-statement and piping things.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Proposing to fix this in #1458.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Arg, thanks for noticing

cosa kola --basic-qemu-scenarios
else
cosa kola --basic-qemu-scenarios --skip-secure-boot
Expand Down
52 changes: 25 additions & 27 deletions kola-denylist.yaml
Original file line number Diff line number Diff line change
@@ -1,57 +1,55 @@
# This file documents currently known-to-fail kola tests. It is consumed by
# coreos-assembler to automatically skip some tests. For more information,
# see: https://github.com/coreos/coreos-assembler/pull/866.
- pattern: iso-live-login.uefi-secure
tracker: https://github.com/openshift/os/issues/1237
snooze: 2024-02-26
osversion:
- rhel-9.4

- pattern: iso-as-disk.uefi-secure
tracker: https://github.com/openshift/os/issues/1237
snooze: 2024-02-26
osversion:
- rhel-9.4

- pattern: basic
tracker: https://github.com/openshift/os/issues/1237
snooze: 2024-02-26
osversion:
- rhel-9.4

- pattern: ext.config.rpm-ostree.replace-rt-kernel
tracker: https://github.com/openshift/os/issues/1315
osversion:
- c9s

# RHEL 9.4 with CentOS Stream test snooze
- pattern: iso-live-login.uefi-secure
tracker: https://github.com/openshift/os/issues/1237
snooze: 2024-03-18
osversion:
- c9s
- rhel-9.4

- pattern: iso-as-disk.uefi-secure
tracker: https://github.com/openshift/os/issues/1237
snooze: 2024-03-18
osversion:
- c9s
- rhel-9.4

- pattern: ext.config.rpm-ostree.replace-rt-kernel
tracker: https://github.com/openshift/os/issues/1383
snooze: 2024-02-26
snooze: 2024-03-18
osversion:
- rhel-9.4

- pattern: ext.config.shared.content-origins
tracker: https://github.com/openshift/os/issues/1387#issuecomment-1769313807
snooze: 2024-02-26
snooze: 2024-03-18
osversion:
- rhel-9.4

- pattern: ext.config.version.rhel-matches-rhcos-build
tracker: https://github.com/openshift/os/issues/1387#issuecomment-1769313807
snooze: 2024-02-26
snooze: 2024-03-18
osversion:
- rhel-9.4

# CentOS Stream specific indefinite snooze
- pattern: iso-live-login.uefi-secure
tracker: https://github.com/openshift/os/issues/1237
osversion:
- c9s

- pattern: iso-as-disk.uefi-secure
tracker: https://github.com/openshift/os/issues/1237
osversion:
- c9s

- pattern: ext.config.rpm-ostree.replace-rt-kernel
tracker: https://github.com/openshift/os/issues/1315
osversion:
- c9s

# Other failing tests
- pattern: pxe-*.ppcfw
tracker: https://github.com/coreos/coreos-assembler/issues/3370
# nb: testiso doesn't read this, so it's just for consistency
Expand Down