Skip to content

ci: skip Rust build/E2E/chaos/bench for docs-only changes#478

Merged
pallakatos merged 1 commit into
mainfrom
ci/skip-heavy-jobs-on-docs-only
Jun 29, 2026
Merged

ci: skip Rust build/E2E/chaos/bench for docs-only changes#478
pallakatos merged 1 commit into
mainfrom
ci/skip-heavy-jobs-on-docs-only

Conversation

@pallakatos

Copy link
Copy Markdown
Collaborator

Closes #477.

Docs/asset-only changes (like #476, swapping a .gif/.cast) currently drag the full ~19min Rust build + E2E + chaos + bench. This adds a lightweight changes classifier:

  • build-rust (required check) still RUNS so its status reports, but short-circuits compile/clippy/test/upload when code==false → branch protection satisfied in ~20s for docs.
  • chaos / bench / e2e gate on changes.code and skip entirely for docs.
  • cli-build / helm-lint / security-scan stay always-on (cheap, required).
  • push / workflow_dispatch / workflow_call always classify as code, so release.yml is unaffected.

Docs classified as: docs/**, *.md, README.md, mkdocs.yml, book.toml. Anything else = code.

Docs/asset-only PRs (markdown, docs/, .cast/.gif) dragged the full ~19min
Rust build + E2E + chaos + bench. Adds a 'changes' classifier job:

- build-rust stays a required check that RUNS (reports success) but
  short-circuits its expensive steps when code==false, so branch
  protection is satisfied without compiling.
- chaos/bench/e2e gate on changes.code and skip entirely for docs.
- cli-build/helm-lint/security-scan stay always-on (cheap).
- push/dispatch/workflow_call always classify as code (release unaffected).

Closes #477.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@pallakatos pallakatos merged commit 20ee7b8 into main Jun 29, 2026
35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI: path-filter so docs/asset-only changes skip the Rust build/E2E/bench

1 participant