ROX-29969: Update image expiration check to follow our release-like definition #72
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Running the stage release pipeline reveals a new failure in Conforma.
I did it for Snapshot
acs-4-6-4-6-9-1-g4360c6b012-20250827t150455zcreated fromrelease-4.6non-tagged push ("version": "4.6.9-1-g4360c6b012").While this isn't a blocker for a prod release (the one should always be tagged), it's a blocker for a stage release as long as it's not tagged. Since I may have to iterate a few more times on the stage release, I see a value in adjusting our
determine-image-expirationtask to the same release-like definition asdetermine-image-tagtask already has.In this PR I copy-pasted
ifconditions from thedetermine-image-tagtask.konflux-tasks/tasks/determine-image-tag-task.yaml
Lines 194 to 202 in 569a248
Related thread: https://redhat-internal.slack.com/archives/C031USXS2FJ/p1756313100833939?thread_ts=1755622785.895239&cid=C031USXS2FJ.
Validation
konflux-release-likein the name: https://konflux-ui.apps.stone-prd-rh01.pg1f.p1.openshiftapps.com/ns/rh-acs-tenant/applications/acs/taskruns/scanner-on-push-psfhd-determine-image-expiration/logsWith that I saw each code branch hit at least once so I think it's sufficient provided that the
grepexpression was extensively tested before.