Skip to content
Open
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,158 @@
build_root:
image_stream_tag:
name: release
namespace: openshift
tag: rhel-9-release-golang-1.23-openshift-4.19
Comment on lines +1 to +5

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# What build roots do sibling ComplianceAsCode / other repos use for these OCP versions?
fd -t f 'ComplianceAsCode-compliance-operator-master' ci-operator/config \
  --exec sh -c 'printf "%s -> " "$1"; rg -m1 -N "^\s+tag: rhel-9-release" "$1"' _ {}

# Which golang-N.NN-openshift-4.1X build root tags are actually referenced anywhere in the repo?
rg -oN 'rhel-9-release-golang-[0-9.]+-openshift-4\.1[2-8]' ci-operator/config | sort -u | head -50

Repository: openshift/release

Length of output: 9129


🏁 Script executed:

#!/bin/bash
set -euo pipefail

files=(
ci-operator/config/ComplianceAsCode/compliance-operator/ComplianceAsCode-compliance-operator-master__ocp-4.12.yaml
ci-operator/config/ComplianceAsCode/compliance-operator/ComplianceAsCode-compliance-operator-master__ocp-4.13.yaml
ci-operator/config/ComplianceAsCode/compliance-operator/ComplianceAsCode-compliance-operator-master__ocp-4.14.yaml
ci-operator/config/ComplianceAsCode/compliance-operator/ComplianceAsCode-compliance-operator-master__ocp-4.15.yaml
ci-operator/config/ComplianceAsCode/compliance-operator/ComplianceAsCode-compliance-operator-master__ocp-4.16.yaml
ci-operator/config/ComplianceAsCode/compliance-operator/ComplianceAsCode-compliance-operator-master__ocp-4.17.yaml
ci-operator/config/ComplianceAsCode/compliance-operator/ComplianceAsCode-compliance-operator-master__ocp-4.18.yaml
ci-operator/config/ComplianceAsCode/compliance-operator/ComplianceAsCode-compliance-operator-master__ocp-4.19.yaml
ci-operator/config/ComplianceAsCode/compliance-operator/ComplianceAsCode-compliance-operator-master__ocp-4.20.yaml
ci-operator/config/ComplianceAsCode/compliance-operator/ComplianceAsCode-compliance-operator-master__ocp-4.21.yaml
ci-operator/config/ComplianceAsCode/compliance-operator/ComplianceAsCode-compliance-operator-master__ocp-4.22.yaml
)

echo "== build_root entries =="
for f in "${files[@]}"; do
  printf '%s -> ' "$f"
  sed -n '1,8p' "$f" | rg -n 'tag: rhel-9-release' || echo 'no matching build_root tag'
done

echo "
== module/toolchain info in repo =="
git ls-files | rg '(^go\.mod$|go\.work$|Makefile$|Dockerfile.*|\.ci-operator.yaml$|\.ci\.yaml$)' | rg 'ComplianceAsCode/compliance-operator|compliance-operator' || true
rg -n 'go 1\.\d+|toolchain |GOLANG|GOVERSION|GODEBUG|rhel-9-release-golang|openshift-4\.' ci-operator/config/ComplianceAsCode/compliance-operator -g '*.yaml' | head -100

Repository: openshift/release

Length of output: 4097


🌐 Web query:

OpenShift 4.19 ci-operator build root image_stream_tag tag rhel-9-release-golang-1.23-openshift-4.19

💡 Result:

In OpenShift 4.19, the rhel-9-release-golang-1.23-openshift-4.19 tag is used within the ci-operator configuration to define the build_root_image [1][2][3]. This tag ensures that the build environment for OpenShift components is consistent with the ART (Automated Release Team) build specifications for the 4.19 release cycle [4][5]. When defined in a component's .ci-operator.yaml file, this configuration is typically structured as follows: build_root_image: name: release namespace: openshift tag: rhel-9-release-golang-1.23-openshift-4.19 The build_root provides the necessary build-time dependencies, such as the specified Go version (1.23) and RHEL 9 base environment, required for compiling components and running tests within the OpenShift CI environment [6][7][8]. Consistent use of this tag across components helps maintain parity between the component-level builds and the central ART-managed release images [4][5][9]. Additionally, this tag is often paired with corresponding builder images in the component's Dockerfile (e.g., FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.23-openshift-4.19 AS builder) to ensure the build environment used during CI processes remains identical to the one used for the final productized images [1][10][2].

Citations:


Make the 4.12–4.18 build roots consistent with their test variants. These seven configs still point at the 4.19/RHEL-9 Go build root while the newer sibling variants use their own matching image streams up to 4.22. If the Go 1.23 build root is intentional, align the 4.20–4.22 variants to the same root; otherwise update each job to the build root appropriate for that OCP variant.

📍 Affects 7 files
  • ci-operator/config/ComplianceAsCode/compliance-operator/ComplianceAsCode-compliance-operator-master__ocp-4.12.yaml#L1-L5 (this comment)
  • ci-operator/config/ComplianceAsCode/compliance-operator/ComplianceAsCode-compliance-operator-master__ocp-4.13.yaml#L1-L5
  • ci-operator/config/ComplianceAsCode/compliance-operator/ComplianceAsCode-compliance-operator-master__ocp-4.14.yaml#L1-L5
  • ci-operator/config/ComplianceAsCode/compliance-operator/ComplianceAsCode-compliance-operator-master__ocp-4.15.yaml#L1-L5
  • ci-operator/config/ComplianceAsCode/compliance-operator/ComplianceAsCode-compliance-operator-master__ocp-4.16.yaml#L1-L5
  • ci-operator/config/ComplianceAsCode/compliance-operator/ComplianceAsCode-compliance-operator-master__ocp-4.17.yaml#L1-L5
  • ci-operator/config/ComplianceAsCode/compliance-operator/ComplianceAsCode-compliance-operator-master__ocp-4.18.yaml#L1-L5
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In
`@ci-operator/config/ComplianceAsCode/compliance-operator/ComplianceAsCode-compliance-operator-master__ocp-4.12.yaml`
around lines 1 - 5, Make the build_root.image_stream_tag configuration
consistent with each OCP variant’s matching test configuration: update
ci-operator/config/ComplianceAsCode/compliance-operator/ComplianceAsCode-compliance-operator-master__ocp-4.12.yaml,
__ocp-4.13.yaml, __ocp-4.14.yaml, __ocp-4.15.yaml, __ocp-4.16.yaml,
__ocp-4.17.yaml, and __ocp-4.18.yaml at lines 1-5 to use the appropriate
per-variant image stream and tag instead of the shared 4.19/RHEL-9 Go 1.23 root.
Alternatively, if that shared root is intentional, update the corresponding
4.20–4.22 variants to use it as well.

releases:
arm64-latest:
candidate:
architecture: arm64
product: ocp
stream: nightly
version: "4.12"
initial:
integration:
name: "4.12"
namespace: ocp
latest:
candidate:
product: ocp
stream: ci
version: "4.12"
resources:
'*':
requests:
cpu: 200m
memory: 400Mi
tests:
- as: e2e-aws-prerelease-f60
cron: 10 3 2 1,3,5,7,9,11 *
steps:
cluster_profile: aws-stackrox
env:
BASE_DOMAIN: perfscale.rox.systems
CATALOG_SOURCE_NAME: compliance-operator
OO_BUNDLE: quay.io/redhat-user-workloads/ocp-isc-tenant/compliance-operator-bundle-release:release-1.9
OO_INSTALL_NAMESPACE: openshift-compliance
TEST_TYPE: release
test:
- ref: file-integrity-konflux-catalogsource
- ref: optional-operators-operator-sdk-non-ci-bundle-image
- as: test
cli: latest
commands: make e2e-prerelease
from: src
resources:
requests:
cpu: 100m
workflow: ipi-aws
- as: e2e-aws-parsing-f60
cron: 15 3 2 1,3,5,7,9,11 *
steps:
cluster_profile: aws-stackrox
env:
BASE_DOMAIN: perfscale.rox.systems
CATALOG_SOURCE_NAME: compliance-operator
OO_BUNDLE: quay.io/redhat-user-workloads/ocp-isc-tenant/compliance-operator-bundle-release:release-1.9
OO_INSTALL_NAMESPACE: openshift-compliance
TEST_TYPE: release
test:
- ref: file-integrity-konflux-catalogsource
- ref: optional-operators-operator-sdk-non-ci-bundle-image
- as: test
cli: latest
commands: make e2e-parsing
from: src
resources:
requests:
cpu: 100m
workflow: ipi-aws
- as: e2e-aws-deployment-f60
cron: 20 3 2 1,3,5,7,9,11 *
steps:
cluster_profile: aws-stackrox
env:
BASE_DOMAIN: perfscale.rox.systems
CATALOG_SOURCE_NAME: compliance-operator
OO_BUNDLE: quay.io/redhat-user-workloads/ocp-isc-tenant/compliance-operator-bundle-release:release-1.9
OO_INSTALL_NAMESPACE: openshift-compliance
TEST_TYPE: release
test:
- ref: file-integrity-konflux-catalogsource
- ref: optional-operators-operator-sdk-non-ci-bundle-image
- as: test
cli: latest
commands: make e2e-deployment
from: src
resources:
requests:
cpu: 100m
workflow: ipi-aws
- as: e2e-aws-scan-config-f60
cron: 25 3 2 1,3,5,7,9,11 *
steps:
cluster_profile: aws-stackrox
env:
BASE_DOMAIN: perfscale.rox.systems
CATALOG_SOURCE_NAME: compliance-operator
OO_BUNDLE: quay.io/redhat-user-workloads/ocp-isc-tenant/compliance-operator-bundle-release:release-1.9
OO_INSTALL_NAMESPACE: openshift-compliance
TEST_TYPE: release
test:
- ref: file-integrity-konflux-catalogsource
- ref: optional-operators-operator-sdk-non-ci-bundle-image
- as: test
cli: latest
commands: make e2e-scan-config
from: src
resources:
requests:
cpu: 100m
workflow: ipi-aws
- as: e2e-aws-tailoring-f60
cron: 30 3 2 1,3,5,7,9,11 *
steps:
cluster_profile: aws-stackrox
env:
BASE_DOMAIN: perfscale.rox.systems
CATALOG_SOURCE_NAME: compliance-operator
OO_BUNDLE: quay.io/redhat-user-workloads/ocp-isc-tenant/compliance-operator-bundle-release:release-1.9
OO_INSTALL_NAMESPACE: openshift-compliance
TEST_TYPE: release
test:
- ref: file-integrity-konflux-catalogsource
- ref: optional-operators-operator-sdk-non-ci-bundle-image
- as: test
cli: latest
commands: make e2e-tailoring
from: src
resources:
requests:
cpu: 100m
workflow: ipi-aws
- as: e2e-aws-cel-f60
cron: 35 3 2 1,3,5,7,9,11 *
steps:
cluster_profile: aws-stackrox
env:
BASE_DOMAIN: perfscale.rox.systems
CATALOG_SOURCE_NAME: compliance-operator
OO_BUNDLE: quay.io/redhat-user-workloads/ocp-isc-tenant/compliance-operator-bundle-release:release-1.9
OO_INSTALL_NAMESPACE: openshift-compliance
TEST_TYPE: release
test:
- ref: file-integrity-konflux-catalogsource
- ref: optional-operators-operator-sdk-non-ci-bundle-image
- as: test
cli: latest
commands: make e2e-cel
from: src
resources:
requests:
cpu: 100m
workflow: ipi-aws
zz_generated_metadata:
branch: master
org: ComplianceAsCode
repo: compliance-operator
variant: ocp-4.12
Original file line number Diff line number Diff line change
@@ -0,0 +1,158 @@
build_root:
image_stream_tag:
name: release
namespace: openshift
tag: rhel-9-release-golang-1.23-openshift-4.19
releases:
arm64-latest:
candidate:
architecture: arm64
product: ocp
stream: nightly
version: "4.13"
initial:
integration:
name: "4.13"
namespace: ocp
latest:
candidate:
product: ocp
stream: ci
version: "4.13"
resources:
'*':
requests:
cpu: 200m
memory: 400Mi
tests:
- as: e2e-aws-prerelease-f60
cron: 40 3 2 1,3,5,7,9,11 *
steps:
cluster_profile: aws-stackrox
env:
BASE_DOMAIN: perfscale.rox.systems
CATALOG_SOURCE_NAME: compliance-operator
OO_BUNDLE: quay.io/redhat-user-workloads/ocp-isc-tenant/compliance-operator-bundle-release:release-1.9
OO_INSTALL_NAMESPACE: openshift-compliance
TEST_TYPE: release
test:
- ref: file-integrity-konflux-catalogsource
- ref: optional-operators-operator-sdk-non-ci-bundle-image
- as: test
cli: latest
commands: make e2e-prerelease
from: src
resources:
requests:
cpu: 100m
workflow: ipi-aws
- as: e2e-aws-parsing-f60
cron: 45 3 2 1,3,5,7,9,11 *
steps:
cluster_profile: aws-stackrox
env:
BASE_DOMAIN: perfscale.rox.systems
CATALOG_SOURCE_NAME: compliance-operator
OO_BUNDLE: quay.io/redhat-user-workloads/ocp-isc-tenant/compliance-operator-bundle-release:release-1.9
OO_INSTALL_NAMESPACE: openshift-compliance
TEST_TYPE: release
test:
- ref: file-integrity-konflux-catalogsource
- ref: optional-operators-operator-sdk-non-ci-bundle-image
- as: test
cli: latest
commands: make e2e-parsing
from: src
resources:
requests:
cpu: 100m
workflow: ipi-aws
- as: e2e-aws-deployment-f60
cron: 50 3 2 1,3,5,7,9,11 *
steps:
cluster_profile: aws-stackrox
env:
BASE_DOMAIN: perfscale.rox.systems
CATALOG_SOURCE_NAME: compliance-operator
OO_BUNDLE: quay.io/redhat-user-workloads/ocp-isc-tenant/compliance-operator-bundle-release:release-1.9
OO_INSTALL_NAMESPACE: openshift-compliance
TEST_TYPE: release
test:
- ref: file-integrity-konflux-catalogsource
- ref: optional-operators-operator-sdk-non-ci-bundle-image
- as: test
cli: latest
commands: make e2e-deployment
from: src
resources:
requests:
cpu: 100m
workflow: ipi-aws
- as: e2e-aws-scan-config-f60
cron: 55 3 2 1,3,5,7,9,11 *
steps:
cluster_profile: aws-stackrox
env:
BASE_DOMAIN: perfscale.rox.systems
CATALOG_SOURCE_NAME: compliance-operator
OO_BUNDLE: quay.io/redhat-user-workloads/ocp-isc-tenant/compliance-operator-bundle-release:release-1.9
OO_INSTALL_NAMESPACE: openshift-compliance
TEST_TYPE: release
test:
- ref: file-integrity-konflux-catalogsource
- ref: optional-operators-operator-sdk-non-ci-bundle-image
- as: test
cli: latest
commands: make e2e-scan-config
from: src
resources:
requests:
cpu: 100m
workflow: ipi-aws
- as: e2e-aws-tailoring-f60
cron: 0 4 2 1,3,5,7,9,11 *
steps:
cluster_profile: aws-stackrox
env:
BASE_DOMAIN: perfscale.rox.systems
CATALOG_SOURCE_NAME: compliance-operator
OO_BUNDLE: quay.io/redhat-user-workloads/ocp-isc-tenant/compliance-operator-bundle-release:release-1.9
OO_INSTALL_NAMESPACE: openshift-compliance
TEST_TYPE: release
test:
- ref: file-integrity-konflux-catalogsource
- ref: optional-operators-operator-sdk-non-ci-bundle-image
- as: test
cli: latest
commands: make e2e-tailoring
from: src
resources:
requests:
cpu: 100m
workflow: ipi-aws
- as: e2e-aws-cel-f60
cron: 5 4 2 1,3,5,7,9,11 *
steps:
cluster_profile: aws-stackrox
env:
BASE_DOMAIN: perfscale.rox.systems
CATALOG_SOURCE_NAME: compliance-operator
OO_BUNDLE: quay.io/redhat-user-workloads/ocp-isc-tenant/compliance-operator-bundle-release:release-1.9
OO_INSTALL_NAMESPACE: openshift-compliance
TEST_TYPE: release
test:
- ref: file-integrity-konflux-catalogsource
- ref: optional-operators-operator-sdk-non-ci-bundle-image
- as: test
cli: latest
commands: make e2e-cel
from: src
resources:
requests:
cpu: 100m
workflow: ipi-aws
zz_generated_metadata:
branch: master
org: ComplianceAsCode
repo: compliance-operator
variant: ocp-4.13
Loading