fix(ci): dynamically resolve catalog index image from branch + remove trigger-nightly-job command#4860
Conversation
|
Skipping CI for Draft Pull Request. |
|
/test e2e-ocp-helm |
|
/test e2e-ocp-operator-nightly |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4860 +/- ##
==========================================
- Coverage 55.82% 55.25% -0.58%
==========================================
Files 121 109 -12
Lines 2350 2132 -218
Branches 562 536 -26
==========================================
- Hits 1312 1178 -134
+ Misses 1032 953 -79
+ Partials 6 1 -5
Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
907376b to
b4c120c
Compare
Replace hardcoded quay.io/rhdh/plugin-catalog-index:1.10 with a single
branch-aware CATALOG_INDEX_IMAGE variable derived from RELEASE_BRANCH_NAME.
Add RELEASE_VERSION canonical variable (release-1.10 → 1.10,
main → next) to env_variables.sh for reuse across CI scripts.
Changes:
- env_variables.sh: Add RELEASE_VERSION + CATALOG_INDEX_IMAGE variable
- 5 operator Backstage CRs: Use $CATALOG_INDEX_IMAGE via envsubst
- lib/helm.sh: Parse CATALOG_INDEX_IMAGE into registry/repository/tag
for --set global.catalogIndex.image.{registry,repository,tag}
- operator.sh: Simplify version derivation using RELEASE_VERSION
- trigger-nightly-job.sh: Add --catalog-index-image and --chart-version
Gangway override flags for RC/GA verification
Companion PR required in openshift/release to add
MULTISTAGE_PARAM_OVERRIDE_CATALOG_INDEX_IMAGE env var to step registry
ref.yaml + commands.sh files. The rhdh changes include fallback defaults
so order of merge does not matter.
Assisted-by: Claude Code
b4c120c to
a5430df
Compare
|
The container image build workflow finished with status: |
a5430df to
909bced
Compare
|
The container image build workflow finished with status: |
909bced to
ccb7ff5
Compare
|
The container image build workflow finished with status: |
ccb7ff5 to
ed28f39
Compare
|
The container image build workflow finished with status: |
Code Review by Qodo
1. Catalog image split unsafe
|
Review Summary by QodoDynamically resolve catalog index image and add Gangway override support
WalkthroughsDescription• Dynamically resolve catalog index image from branch via RELEASE_VERSION canonical variable • Add CATALOG_INDEX_IMAGE with fallback default and Gangway override support • Parse catalog index into registry/repository/tag for Helm chart consumption • Add --catalog-index-image and --chart-version flags to trigger-nightly-job script • Replace trigger-nightly-job agent command with install guide to external rhdh-skills Diagramflowchart LR
A["RELEASE_BRANCH_NAME<br/>main/release-X.Y"] -->|"derive"| B["RELEASE_VERSION<br/>next/X.Y"]
B -->|"construct"| C["CATALOG_INDEX_IMAGE<br/>quay.io/rhdh/plugin-catalog-index:VERSION"]
C -->|"parse"| D["Registry/Repo/Tag<br/>for Helm --set"]
E["Gangway Overrides<br/>--catalog-index-image<br/>--chart-version"] -->|"inject"| F["trigger-nightly-job.sh<br/>ProwJob Parameters"]
D -->|"configure"| G["5 Operator Backstage CRs<br/>with dynamic CATALOG_INDEX_IMAGE"]
F -->|"trigger"| H["Nightly CI Jobs<br/>RC/GA Verification"]
File Changes1. .ci/pipelines/env_variables.sh
|
|
/test e2e-ocp-helm-nightly |
Replace the full trigger-nightly-job agent command with a stub that points users to the installable skill at redhat-developer/rhdh-skills/skills/prow-trigger-nightly. The underlying script (.ci/pipelines/trigger-nightly-job.sh) remains in this repository. Assisted-by: Claude Code
ed28f39 to
e7cdf9e
Compare
|
The container image build workflow finished with status: |
|
/test e2e-ocp-helm-nightly |
…lm deployments - Only inject CATALOG_INDEX_IMAGE in Helm chart and Operator when specified - Use yq to dynamically inject env var into Backstage CRs rather than relying on sed - Removed hardcoded CATALOG_INDEX_IMAGE from yaml templates Assisted-by: OpenCode
b4b7909 to
462c66f
Compare
|
The container image build workflow finished with status: |
|
The container image build workflow finished with status: |
|
The container image build workflow finished with status: |
|
/test e2e-ocp-helm-nightly |
1 similar comment
|
/test e2e-ocp-helm-nightly |
|
@zdrapela: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
|
/retest |
|
|
/cherry-pick release-1.10 |
|
@zdrapela: once the present PR merges, I will cherry-pick it on top of DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
21e226a
into
redhat-developer:main
|
@zdrapela: #4860 failed to apply on top of branch "release-1.10": DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |



Jira: https://redhat.atlassian.net/browse/RHIDP-14348
Summary
Dynamically resolve the catalog index image from
RELEASE_BRANCH_NAMEinstead of hardcoding it, and add Gangway API override support for catalog index and chart version.Also replaces the
trigger-nightly-jobagent command with an install guide pointing to the external skill in rhdh-skills.Changes
Dynamic catalog index resolution
env_variables.sh: AddRELEASE_VERSIONcanonical variable (main→next,release-X.Y→X.Y) and singleCATALOG_INDEX_IMAGEvariable with fallback default (quay.io/rhdh/plugin-catalog-index:$RELEASE_VERSION). Parse intoCATALOG_INDEX_REGISTRY/CATALOG_INDEX_REPO/CATALOG_INDEX_TAGfor Helm chart consumption.quay.io/rhdh/plugin-catalog-index:1.10with$CATALOG_INDEX_IMAGElib/helm.sh: Simplified — uses pre-parsed catalog index variables fromenv_variables.shGangway override support
trigger-nightly-job.sh: Add--catalog-index-imageand--chart-versionflags withMULTISTAGE_PARAM_OVERRIDE_CATALOG_INDEX_IMAGEGangway env varAgent command update
trigger-nightly-jobcommand content with install guide pointing to rhdh-skill/prow-trigger-nightlyCompanion PR
MULTISTAGE_PARAM_OVERRIDE_CATALOG_INDEX_IMAGE(independent, merge order doesn't matter due to fallback defaults)Testing