Use dedicated conforma policies for test assembly EC verification#3072
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: openshift-eng/coderabbit/.coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (7)
🚧 Files skipped from review as they are similar to previous changes (5)
WalkthroughAdds two new EC policy constants for test assemblies and routes them through ChangesTest-assembly EC policy routing and base image release trigger ordering
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 10 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (10 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Base images are not released for test assemblies, so the art-images base image registry rule must be permanently excluded for build-time ITSs to pass. Use conforma-build-stage-test and conforma-build-ec-stage-test policies (from KRD MR 19219) when running EC verification on test assembly builds. - Add KONFLUX_TEST_EC_POLICY_CONFIGURATION and KONFLUX_TEST_PREGA_EC_POLICY_CONFIGURATION constants - Make KonfluxImageBuilderConfig accept both default and prega policies so the builder stays assembly-agnostic - Select test vs default policy pair in CLI based on assembly name - Update OLM bundler to use test policies when assembly == "test" Co-authored-by: Cursor <cursoragent@cursor.com> Co-authored-by: Cursor <cursoragent@cursor.com> rh-pre-commit.version: 2.3.2 rh-pre-commit.check-secrets: ENABLED
1ad82dc to
62ad270
Compare
Move the assembly=="test" check before the base_image_release.force check in should_trigger_base_image_release() so that test assemblies never trigger snapshot→release, even when force is set in metadata. Co-authored-by: Cursor <cursoragent@cursor.com> rh-pre-commit.version: 2.3.2 rh-pre-commit.check-secrets: ENABLED
|
@ashwindasr: 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. |
|
/unhold |
|
Tested with openshift-priv/art-konflux-template#158 (comment) works as expected |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: fgallott The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
10c5909
into
openshift-eng:main
Summary
conforma-build-stage-testandconforma-build-ec-stage-testpolicies for test assembly builds instead of the default stage policiesassembly == "test"check beforebase_image_release.forceinshould_trigger_base_image_release()Changes
KONFLUX_TEST_EC_POLICY_CONFIGURATIONandKONFLUX_TEST_PREGA_EC_POLICY_CONFIGURATIONprega_ec_policy_configurationfield toKonfluxImageBuilderConfigso both policies are configurable (builder stays assembly-agnostic)runtime.assembly == "test"self.assembly == "test"for OLM bundle buildsshould_trigger_base_image_release()so test assembly is an unconditional block (not bypassed byforce: true)force: true+ test assembly returnsFalseTest plan
Summary by CodeRabbit
"test"assembly even whenforce=trueis set.