Skip to content

NO-ISSUE: Update konflux manifests#2133

Open
pacevedom wants to merge 2 commits intoopenshift:mainfrom
pacevedom:update-konflux-manifests
Open

NO-ISSUE: Update konflux manifests#2133
pacevedom wants to merge 2 commits intoopenshift:mainfrom
pacevedom:update-konflux-manifests

Conversation

@pacevedom
Copy link
Contributor

No description provided.

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Mar 17, 2026
@openshift-ci-robot
Copy link

@pacevedom: This pull request explicitly references no jira issue.

Details

In 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 openshift-eng/jira-lifecycle-plugin repository.

@coderabbitai
Copy link

coderabbitai bot commented Mar 17, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository YAML (base), Organization UI (inherited)

Review profile: CHILL

Plan: Pro

Run ID: 718ee960-0f5a-4473-a26c-3f37f8d09215

📥 Commits

Reviewing files that changed from the base of the PR and between e9150b7 and e96691e.

📒 Files selected for processing (3)
  • .tekton/multi-arch-build-pipeline.yaml
  • .tekton/single-arch-build-pipeline.yaml
  • release/hack/update-konflux-task-refs.sh
🚧 Files skipped from review as they are similar to previous changes (1)
  • .tekton/multi-arch-build-pipeline.yaml

Walkthrough

Updated Tekton pipeline YAMLs to replace several task bundle image digests. Refactored the release script to collect new bundle digests, validate presence of pmt, yq, and skopeo, enable tracing, and apply migrations in a single pmt migrate call when updates exist.

Changes

Cohort / File(s) Summary
Tekton Pipeline Configurations
​.tekton/multi-arch-build-pipeline.yaml, ​.tekton/single-arch-build-pipeline.yaml
Replaced bundle sha256 digests for seven tasks: clair-scan, ecosystem-cert-preflight-checks, sast-snyk-check-oci-ta, sast-coverity-check-oci-ta, sast-shell-check-oci-ta, sast-unicode-check-oci-ta, rpms-signature-scan. No control-flow or task wiring changes.
Update Script
release/hack/update-konflux-task-refs.sh
Refactored to add set -x, require pmt (in addition to yq and skopeo), accumulate new bundle digests (NEW_BUNDLES) instead of per-file in-place updates, compute digests with skopeo, and run a single pmt migrate when updates exist. Improved quoting and error handling.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
📝 Coding Plan
  • Generate coding plan for human review comments

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Tip

You can get early access to new features in CodeRabbit.

Enable the early_access setting to enable early access features such as new models, tools, and more.

@openshift-ci openshift-ci bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Mar 17, 2026
@openshift-ci openshift-ci bot requested review from jeff-roche and jerpeter1 March 17, 2026 14:54
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Mar 17, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: pacevedom

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 17, 2026
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🧹 Nitpick comments (1)
release/hack/update-konflux-task-refs.sh (1)

1-2: Consider adding set -euo pipefail for stricter error handling.

Currently only set -x is enabled. Adding set -e and pipefail would catch unexpected failures earlier, especially in the yq/cut pipeline.

Suggested improvement
 #!/bin/bash
-set -x
+set -euo pipefail
+set -x
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@release/hack/update-konflux-task-refs.sh` around lines 1 - 2, Replace the
current shell options in the script (currently only set -x) with stricter error
handling by enabling set -euo pipefail in addition to -x; update the top-of-file
options (the existing set -x line) so the script exits on errors/unset variables
and fails pipelines properly (for example, change the invocation around set -x
to include -euo pipefail or add a separate set -euo pipefail line before/with
set -x).
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@release/hack/update-konflux-task-refs.sh`:
- Around line 20-23: The exit-code check after assigning new_digest is
unreliable because $? reflects the assignment, not the skopeo process; change
the pattern to capture skopeo's failure directly by running skopeo inspect into
the new_digest variable with an if/conditional that checks the command's success
(e.g., use "if ! new_digest=$(skopeo inspect --format='{{ .Digest }}'
\"docker://${image}\"); then ..." or equivalent) and on failure call echo and
exit 1; update the block that sets new_digest and the subsequent error handling
so the script fails when skopeo fails.
- Around line 34-36: The pmt migrate invocation currently runs without
pipeline-file flags and thus scans all .tekton files; update the script so pmt
migrate is called with explicit pipeline file arguments tied to the bundles
extracted: when iterating and using NEW_BUNDLES, invoke pmt migrate
"${NEW_BUNDLES[@]}" with one or more --pipeline-file "$PIPELINE_FILE" flags
(i.e., move the pmt migrate call into the loop that processes PIPELINE_FILE so
each extracted bundle is migrated only for that file), or alternatively collect
all PIPELINE_FILE values and pass them as multiple --pipeline-file flags to a
single pmt migrate call; ensure you reference NEW_BUNDLES, pmt migrate and
PIPELINE_FILE in the change.

---

Nitpick comments:
In `@release/hack/update-konflux-task-refs.sh`:
- Around line 1-2: Replace the current shell options in the script (currently
only set -x) with stricter error handling by enabling set -euo pipefail in
addition to -x; update the top-of-file options (the existing set -x line) so the
script exits on errors/unset variables and fails pipelines properly (for
example, change the invocation around set -x to include -euo pipefail or add a
separate set -euo pipefail line before/with set -x).

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository YAML (base), Organization UI (inherited)

Review profile: CHILL

Plan: Pro

Run ID: b1fcef57-760e-4b99-b7ee-7f763c5cec9a

📥 Commits

Reviewing files that changed from the base of the PR and between 5f4f76e and e9150b7.

📒 Files selected for processing (3)
  • .tekton/multi-arch-build-pipeline.yaml
  • .tekton/single-arch-build-pipeline.yaml
  • release/hack/update-konflux-task-refs.sh

@pacevedom pacevedom force-pushed the update-konflux-manifests branch from e9150b7 to e96691e Compare March 17, 2026 15:21
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Mar 17, 2026

@pacevedom: all tests passed!

Full PR test history. Your PR dashboard.

Details

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. I understand the commands that are listed here.

@openshift-ci openshift-ci bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Mar 21, 2026
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Mar 21, 2026

PR needs rebase.

Details

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants