Skip to content

fix(ci): stabilize nightly release checks and recovery - #1292

Merged
nixuuu merged 2 commits into
devfrom
fix/nightly-release-visibility
Nov 26, 2026
Merged

nixuuu merged 2 commits into
devfrom
fix/nightly-release-visibility

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

Changes

  • Preserve the directory entry when resolving a Codex login. On macOS, Bun can return the path of another hard link to the same inode during concurrent lookups. Bot migration now detaches the managed link while protecting the source login, including a source reached through a symbolic link.
  • Lock the thread before marking StartTurn and SteerTurn as delivered. This matches archival and prevents the sandbox profile trigger from deadlocking against command expiry.
  • Wait for the gateway's persisted turn context in the linked-agent fixture. Give the Tailscale and Windows Codex fixtures separate process and test budgets with useful failure diagnostics. Run one native packaging test per macOS architecture and log the slow actool and Swift phases.
  • Retry failed Release jobs once for a scheduled nightly when GitHub annotated each failed job with a hosted runner disconnect or an exhausted CreateArtifact request timeout. The retry uses the same run and revision and preserves the existing Push CI and publication gates.

Verification

  • Bun 1.4.5 on Apple Silicon passed 24 Codex migration and bot login tests and 12 desktop packaging tests through check:tmp. A 50,000-iteration race reproduced 23,655 missed links with the previous lookup and zero after the fix.
  • PostgreSQL 18 reproduced 40P01 with the old outbox lock order. The regression passed five repetitions after the fix. All 31 targeted archive, linked-agent and sandbox integration tests passed.
  • Tailscale passed 60 repeated executions. Both pinned Codex versions passed the live login fixture on macOS. Codex 0.172.0 also passed with an injected 24-second credential probe startup delay.
  • Worker and integration typechecks, focused lint and formatting, actionlint, and git diff --check passed. Tested the recovery script with real historical GitHub job data and a stubbed POST for runner loss, the CreateArtifact timeout that blocked v0.11.0-nightly.1, an ordinary CI failure, and a prior rerun.
  • GitHub CI covers the native Windows and macOS Intel changes. Live recovery requires a future scheduled Release with one of the recognized GitHub infrastructure failures.

Fixes: #1213
Fixes: #1114

@nixuuu
nixuuu enabled auto-merge (squash) November 26, 2026 06:56
@nixuuu
nixuuu merged commit fdd9351 into dev Nov 26, 2026
21 checks passed
@nixuuu
nixuuu deleted the fix/nightly-release-visibility branch November 26, 2026 07:12
nixuuu added a commit that referenced this pull request Nov 27, 2026
…1339)

## Changes

runCli settled only from execFile's callback, and its timeout only sent
SIGTERM. A child that ignores SIGTERM, cannot be reaped yet (macOS holds
a just-written executable in exec during its first-launch assessment),
or has a descendant holding its output kept the promise pending. The
Tailscale reading is single flight, so one such call stalled every later
refresh. The macOS native check hit this: it hung past its 15 s budget
although runCli had a 10 s deadline.

runCli now owns the deadline: it sends SIGKILL and resolves a failed
result whether or not the exit is reported.

The macOS test now links the bundle CLI path to the system shell and
keeps its checks in a plain script that shell reads, so it still checks
the bundle location, forced CLI mode, the fixed arguments and the empty
PATH without launching a new file. A new test shows that a CLI ignoring
SIGTERM, with a child holding its output, now fails at the deadline
instead of hanging.

Related: #1248
Related: #1292

## Verification

- `tests/integration/tailscale-desktop-detection.test.ts` repeated on
Linux; the new SIGTERM-ignoring CLI test times out with the old `runCli`
and passes with the fix.
- Not run on macOS locally: the macOS native check in CI covers it.
- Gateway typecheck, oxlint and oxfmt on edited files. Copy audit: no UI
text changed.

🤖 Generated with [Claude Code](https://claude.com/claude-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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant