ROX-34007: Make create-custom-snapshot always run#20016
ROX-34007: Make create-custom-snapshot always run#20016
create-custom-snapshot always run#20016Conversation
|
Skipping CI for Draft Pull Request. |
1e7d7bc to
fec0285
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #20016 +/- ##
=======================================
Coverage 49.76% 49.76%
=======================================
Files 2767 2767
Lines 209544 209544
=======================================
+ Hits 104275 104284 +9
+ Misses 97573 97569 -4
+ Partials 7696 7691 -5
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
🚀 Build Images ReadyImages are ready for commit 01e624c. To use with deploy scripts: export MAIN_IMAGE_TAG=4.11.x-685-g01e624c2b5 |
|
Doesn't seem to work. Requested Konflux support https://redhat-internal.slack.com/archives/C04PZ7H0VA8/p1776256616552199 |
create-custom-snapshot always run
create-custom-snapshot always runcreate-custom-snapshot always run
| } | ||
|
|
||
| is_pull_request="false" | ||
| [[ "{{ pull_request_number }}" == "" ]] || is_pull_request="true" |
There was a problem hiding this comment.
I also saw that the pull request number was literally "{{ pull_request_number }}"
There was a problem hiding this comment.
I learned when it's literally "{{ pull_request_number }}" it means this pipeline runs for branch (or tag) push. Checking for empty string is unnecessary in this case but I'd still keep it.
| [[ "{{ pull_request_number }}" == "" ]] || is_pull_request="true" | ||
| assert_boolean is_pull_request "pull_request_number: {{ pull_request_number }}" | ||
|
|
||
| is_matching_target_branch='{{ cel: target_branch.startsWith("release-") }}' |
There was a problem hiding this comment.
This is interesting. Can {{ cel: ...}} be used anywhere? Are there other templating sources documented?
There was a problem hiding this comment.
It can be used in params and in step body. See https://pipelinesascode.com/docs/guides/creating-pipelines/cel-expressions/
| - name: post-metric-start | ||
| taskRef: *post-bigquery-metrics-ref | ||
|
|
||
| # TODO: event_type=on-comment and the rest |
There was a problem hiding this comment.
This is a leftover from the time before I did the full round of testing. Now this comment is gone.
tommartensen
left a comment
There was a problem hiding this comment.
This is interesting, if you want, please continue investigating!
566de28 to
01e624c
Compare
01e624c to
e5a23c7
Compare
|
Had to rebase because Style GHA job wasn't happy for unrelated reason. |
Scenario: PR with |
|
@msugakov: 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. |
Description
but skip real tasks if in PRs where Konflux is not enabled. This is alternative way to do #19892.
With the help of https://pipelinesascode.com/docs/guides/creating-pipelines/cel-expressions/.
User-facing documentation
Testing and quality
Automated testing
No change.
How I validated my change
What I haven't tested is how it works with tags but I'm sure it should work as expected given that testing with branches went fine.
PR without activation
#20026 - everything gets quickly skipped and the pipeline succeeds.
/test ...comment https://konflux-ui.apps.stone-prd-rh01.pg1f.p1.openshiftapps.com/ns/rh-acs-tenant/applications/acs/taskruns/create-custom-snapshot-jjxdb-determine-actual-build/logs/konflux-retest ...comment https://konflux-ui.apps.stone-prd-rh01.pg1f.p1.openshiftapps.com/ns/rh-acs-tenant/applications/acs/taskruns/create-custom-snapshot-nnjzv-determine-actual-build/logskonflux-build) https://konflux-ui.apps.stone-prd-rh01.pg1f.p1.openshiftapps.com/ns/rh-acs-tenant/applications/acs/taskruns/create-custom-snapshot-9p5f2-determine-actual-build/logsPR with
konfluxin the branch name#20027 - the tasks get really executed after
determine-actual-buildgives a green light.Though I cancel Konflux builds after I see that happening to save on resources.
/retest ...comment https://konflux-ui.apps.stone-prd-rh01.pg1f.p1.openshiftapps.com/ns/rh-acs-tenant/applications/acs/taskruns/create-custom-snapshot-55mrs-determine-actual-build/logs/konflux-retest ...comment https://konflux-ui.apps.stone-prd-rh01.pg1f.p1.openshiftapps.com/ns/rh-acs-tenant/applications/acs/taskruns/create-custom-snapshot-rc882-determine-actual-build/logskonflux-build) https://konflux-ui.apps.stone-prd-rh01.pg1f.p1.openshiftapps.com/ns/rh-acs-tenant/applications/acs/taskruns/create-custom-snapshot-5xwz6-determine-actual-build/logsPR with
konflux-buildlabel#20122 - initially no activation without a label (run), then tasks get really executed after the label is placed.
Though I cancelled pipelines to save resources.
konflux-buildlabel added https://konflux-ui.apps.stone-prd-rh01.pg1f.p1.openshiftapps.com/ns/rh-acs-tenant/applications/acs/taskruns/create-custom-snapshot-mmg5j-determine-actual-build/logs/test ...comment https://konflux-ui.apps.stone-prd-rh01.pg1f.p1.openshiftapps.com/ns/rh-acs-tenant/applications/acs/taskruns/create-custom-snapshot-42q8z-determine-actual-build/logs/konflux-retest ...comment https://konflux-ui.apps.stone-prd-rh01.pg1f.p1.openshiftapps.com/ns/rh-acs-tenant/applications/acs/taskruns/create-custom-snapshot-zgs6q-determine-actual-build/logskonflux-build) https://konflux-ui.apps.stone-prd-rh01.pg1f.p1.openshiftapps.com/ns/rh-acs-tenant/applications/acs/taskruns/create-custom-snapshot-vf7gt-determine-actual-build/logsThen, upon removal of
konflux-build, the pipeline does not start at all. It would be nice if it activated but one can anyway push a commit or do something else to trigger the pipeline.Branch pushes (no PRs)
release-*branch (https://github.com/stackrox/stackrox/commits/release-misha-test-cel/) - https://konflux-ui.apps.stone-prd-rh01.pg1f.p1.openshiftapps.com/ns/rh-acs-tenant/applications/acs/pipelineruns/create-custom-snapshot-nbx4h/logs?task=determine-actual-build/testcomment inrelease-*branch (35c634a#commitcomment-183018739) https://konflux-ui.apps.stone-prd-rh01.pg1f.p1.openshiftapps.com/ns/rh-acs-tenant/applications/acs/taskruns/create-custom-snapshot-2j2ft-determine-actual-build