Skip to content

test: validate path filter on doc-only change - #202

Closed
EVWorth wants to merge 5 commits into
mainfrom
test/docs-path-filter-validation
Closed

EVWorth wants to merge 5 commits into
mainfrom
test/docs-path-filter-validation

Conversation

@EVWorth

@EVWorth EVWorth commented Jul 19, 2026

Copy link
Copy Markdown
Owner

Validation PR — should run ONLY detect-changes + dprint.

Includes the path-filter workflow changes (so CI runs them) plus a docs/SECURITY.md edit. If path filters work, only detect-changes (5s) and dprint (~30s) should run; no Rust/Node tests.

EVWorth added 5 commits July 18, 2026 22:21
Adds path-based job filtering. Doc-only PRs (the bulk of recent work)
no longer run the full Rust test suite (~5min), Node test suite
(~1.5min), Rust clippy (~3min), or TS lint (~30s). They run only:
- dprint format check (~30s)
- version consistency check (skipped unless manifests change)
- the detect-changes job itself (~5s)

How it works:
1. New detect-changes job uses dorny/paths-filter to classify changed
   files into 6 buckets: frontend, rust, npm, cargo, docs, workflows,
   config
2. Each downstream job has 'needs: detect-changes' + 'if' condition
   based on which buckets changed
3. Doc-only PRs: only dprint runs (plus detect-changes itself)

Job-by-job mapping:

  frontend → lint-ts, test-frontend
  rust     → lint-rust, test-rust
  npm      → npm-audit, deps-age
  cargo    → cargo-audit, check-versions (when Cargo.toml/lock changed)
  docs     → dprint
  workflows → (none — workflow changes always trigger detect-changes)
  config   → (none — config files covered by their owning bucket)

New dprint job:
- Catches formatting issues that lefthook might miss
  (e.g., PRs opened via GitHub UI without local pre-commit)
- Runs on any doc or frontend change

test-e2e stays disabled (if: false) per existing config.

Note: dorny/paths-filter SHA pinned to v3.0.2. SHA may need verification
on first run; if workflow errors on detect-changes, update to current
SHA from https://github.com/dorny/paths-filter/releases.
Correct SHA: d1c1ffe0248fe513906c8e24db8ea791d46f8590
@EVWorth

EVWorth commented Jul 19, 2026

Copy link
Copy Markdown
Owner Author

Validation complete — path filters + dprint working as designed:

  • detect-changes: pass in 6s
  • dprint: ran (correctly, since docs/ changed) — found 2 unformatted files in my test edits (intentional, validates the check works)
  • All Rust/Node test jobs: SKIPPED (correctly, since only docs/ changed)

CI time for a docs-only PR: ~30s (dprint) vs the previous ~10min (full test suite).

Closing validation PR. The actual implementation is #199 (path-filters PR against main).

@EVWorth EVWorth closed this Jul 19, 2026
@EVWorth
EVWorth deleted the test/docs-path-filter-validation branch July 19, 2026 03:32
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.

1 participant