Skip to content

ROX-34007: Make create-custom-snapshot always run#20016

Draft
msugakov wants to merge 33 commits intomasterfrom
misha/change-ccs-activation-cel
Draft

ROX-34007: Make create-custom-snapshot always run#20016
msugakov wants to merge 33 commits intomasterfrom
misha/change-ccs-activation-cel

Conversation

@msugakov
Copy link
Copy Markdown
Contributor

@msugakov msugakov commented Apr 15, 2026

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

  • the change is production ready: the change is GA, or otherwise the functionality is gated by a feature flag
  • CI results are inspected

Automated testing

No change.

How I validated my change

  1. Fast success in non-Konflux PR *DNM* testing of create-custom-snapshot #20026 / https://konflux-ui.apps.stone-prd-rh01.pg1f.p1.openshiftapps.com/ns/rh-acs-tenant/applications/acs/pipelineruns/create-custom-snapshot-dhxjc
    1. /retest comment on the same PR - fast success - TODO
  2. PR branch has konflux in the name - real run *DNM* testing of create-custom-snapshot - 2 #20027 / https://konflux-ui.apps.stone-prd-rh01.pg1f.p1.openshiftapps.com/ns/rh-acs-tenant/applications/acs/pipelineruns/create-custom-snapshot-ktwrj
    1. /retest comment on the same PR - real run - TODO
  3. PR has konflux-build label - real run TODO
    1. /retest comment on the same PR - real run - TODO
  4. konflux-build label added - real run TODO
    1. /retest comment on the same PR - real run - TODO
  5. release-* branch push - real run TODO

@msugakov msugakov added do-not-merge/work-in-progress konflux-build Run Konflux in PR. Push commit to trigger it. labels Apr 15, 2026
@openshift-ci
Copy link
Copy Markdown

openshift-ci bot commented Apr 15, 2026

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@msugakov msugakov force-pushed the misha/change-ccs-activation-cel branch from 1e7d7bc to fec0285 Compare April 15, 2026 09:28
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 15, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 49.61%. Comparing base (4d2dbda) to head (eed076f).
⚠️ Report is 13 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #20016      +/-   ##
==========================================
+ Coverage   49.56%   49.61%   +0.04%     
==========================================
  Files        2765     2765              
  Lines      208443   208643     +200     
==========================================
+ Hits       103322   103520     +198     
- Misses      97466    97467       +1     
- Partials     7655     7656       +1     
Flag Coverage Δ
go-unit-tests 49.61% <ø> (+0.04%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 15, 2026

🚀 Build Images Ready

Images are ready for commit eed076f. To use with deploy scripts:

export MAIN_IMAGE_TAG=4.11.x-679-geed076faff

@msugakov
Copy link
Copy Markdown
Contributor Author

Doesn't seem to work. Requested Konflux support https://redhat-internal.slack.com/archives/C04PZ7H0VA8/p1776256616552199

@msugakov msugakov added the ci-fail-fast Stop testing after the first test fails (not supported in all test sets) label Apr 15, 2026
@msugakov msugakov added konflux-build Run Konflux in PR. Push commit to trigger it. and removed ci-fail-fast Stop testing after the first test fails (not supported in all test sets) konflux-build Run Konflux in PR. Push commit to trigger it. labels Apr 15, 2026
@msugakov msugakov added konflux-build Run Konflux in PR. Push commit to trigger it. and removed konflux-build Run Konflux in PR. Push commit to trigger it. labels Apr 15, 2026
@msugakov msugakov added konflux-build Run Konflux in PR. Push commit to trigger it. and removed konflux-build Run Konflux in PR. Push commit to trigger it. labels Apr 15, 2026
@msugakov msugakov changed the title Try use CEL in task build: Make create-custom-snapshot always run Apr 15, 2026
@msugakov msugakov changed the title build: Make create-custom-snapshot always run ROX-34007: Make create-custom-snapshot always run Apr 15, 2026
@stackrox stackrox deleted a comment from red-hat-konflux bot Apr 15, 2026
@stackrox stackrox deleted a comment from red-hat-konflux bot Apr 15, 2026
@github-actions
Copy link
Copy Markdown
Contributor

/konflux-retest main-on-push

@github-actions
Copy link
Copy Markdown
Contributor

/konflux-retest operator-bundle-on-push

2 similar comments
@github-actions
Copy link
Copy Markdown
Contributor

/konflux-retest operator-bundle-on-push

@github-actions
Copy link
Copy Markdown
Contributor

/konflux-retest operator-bundle-on-push

@github-actions
Copy link
Copy Markdown
Contributor

/konflux-retest main-on-push

1 similar comment
@github-actions
Copy link
Copy Markdown
Contributor

/konflux-retest main-on-push

}

is_pull_request="false"
[[ "{{ pull_request_number }}" == "" ]] || is_pull_request="true"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I also saw that the pull request number was literally "{{ pull_request_number }}"

[[ "{{ 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-") }}'
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is interesting. Can {{ cel: ...}} be used anywhere? Are there other templating sources documented?

- name: post-metric-start
taskRef: *post-bigquery-metrics-ref

# TODO: event_type=on-comment and the rest
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What is "the rest"?

Copy link
Copy Markdown
Contributor

@tommartensen tommartensen left a comment

Choose a reason for hiding this comment

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

This is interesting, if you want, please continue investigating!

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

Labels

do-not-merge/work-in-progress konflux-build Run Konflux in PR. Push commit to trigger it.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants