Skip to content

ci(fork): intake state, CI helper and release workflow edits run only the scripts tests - #1247

Open
incognitojam wants to merge 1 commit into
mainfrom
chore/ci-changes-ownership
Open

incognitojam wants to merge 1 commit into
mainfrom
chore/ci-changes-ownership

Conversation

@incognitojam

Copy link
Copy Markdown
Owner

Fork CI ran every job for changes that only the scripts tests can observe. .github/scripts/ci-changes.cjs treats any file no workspace package owns as unknown, so a 4-line edit to .github/upstream-tracked-prs.json (fork #1244) ran the full build, all server shards, every workspace suite, Windows devices, calibration and release smoke.

Change

New EXTRA_OWNERS entries:

  • .github/upstream-intake.json and .github/upstream-tracked-prs.json → @t3tools/scripts (read only by scripts/upstream/).
  • .github/scripts/** → @t3tools/scripts (scripts/ci-changes.test.ts, scripts/release-changelog.test.ts; the .test.cjs files there already run unconditionally in Fork Check).
  • .github/workflows/** except fork-ci.yml and ci.yml → @t3tools/scripts (scripts tests read fork-cli-build.yml, fork-nightly.yml and upstream-lag-report.yml). The two workflows that use this gate for their own jobs stay unknown, so editing their jobs still runs every job. .github/actions/** is unchanged and still runs everything.
  • third-party-licenses.config.json → web, mobile and scripts, which bundle and sync the notices.

The entries sit at the top of EXTRA_OWNERS, away from where pending upstream gate fixes append, so intake does not conflict.

Audit

I replayed the gate over the last 300 commits on main. 73 ran everything before this change and 63 after. All of the remaining causes are legitimate: root vite.config.ts (28, all upstream lint-rule intake, which runs full CI anyway), the lockfile, package manifests, tsconfig.base.json, pnpm-workspace.yaml and fork-ci.yml.

I also looked for the unsafe direction, where a test reads a file the gate treats as inert, which would skip that test. The only case is docs/user/t3-connect-troubleshooting.md, read by ConnectReachability.test.ts. Upstream pingdotgg#28273 fixes it and is in the intake queue, together with pingdotgg#28286 (providerEnv.ts runs every package). The fork's ledger file is inert but already covered by its dedicated ledger_changed step.

Validation

New gate tests: intake state, a CI helper and an ungated workflow affect only @t3tools/scripts, with no build and only the Other suite. This fails on main. Guard tests check that fork-ci.yml and ci.yml still run every lane, and that the licence config still builds and tests the clients.


Written by an agent (Claude Code, claude-opus-5-5).

@github-actions

github-actions Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Upstream divergence

Both sides are compared with upstream at the in-order tip a852de0b7b. Excludes .repos/ and pnpm-lock.yaml.

Measure Base This PR Change
Upstream files the fork changes 2,086 2,086 0
Lines changed in them 126,442 126,449 +7
Upstream files the fork removes 66 66 0
Fork-only files 899 899 0
Fork-only lines 160,484 160,510 +26
Upstream files whose difference changes (1)
File Change Now differs by
.github/scripts/ci-changes.cjs +7 76 lines

… the scripts tests

Files under .github/ that no package owns fell back to running every Fork CI
job. Intake state, .github/scripts helpers and workflows other than the two this
gate controls are read only by scripts/ tests, so assign them to
@t3tools/scripts. third-party-licenses.config.json goes to the clients that
bundle the notices and the scripts that sync them.
@incognitojam
incognitojam force-pushed the chore/ci-changes-ownership branch from d4462c5 to d95352c Compare November 6, 2026 23:41

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant