OSAC-1379: Add run_if_changed filters to osac-test-infra Prow presubmits#80584
Conversation
Skip e2e-vmaas tests when PRs only modify documentation, linting configs, ownership files, or downloaded binaries. Uses skip_if_only_changed denylist approach to ensure new file types trigger tests by default. Filters documentation (*.md, docs/, .ai-bot/, .claude/rules/), linting configs (.golangci.yml, .yamllint.yaml, .pre-commit-config*.yaml), build artifacts (.dockerignore, .gitattributes), ownership (OWNERS, LICENSE), and downloaded tools (bin/). Relates to: OSAC-1379 Assisted-by: Claude Sonnet 4.5 <noreply@anthropic.com> rh-pre-commit.version: 2.4.0 rh-pre-commit.check-secrets: ENABLED
|
@amej: This pull request references OSAC-1379 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "5.0.0" version, but no target version was set. DetailsIn 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. |
|
Skipping CI for Draft Pull Request. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository YAML (base), Central YAML (inherited) Review profile: CHILL Plan: Enterprise Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (1)
WalkthroughAdds a Changese2e-vmaas CI Skip Condition
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Possibly related PRs
Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 14 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (14 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
|
[REHEARSALNOTIFIER]
Prior to this PR being merged, you will need to either run and acknowledge or opt to skip these rehearsals. Interacting with pj-rehearseComment: Once you are satisfied with the results of the rehearsals, comment: |
|
/pj-rehearse auto-ack |
|
@amej: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel. |
|
/test all |
|
@eliorerz : Please review and approve. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: amej, eliorerz 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 |
5bc58ff
into
openshift:main
…ift#80584) Skip e2e-vmaas tests when PRs only modify documentation, linting configs, ownership files, or downloaded binaries. Uses skip_if_only_changed denylist approach to ensure new file types trigger tests by default. Filters documentation (*.md, docs/, .ai-bot/, .claude/rules/), linting configs (.golangci.yml, .yamllint.yaml, .pre-commit-config*.yaml), build artifacts (.dockerignore, .gitattributes), ownership (OWNERS, LICENSE), and downloaded tools (bin/). Relates to: OSAC-1379 Assisted-by: Claude Sonnet 4.5 <noreply@anthropic.com> rh-pre-commit.version: 2.4.0 rh-pre-commit.check-secrets: ENABLED
…ift#80584) Skip e2e-vmaas tests when PRs only modify documentation, linting configs, ownership files, or downloaded binaries. Uses skip_if_only_changed denylist approach to ensure new file types trigger tests by default. Filters documentation (*.md, docs/, .ai-bot/, .claude/rules/), linting configs (.golangci.yml, .yamllint.yaml, .pre-commit-config*.yaml), build artifacts (.dockerignore, .gitattributes), ownership (OWNERS, LICENSE), and downloaded tools (bin/). Relates to: OSAC-1379 Assisted-by: Claude Sonnet 4.5 <noreply@anthropic.com> rh-pre-commit.version: 2.4.0 rh-pre-commit.check-secrets: ENABLED
…ift#80584) Skip e2e-vmaas tests when PRs only modify documentation, linting configs, ownership files, or downloaded binaries. Uses skip_if_only_changed denylist approach to ensure new file types trigger tests by default. Filters documentation (*.md, docs/, .ai-bot/, .claude/rules/), linting configs (.golangci.yml, .yamllint.yaml, .pre-commit-config*.yaml), build artifacts (.dockerignore, .gitattributes), ownership (OWNERS, LICENSE), and downloaded tools (bin/). Relates to: OSAC-1379 Assisted-by: Claude Sonnet 4.5 <noreply@anthropic.com> rh-pre-commit.version: 2.4.0 rh-pre-commit.check-secrets: ENABLED
…ift#80584) Skip e2e-vmaas tests when PRs only modify documentation, linting configs, ownership files, or downloaded binaries. Uses skip_if_only_changed denylist approach to ensure new file types trigger tests by default. Filters documentation (*.md, docs/, .ai-bot/, .claude/rules/), linting configs (.golangci.yml, .yamllint.yaml, .pre-commit-config*.yaml), build artifacts (.dockerignore, .gitattributes), ownership (OWNERS, LICENSE), and downloaded tools (bin/). Relates to: OSAC-1379 Assisted-by: Claude Sonnet 4.5 <noreply@anthropic.com> rh-pre-commit.version: 2.4.0 rh-pre-commit.check-secrets: ENABLED
[OSAC-1379](https://redhat.atlassian.net/browse/OS[AC-1](https://redhat.atlassian.net/browse/AC-1)379): Add run_if_changed filters to osac-test-infra Prow presubmits
Jira: https://issues.redhat.com/browse/OS[AC-1](https://redhat.atlassian.net/browse/AC-1)379
Story type: [INFRA] CI Pipeline Optimization
Summary
Optimizes CI resource usage for osac-test-infra by adding a
skip_if_only_changedfilter to the e2e-vmaas presubmit job. Doc-only PRs (README, markdown files, linting configs, ownership files) will no longer trigger the expensive e2e-vmaas test, while the images job continues to run on all PRs for additional validation.Changes
CI Operator Config (
ci-operator/config/osac-project/osac-test-infra/):skip_if_only_changedfilter toe2e-vmaastest with denylist regex patternGenerated Prow Jobs (
ci-operator/jobs/osac-project/osac-test-infra/):always_run: true→always_run: falsefor e2e-vmaas jobskip_if_only_changedfilter to generated presubmitTesting
Acceptance Criteria
Notes
skip_if_only_changed) to ensure new file types trigger tests by defaultSummary by CodeRabbit
This PR optimizes CI resource usage for the osac-test-infra repository's continuous integration pipeline by adding a skip filter to the e2e-vmaas presubmit job.
What changed: The CI operator configuration for osac-test-infra now includes a
skip_if_only_changedfilter on the e2e-vmaas test. This filter prevents the test from running when a pull request only modifies documentation files (*.md, docs/), configuration files (.golangci.yml, .yamllint.yaml, pre-commit configs), AI/Claude bot configurations, ownership metadata, and downloaded tools in the bin/ directory.Practical impact: Pull requests that only update documentation or non-code files will no longer trigger the e2e-vmaas test, reducing unnecessary CI resource consumption. The images presubmit job remains unaffected and continues running on all PRs, as image builds are fast and provide additional validation value.
Implementation approach: The filter uses a denylist pattern, meaning new file types will trigger tests by default unless explicitly excluded. This ensures the CI remains comprehensive for genuine code changes while avoiding wasteful test runs for documentation-only updates.