fix(ci): skip docs-only changes for Tests workflow - #923
Conversation
Org-wide audit found tests.yml lacked paths-ignore, triggering full CI on every push/PR including docs-only changes and contributing to org-wide Actions queue congestion. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughTests 워크플로의 push 및 pull_request 트리거가 ChangesCI 경로 필터링
Estimated code review effort: 1 (매우 간단) | ~2 minutes ✨ 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 |
| paths-ignore: | ||
| - "docs/**" | ||
| - "*.md" | ||
| pull_request: | ||
| types: [opened, synchronize, reopened, closed] | ||
| paths-ignore: | ||
| - "docs/**" | ||
| - "*.md" |
There was a problem hiding this comment.
🟡 Documentation contracts lose test coverage
Changes to contract schemas, ADRs, and release notes now skip pytest, which validates those files. Broken contracts and repository-policy violations can merge undetected.
| paths-ignore: | |
| - "docs/**" | |
| - "*.md" | |
| pull_request: | |
| types: [opened, synchronize, reopened, closed] | |
| paths-ignore: | |
| - "docs/**" | |
| - "*.md" | |
| pull_request: | |
| types: [opened, synchronize, reopened, closed] |
Was this helpful? React with 👍 or 👎 to provide feedback.
| paths-ignore: | ||
| - "docs/**" | ||
| - "*.md" |
There was a problem hiding this comment.
| push: | ||
| branches: [main] | ||
| paths-ignore: | ||
| - "docs/**" |
There was a problem hiding this comment.
Adopt protected main #923's docs-only Tests workflow change without rewriting the Customer Master product delta.
Adopt protected main #923's docs-only Tests workflow delta while preserving Affiliate Tree hierarchy evidence unchanged.
Adopt protected main #923's docs-only Tests workflow delta without changing Event Lineage presentation semantics.
Adopt protected main #923's docs-only Tests workflow delta without restoring the retired direct CalDAV boundary.
…d main Adopt protected main #923's docs-only Tests workflow delta without changing the pg8000/asyncpg ownership boundary.
Preserve the branch's explicit ubuntu-24.04 runner declarations while adopting protected main #923's docs-only Tests trigger filters.
Adopt protected main #923's docs-only Tests workflow delta while preserving the occupational PRD/ADR identity repair unchanged.
Adopt protected main #923's docs-only Tests workflow delta while preserving the shared StatusNotice dashboard migration.
Adopt protected main #923's docs-only Tests workflow delta without changing the tests-only coverage slice.
Adopt protected main #923's docs-only Tests workflow delta without changing the tests-only coverage slice.
… main Adopt protected main #923's docs-only Tests workflow delta without rewriting the reviewed leftover-map product tree.
Summary
An org-wide audit of ContextualWisdomLab CI configuration found that
.github/workflows/tests.ymlhad nopaths-ignorefilter on either itspushorpull_requesttriggers, so every push and PR — including docs-only changes — runs the full pytest + PostgreSQL service job and the frontend lint/test/build/Storybook job.Across the org this is a meaningful contributor to the Actions queue backlog (the org is on a 60-concurrent-job plan ceiling), so trimming needless triggers on repos where it's safe reduces contention for every repo sharing that ceiling.
This PR adds:
to both the
pushandpull_requestblocks oftests.yml, matching thepaths/paths-ignorestyle already used elsewhere in this repo's workflows (ontology-pages.yml,prov-o-contract.yml).Safety verification performed
mainhas no classic branch protection (GET .../branches/main/protectionreturns 404).CWL Central required workflows, id 18156473) does not includetests.ymlin itsworkflowsrule at all, so this file is not part of any required-check enforcement — editing its triggers cannot starve a required check.LineageWeave: no force pushes) only enforcesnon_fast_forward, unrelated to CI triggers.tests.ymlhad no existingpaths/paths-ignorefilter before this change.Test plan
python3 -c "import yaml; yaml.safe_load(open('.github/workflows/tests.yml'))"branches,types) preserved exactly🤖 Generated with Claude Code
Summary by CodeRabbit