Skip to content

Commit 73aad1a

Browse files
committed
ci: skip device lanes for root-level docs-only changes (#1781 A9)
Add AGENTS.md, CHANGELOG.md, CONTEXT.md, CONTRIBUTING.md, LICENSE, and SECURITY.md to the pull_request paths-ignore block in ios.yml, android.yml, linux.yml, macos.yml, ci.yml, and size.yml. These root-level docs files were the only gap left after docs/**, website/**, and README.md — PRs #1568 (SECURITY.md only), #1697 (CONTEXT.md + docs/adr only), and #1722 (AGENTS.md + docs/) each still triggered a full 9-15 min macOS iOS run despite touching only prose. Why each file is safe to ignore for every one of these six workflows: - None of the four device workflows (ios/android/linux/macos) or their composite actions read any of these six files at runtime; the only hits from `grep -rln` across scripts/, src/, test/, and .github/actions/ are prose comments pointing humans at CONTEXT.md or AGENTS.md sections (e.g. scripts/layering/check.ts, scripts/wire-compat/run.ts, src/mcp/tool-ref-pins.ts) — never an `fs.readFileSync`/`readFile` of the file itself. - The check-affected selector (scripts/check-affected/model.ts) already classifies all six as pure docs: `isDocs()` matches any `.md` file plus the literal `LICENSE`, and `docsOwnership()` only special-cases `website/docs/docs/commands.md` (unrelated). So these files already select zero checks — they only ever produced `docsOnlyPaths` entries, never `SelectionReason`s. - Because they select zero checks, the gate-manifest's path-coverage category derivation (`scripts/gate/model.ts` `categories()`, which iterates `plan.reasons`) never records a category for them, so ci.yml has nothing check-manifest-only that these six files would need to keep reachable. `pnpm check:gate-manifest` and `pnpm check:gate-manifest:test` both stay green after the change (48 checks / 33 lanes, 28/28 gate tests passing). - size.yml's bundle-size job (scripts/size-report.mjs) measures the `pnpm build` dist output and startup timing only — no reference to any of these six files. (npm packs LICENSE/README.md into the publishable tarball, but that's a `pnpm check:package` node-22.12 concern in ci.yml's packaged-cli job, which is driven by `dist` contents and `package.json`, not by LICENSE/README prose — already evidenced by README.md being ignored here since before this change.) Scope disclosure: `mutation-affected.yml` uses a `paths:` allowlist (not paths-ignore) so it's structurally unaffected; `test-app-build-cache.yml` has no path filter at all. Neither was touched. actionlint and `pnpm check:gate-manifest`/`:test` pass on the changed workflows.
1 parent 0697915 commit 73aad1a

6 files changed

Lines changed: 36 additions & 0 deletions

File tree

.github/workflows/android.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ on:
66
- 'docs/**'
77
- 'website/**'
88
- 'README.md'
9+
- 'AGENTS.md'
10+
- 'CHANGELOG.md'
11+
- 'CONTEXT.md'
12+
- 'CONTRIBUTING.md'
13+
- 'LICENSE'
14+
- 'SECURITY.md'
915
- '.github/actions/build-docs/action.yml'
1016
- '.github/workflows/deploy.yml'
1117
- '.github/workflows/pr-preview.yml'

.github/workflows/ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ on:
66
- 'docs/**'
77
- 'website/**'
88
- 'README.md'
9+
- 'AGENTS.md'
10+
- 'CHANGELOG.md'
11+
- 'CONTEXT.md'
12+
- 'CONTRIBUTING.md'
13+
- 'LICENSE'
14+
- 'SECURITY.md'
915
- '.github/actions/build-docs/action.yml'
1016
- '.github/workflows/deploy.yml'
1117
- '.github/workflows/pr-preview.yml'

.github/workflows/ios.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ on:
66
- 'docs/**'
77
- 'website/**'
88
- 'README.md'
9+
- 'AGENTS.md'
10+
- 'CHANGELOG.md'
11+
- 'CONTEXT.md'
12+
- 'CONTRIBUTING.md'
13+
- 'LICENSE'
14+
- 'SECURITY.md'
915
- '.github/actions/build-docs/action.yml'
1016
- '.github/workflows/deploy.yml'
1117
- '.github/workflows/pr-preview.yml'

.github/workflows/linux.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ on:
66
- 'docs/**'
77
- 'website/**'
88
- 'README.md'
9+
- 'AGENTS.md'
10+
- 'CHANGELOG.md'
11+
- 'CONTEXT.md'
12+
- 'CONTRIBUTING.md'
13+
- 'LICENSE'
14+
- 'SECURITY.md'
915
- '.github/actions/build-docs/action.yml'
1016
- '.github/workflows/deploy.yml'
1117
- '.github/workflows/pr-preview.yml'

.github/workflows/macos.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ on:
66
- 'docs/**'
77
- 'website/**'
88
- 'README.md'
9+
- 'AGENTS.md'
10+
- 'CHANGELOG.md'
11+
- 'CONTEXT.md'
12+
- 'CONTRIBUTING.md'
13+
- 'LICENSE'
14+
- 'SECURITY.md'
915
- '.github/actions/build-docs/action.yml'
1016
- '.github/workflows/deploy.yml'
1117
- '.github/workflows/pr-preview.yml'

.github/workflows/size.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ on:
66
- 'docs/**'
77
- 'website/**'
88
- 'README.md'
9+
- 'AGENTS.md'
10+
- 'CHANGELOG.md'
11+
- 'CONTEXT.md'
12+
- 'CONTRIBUTING.md'
13+
- 'LICENSE'
14+
- 'SECURITY.md'
915
- '.github/actions/build-docs/action.yml'
1016
- '.github/workflows/deploy.yml'
1117
- '.github/workflows/pr-preview.yml'

0 commit comments

Comments
 (0)