Skip to content

ci: every package and the dev scenarios get an area label - #607

Merged
allisonmahmood merged 3 commits into
mainfrom
docs/area-label-execution
Oct 15, 2026
Merged

allisonmahmood merged 3 commits into
mainfrom
docs/area-label-execution

Conversation

@allisonmahmood

@allisonmahmood allisonmahmood commented Oct 9, 2026 •

Copy link
Copy Markdown
Owner

A pull request that touches only packages/execution, apps/infra, the dev scenarios/, t3.json or favicon.svg gets no area label, because .github/labeler.yml names none of them (#471, #531 and #532 went out with no area or only area:docs). Triage reads the matching table in docs/agents/triage-labels.md, which had the same gaps. Nothing enforced the "change both together" note at the top of the labeler config, so the next package would slip through the same way.

What changed

  • packages/execution/** and apps/infra/** join area:server. Execution is part of the Runtime context and infra is the hosting side.
  • scenarios/**, t3.json and favicon.svg join area:ci. These are the seeds pnpm dev up builds environments from, plus T3 Code's project config and icon.
  • The triage table's area:server and area:ci rows now match the globs line for line. The whole table is rewrapped because prettier pads its columns.
  • scripts/labeler.test.ts, which runs in pnpm test, reads the labeler config's area:* globs. It matches each directory git lists under apps/ and packages/ with minimatch and dot: true, the way actions/labeler v7 does, and fails naming any directory with no area. It probes each directory with <dir>/package.json: chore(deps): bump es-module-lexer to 3 #471 touched only that and the lockfile, and a Markdown probe would always match area:docs. minimatch and yaml become root devDependencies; both were already in the lockfile.

What I checked by hand

The test, against deliberately broken configs:

Change Result
None passes
Delete the packages/execution/** glob fails: expected [ 'packages/execution' ] to deeply equal []
Delete the apps/infra/** glob fails: [ 'apps/infra' ]
Rename area:server to server fails, naming its 15 directories
Add an untracked, unignored packages/zz-scratch/package.json fails: [ 'packages/zz-scratch' ]
Add an untracked packages/core/zz-café.txt (git quotes non-ASCII paths unless -z) passes

I also ran actions/labeler's own code (getLabelConfigs and checkMatchConfigs with dot: true, from its source at the SHA pinned in pr-labels.yml) over main's config and this branch's:

Changed files main this branch
scenarios/team/scenario.json none area:ci
scenarios/brightline/patches/kudos/index.html none area:ci
t3.json none area:ci
favicon.svg none area:ci
packages/execution/src/index.ts none area:server
packages/execution/package.json + pnpm-lock.yaml none area:server
apps/infra/src/index.ts none area:server
pnpm-lock.yaml alone none none (as the table says)

The label workflow runs on pull_request_target and reads labeler.yml from main, so this PR's own labels come from the old config. The new globs apply to PRs opened after this merges.

Hit every surface

Applied: the labeler config and triage table pair. They agree on every area changed here. Did not apply: the wire contract, CLI, dev loop (no runner or seed change), vocabulary, migrations, company resources, served pages, reverse states and repo layout.

Closes #498

Made by Claude Opus 5.5 in Claude Code, running in T3 Code.

@github-actions github-actions Bot added area:ci CI, shared testing infrastructure, development scripts and tooling area:docs Touches the docs area size:s Under 100 changed lines labels Oct 9, 2026
allisonmahmood and others added 2 commits October 15, 2026 12:08
The area mapping named neither packages/execution nor apps/infra, so a
pull request touching only those got no area label, and triage had no
row to file them under. Both are the hosting side; they join
area:server in the labeler globs and the triage table.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…labelled packages

scenarios/, t3.json and favicon.svg matched no area glob, so a pull
request touching only them got no area label. They are dev tooling and
join area:ci in the labeler globs and the triage table.

Nothing enforced the "change both together" note at the top of
labeler.yml, which is how packages/execution slipped through. A test now
reads the labeler config's area globs, matches each directory git lists
under apps/ and packages/ the way actions/labeler does, and names any
directory with no area.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@allisonmahmood
allisonmahmood force-pushed the docs/area-label-execution branch from e3958aa to 6365fc2 Compare October 15, 2026 10:24
@allisonmahmood allisonmahmood changed the title ci: execution and infra changes get the area:server label ci: every package and the dev scenarios get an area label Oct 15, 2026
Without -z, git ls-files quotes a path with non-ASCII characters, and
the test read its opening quote as part of a directory name.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@allisonmahmood

Copy link
Copy Markdown
Owner Author

GPT 6.1 Sol (xhigh) reviewed this in two rounds.

Round 1

  1. should-fix, scripts/labeler.test.ts: only directories with a package.json were checked, not every directory under apps/ and packages/, and a gitignored scratch package could fail the test. Fixed: directories now come from git ls-files --cached --others --exclude-standard.
  2. should-fix, scripts/labeler.test.ts: globs from non-area: labels counted as coverage. Fixed: only area:* labels are read.

Round 2 (both round 1 fixes confirmed)

  1. should-fix, scripts/labeler.test.ts: without -z, git quotes paths with non-ASCII characters, so a file like packages/core/fixtures/café.html would invent a "packages/core directory. Fixed in d4cc4b5.
  2. nit, scripts/labeler.test.ts: --cached keeps a deletion that isn't staged yet, so removing a package and its glob fails locally until the deletion is staged. Dismissed: CI tests commits, where the index and the tree agree, and locally it clears once the deletion is staged. A filesystem check would give the test a second source of truth for one short-lived state.

@allisonmahmood
allisonmahmood merged commit 5604f30 into main Oct 15, 2026
13 checks passed
@allisonmahmood
allisonmahmood deleted the docs/area-label-execution branch October 15, 2026 16:46
allisonmahmood added a commit that referenced this pull request Oct 16, 2026
…u when they fail (#720)

Release 13's What's new entry, written from `c9b8fc4`, ahead of
deploying it. `patchy` and `CURRENT_RELEASE` move to `0.13.0`, so CLIs
and patch repos installed before this deploy are told to upgrade.

| Change | PRs |
| --- | --- |
| New: Home puts the patches you use first | #713, #716, #719 |
| New: Every patch in one list | #715 |
| Improved: Each patch's page leads with Open | #717 |
| New: See when your tools are failing | #718 |
| Fixed: Everyone has a name | #687 |
| Improved: Your company's look is easier to get right | #697, #696,
#703, #688 |
| Improved: Forms follow your look's error states | #691, #692 |
| Improved: Clearer answers when a publish goes wrong | #686, #685, #689
|
| Fixed: Your agent's Patchy commands are steadier | #695, #704, #680,
#681 |
| Behind the scenes: stricter checks on static pages and tools' database
requests; malformed requests are logged | #682, #693, #683 |
| Behind the scenes: usage numbers count every publish, sharing change
and restore | #698, #699, #700, #690 |
| Test and tooling only, no line | #705, #702, #701, #694, #684, #607 |

Made by Claude Opus 5.5 in Claude Code, running in T3 Code.

Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:ci CI, shared testing infrastructure, development scripts and tooling area:docs Touches the docs area size:s Under 100 changed lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ci(labels): packages/execution and scenarios get no area label

1 participant