Skip to content

experiment: skip Go tests on UI-only PRs#20737

Draft
davdhacs wants to merge 2 commits into
davdhacs/remove-container-unittestsfrom
davdhacs/skip-go-ui-split
Draft

experiment: skip Go tests on UI-only PRs#20737
davdhacs wants to merge 2 commits into
davdhacs/remove-container-unittestsfrom
davdhacs/skip-go-ui-split

Conversation

@davdhacs
Copy link
Copy Markdown
Contributor

Description

Split unit-tests.yaml into Go and UI workflows with native paths filters so UI-only PRs skip Go tests (~44 min saved) and Go-only PRs skip UI tests.

Passthrough workflows with matching job names satisfy required status checks when the real workflow is skipped (GitHub leaves skipped checks as "Pending" which blocks merge).

Stacked on #20484 (container removal).

Do not merge — experiment to verify the approach works.

User-facing documentation

  • update is not needed

Testing and quality

  • the change is production ready

How I validated my change

Verify that this PR (which changes only workflow YAML) triggers both the passthrough and real workflows correctly.

Split UI jobs into unit-tests-ui.yaml with paths filter for ui/.
Add paths-ignore: ui/** to unit-tests.yaml so Go tests skip on
UI-only PRs.

Add passthrough workflows that satisfy required status checks when
the real workflow is skipped:
- unit-tests-go-passthrough.yaml: reports go/go-postgres/go-bench/
  local-roxctl check names on UI-only PRs
- unit-tests-ui-passthrough.yaml: reports ui check name on non-UI PRs

No ruleset changes needed — passthrough jobs use the same names as
the required checks.

[AI-assisted]

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented May 20, 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

Copy link
Copy Markdown
Contributor

@sourcery-ai sourcery-ai Bot left a comment

Choose a reason for hiding this comment

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

Hey - I've left some high level feedback:

  • In unit-tests-ui.yaml, consider adding .github/actions/job-preamble/** to the paths list (as it was part of run_all before) so that changes to the shared preamble that affect UI tests still reliably trigger this workflow.
  • To fully achieve the goal of skipping Go tests for UI-only changes, you may want to align the path filters so that .github/actions/cache-ui-dependencies/** (and any other strictly-UI infra) is included in paths-ignore for the Go workflow and in the paths for unit-tests-go-passthrough.yaml, mirroring the UI workflow’s configuration.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- In `unit-tests-ui.yaml`, consider adding `.github/actions/job-preamble/**` to the `paths` list (as it was part of `run_all` before) so that changes to the shared preamble that affect UI tests still reliably trigger this workflow.
- To fully achieve the goal of skipping Go tests for UI-only changes, you may want to align the path filters so that `.github/actions/cache-ui-dependencies/**` (and any other strictly-UI infra) is included in `paths-ignore` for the Go workflow and in the `paths` for `unit-tests-go-passthrough.yaml`, mirroring the UI workflow’s configuration.

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 20, 2026

🚀 Build Images Ready

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

export MAIN_IMAGE_TAG=4.11.x-1082-gbdb733f17b

[AI-assisted]

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant