From 1de3dcb8b3e28dc556d620ba1356ac68325dfb01 Mon Sep 17 00:00:00 2001 From: Mauro Ezequiel Moltrasio Date: Fri, 26 Jun 2026 12:27:49 +0200 Subject: [PATCH 1/3] fix(tests): use regexes for better exclusions The images we use from RHCOS may change from underneatch our feet, so we use regexes to exclude broader patterns that we know won't work with fact. --- .github/workflows/integration-tests.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index aa1fe6c5..31ccf404 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -40,7 +40,7 @@ jobs: with: repository: stackrox/collector path: collector - ref: master + ref: mauro/ansible/exclude-by-regex - uses: actions/setup-python@v5 with: python-version: "3.10" @@ -88,14 +88,11 @@ jobs: # RHEL 8 doesn't handle file creation properly, # need more investigation - rhel-8 - - rhcos-412-86-202402272018-0-gcp-x86-64 - - rhcos-414-92-202407091253-0-gcp-x86-64 + - rhcos-4[-0-9]+-gcp-x86-64 # BPF trampolines are only implemented starting with RHEL 10 - rhel-9-arm64 - - rhcos-9-8-20260520-0-gcp-aarch64 - - rhcos-9-6-20260512-0-gcp-aarch64 - - rhcos-418-94-202602022246-0-gcp-aarch64 - - rhcos-416-94-202510081640-0-gcp-aarch64 + - rhcos-9-[-0-9]+-gcp-aarch64 + - rhcos-4[-0-9]+-gcp-aarch64 EOF - name: Create Test VMs From 2918169c39c1d929f2c1eabcf336b259d576297e Mon Sep 17 00:00:00 2001 From: Mauro Ezequiel Moltrasio Date: Fri, 26 Jun 2026 12:47:47 +0200 Subject: [PATCH 2/3] fix: reinclude 4.16+ rhcos VMs --- .github/workflows/integration-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index 31ccf404..0ea75805 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -88,7 +88,7 @@ jobs: # RHEL 8 doesn't handle file creation properly, # need more investigation - rhel-8 - - rhcos-4[-0-9]+-gcp-x86-64 + - rhcos-41[0-4]-[-0-9]+-gcp-x86-64 # BPF trampolines are only implemented starting with RHEL 10 - rhel-9-arm64 - rhcos-9-[-0-9]+-gcp-aarch64 From 781c78121b33a34eebdf2e17a179e1e701c2679a Mon Sep 17 00:00:00 2001 From: Mauro Ezequiel Moltrasio Date: Fri, 26 Jun 2026 13:04:16 +0200 Subject: [PATCH 3/3] Use excluded_images --- .github/workflows/integration-tests.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index 0ea75805..5814221d 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -88,9 +88,13 @@ jobs: # RHEL 8 doesn't handle file creation properly, # need more investigation - rhel-8 - - rhcos-41[0-4]-[-0-9]+-gcp-x86-64 # BPF trampolines are only implemented starting with RHEL 10 - rhel-9-arm64 + excluded_images: + # RHEL 8 doesn't handle file creation properly, + # need more investigation + - rhcos-41[0-4]-[-0-9]+-gcp-x86-64 + # BPF trampolines are only implemented starting with RHEL 10 - rhcos-9-[-0-9]+-gcp-aarch64 - rhcos-4[-0-9]+-gcp-aarch64 EOF