Skip to content

ci(fork): run CI on GitHub-hosted runners and make it pass - #3

Merged
HernandoR merged 2 commits into
feature/fork-cli-command-not3from
ci/stop-queue-use-infra
Dec 2, 2026
Merged

HernandoR merged 2 commits into
feature/fork-cli-command-not3from
ci/stop-queue-use-infra

Conversation

@HernandoR

@HernandoR HernandoR commented Dec 2, 2026 •

Copy link
Copy Markdown
Owner

Problem

The fork has no Blacksmith runners, but upstream's CI and Mobile Fingerprint Check workflows request them, so every run sat in the queue forever. Once CI ran, it also showed tests the fork had broken without noticing: they still expected upstream's app id, link scheme, release repository and locales.

Change

Runners

  • ci.yml and mobile-fingerprint-check.yml run on GitHub-hosted runners: ubuntu-24.04, and macos-26 for the native mobile lint. Job timeouts are raised for the smaller 4-vCPU runners (Lint, Build and Typecheck, Test, Test Web 10 → 20 min; Release Smoke 15 → 25; Typecheck step 5 → 10).
  • fork/check.ts fails if a merge brings a blacksmith label back into either workflow.

Tests updated to the fork's values (each edit tagged FORK(...) and counted by the guard)

  • Desktop: app id, scheme and profile folder come from the runtime constants (getDesktopScheme, resolveLinuxDesktopEntryName).
  • Server: EnvironmentAuth uses the not3code://app origin. CliTokenManager and CloudLink.lifecycle mock publicConfig back to upstream's Clerk and relay config, as up.connect.test.ts already does, so they still test that logic. Production keeps Connect off.
  • Mobile: release checks use CLI_RELEASES_PAGE_URL and CLI_RELEASE_REPOSITORY.
  • Web and mobile: tests that used Japanese, German or French now use Simplified Chinese.

Fork bugs CI surfaced

  • bootError.ts imported cliRelease, which puts effect on the boot path before any chunk loads. It spells the release URL out again, and the guard checks that copy.
  • mcpApps.ts wrote the name as T3%20Code in the Poke and Claude handoff links. The rebrand plugin doesn't match that, so builds still sent "T3 Code".

Release smoke

  • It no longer runs the deleted relay test. The workspace fixture includes infra/task-cache, so the alchemy patch stays in use (pnpm fails on unused patches).

Verification

  • vp run check:changed passes, including node fork/check.ts. node scripts/release-smoke.ts passes.
  • Every test that failed in the first GitHub-hosted run passes locally, and so do the mobile tests that run never reached.
  • Two tests fail only on the dev box and are untouched by the fork: AgentScope and serviceProtection need to lower oom_score_adj, which this container doesn't allow.

🤖 Generated with Claude Code

The fork has no Blacksmith runners, so every CI and mobile fingerprint run
sat in the queue forever. Both workflows now use ubuntu-24.04 (and macos-26
for the native mobile lint), with job timeouts raised for the 4-vCPU
runners. The fork guard fails if an upstream merge brings a Blacksmith
label back.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:M labels Dec 2, 2026
@github-actions

github-actions Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

Thread transfer impact

✅ Thread transfer remains within every enforced ceiling.

ℹ️ No successful main baseline artifact is available yet. This run establishes the initial measurement.

Provider Metric Main baseline This PR Impact PR ceiling
Codex Total thread wire — 5.0 KiB — 6.8 KiB ✅
Codex Thread snapshot wire — 3.8 KiB — 4.9 KiB ✅
Codex Live turn WebSocket wire — 1.2 KiB — 2.0 KiB ✅
Codex Live turn WebSocket decoded — 21.5 KiB — 24.4 KiB ✅
Codex Live turn messages — 1 — 8 ✅
Claude Total thread wire — 5.0 KiB — 6.8 KiB ✅
Claude Thread snapshot wire — 3.8 KiB — 4.9 KiB ✅
Claude Live turn WebSocket wire — 1.2 KiB — 2.0 KiB ✅
Claude Live turn WebSocket decoded — 21.9 KiB — 24.4 KiB ✅
Claude Live turn messages — 1 — 8 ✅

Other scenarios

No main baseline exists yet for these 64 scenario measurements.

All 64 scenario measurements
Provider Scenario Metric Main baseline This PR Impact PR ceiling
Codex short turn resume WebSocket decoded — 10.5 KiB — 12.7 KiB ✅
Codex short turn resume WebSocket messages — 2 — 2 ✅
Codex long turn running, cold open HTTP decoded — 281.7 KiB — 302.7 KiB ✅
Codex long turn running, cold open rows — 75 — 75 ✅
Codex long turn running, history page HTTP decoded — 92.4 KiB — 107.4 KiB ✅
Codex long turn running, history page rows — 75 — 75 ✅
Codex long turn finished, cold open HTTP decoded — 381.5 KiB — 410.2 KiB ✅
Codex long turn finished, cold open rows — 151 — 151 ✅
Codex long turn finished, socket cold open WebSocket decoded — 381.6 KiB — 410.2 KiB ✅
Codex long turn finished, socket cold open WebSocket messages — 2 — 2 ✅
Codex long turn finished, socket cold open rows — 151 — 151 ✅
Codex long turn finished, work page HTTP decoded — 186.2 KiB — 200.2 KiB ✅
Codex long turn finished, work page rows — 150 — 150 ✅
Codex idle thread resume WebSocket decoded — 65 B — 200 B ✅
Codex idle thread resume WebSocket messages — 1 — 1 ✅
Codex fleet shell snapshot HTTP decoded — 42.4 KiB — 53.7 KiB ✅
Codex fleet shell snapshot rows — 27 — 27 ✅
Codex fleet shell subscribe WebSocket decoded — 65 B — 200 B ✅
Codex fleet shell subscribe WebSocket messages — 1 — 1 ✅
Codex fleet shell resume check HTTP decoded — 18 B — 100 B ✅
Codex fleet shell resume check rows — 0 — 0 ✅
Codex stale shell reload HTTP decoded — 42.4 KiB — 53.7 KiB ✅
Codex stale shell reload rows — 27 — 27 ✅
Codex stale shell resume WebSocket decoded — 140 B — 400 B ✅
Codex stale shell resume WebSocket messages — 2 — 2 ✅
Codex stale todo list cold open HTTP decoded — 72.4 KiB — 83.0 KiB ✅
Codex stale todo list cold open rows — 75 — 75 ✅
Codex stale todo list cold open nodes — 2 — 4 ✅
Codex stale todo list cold open subagents — 2 — 4 ✅
Codex stale todo list cold open plans — 1 — 2 ✅
Codex stale todo list cold open providerTurns — 1 — 2 ✅
Codex stale todo list cold open checkpoints — 1 — 2 ✅
Claude short turn resume WebSocket decoded — 10.6 KiB — 12.7 KiB ✅
Claude short turn resume WebSocket messages — 2 — 2 ✅
Claude long turn running, cold open HTTP decoded — 283.3 KiB — 302.7 KiB ✅
Claude long turn running, cold open rows — 75 — 75 ✅
Claude long turn running, history page HTTP decoded — 93.4 KiB — 107.4 KiB ✅
Claude long turn running, history page rows — 75 — 75 ✅
Claude long turn finished, cold open HTTP decoded — 384.2 KiB — 410.2 KiB ✅
Claude long turn finished, cold open rows — 151 — 151 ✅
Claude long turn finished, socket cold open WebSocket decoded — 384.3 KiB — 410.2 KiB ✅
Claude long turn finished, socket cold open WebSocket messages — 2 — 2 ✅
Claude long turn finished, socket cold open rows — 151 — 151 ✅
Claude long turn finished, work page HTTP decoded — 188.1 KiB — 200.2 KiB ✅
Claude long turn finished, work page rows — 150 — 150 ✅
Claude idle thread resume WebSocket decoded — 66 B — 200 B ✅
Claude idle thread resume WebSocket messages — 1 — 1 ✅
Claude fleet shell snapshot HTTP decoded — 43.0 KiB — 53.7 KiB ✅
Claude fleet shell snapshot rows — 27 — 27 ✅
Claude fleet shell subscribe WebSocket decoded — 66 B — 200 B ✅
Claude fleet shell subscribe WebSocket messages — 1 — 1 ✅
Claude fleet shell resume check HTTP decoded — 18 B — 100 B ✅
Claude fleet shell resume check rows — 0 — 0 ✅
Claude stale shell reload HTTP decoded — 43.0 KiB — 53.7 KiB ✅
Claude stale shell reload rows — 27 — 27 ✅
Claude stale shell resume WebSocket decoded — 140 B — 400 B ✅
Claude stale shell resume WebSocket messages — 2 — 2 ✅
Claude stale todo list cold open HTTP decoded — 73.4 KiB — 83.0 KiB ✅
Claude stale todo list cold open rows — 75 — 75 ✅
Claude stale todo list cold open nodes — 2 — 4 ✅
Claude stale todo list cold open subagents — 2 — 4 ✅
Claude stale todo list cold open plans — 1 — 2 ✅
Claude stale todo list cold open providerTurns — 1 — 2 ✅
Claude stale todo list cold open checkpoints — 1 — 2 ✅

Baseline: unavailable · PR result: 1db8c1e · Source CI: success

Scenario and decoded snapshot size

10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.

  • Codex decoded thread snapshot: 108.5 KiB
  • Claude decoded thread snapshot: 108.8 KiB

Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.

CI never ran on the fork before, so tests still expected upstream's app id,
link scheme, profile folder, release repository and locales. They now read
the fork's values (from the runtime constants where one exists), and tests
for dropped locales use Simplified Chinese. The relay and Clerk tests mock
publicConfig back to upstream's config, as up.connect.test.ts already does,
so they still cover that logic while the app keeps Connect off.

Two real fork bugs surfaced:
- The boot error page imported cliRelease, which pulls effect onto the boot
  path before any chunk loads. It spells the release URL out again; the
  guard checks the copy.
- The Poke and Claude MCP handoff links wrote the name as `T3%20Code`, which
  the rebrand plugin does not match, so builds still sent "T3 Code".

Release smoke no longer runs the deleted relay test, and its workspace
fixture includes infra/task-cache so the alchemy patch stays in use.
fork/check.ts counts every new hook.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@HernandoR HernandoR changed the title ci(fork): run CI on GitHub-hosted runners instead of Blacksmith ci(fork): run CI on GitHub-hosted runners and make it pass Dec 2, 2026
@HernandoR
HernandoR merged commit 75e522d into feature/fork-cli-command-not3 Dec 2, 2026
34 checks passed
HernandoR added a commit that referenced this pull request Dec 3, 2026
…-main

ci(fork): bring PR #3 and PR #7 onto main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant