Skip to content
Source
Sign inSign up
pingdotgg/t3code

ci: run typecheck inside the Build job #19633

Mergedmaria-rcksmerged 6 commits intot3/ci-cache-chromium fromrefs/pull/19633/headmerged by maria-rcks View on GitHub

maria-rckscommented

Typecheck paid ~40s of checkout and install on its own 8 vCPU runner for ~22s of work. It now runs in the background of the Build job while the desktop build runs, and reports in its own final step, so neither result hides the other. Check lets Build skip only when both its gates say no.

Runner seconds: Build 84s plus Typecheck 61s before, one 92s job after

Measured from CI runs of #19632 and this PR: about 7 vCPU-minutes less per PR. Build finishes at 1:42 instead of 1:38, still well before the slowest server shard, so wall time is unchanged. Folding Release Smoke into Lint was tried and dropped: its install slowed knip from 39s to 69s.

Stacked on #19632.

🤖 Generated with Claude Code (claude-opus-5-5, via T3 Code)

    1. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted

    2. juliusmarminge added labelsmacroscope-review

    3. github-actions[bot](GitHub profile, opens in a new tab)commented

      Thread transfer impact

      ✅ Thread transfer remains within every enforced ceiling.

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

      ProviderMetricMain baselineThis PRImpactPR ceiling
      CodexTotal thread wire—5.0 KiB—6.8 KiB✅
      CodexThread snapshot wire—3.8 KiB—4.9 KiB✅
      CodexLive turn WebSocket wire—1.2 KiB—2.0 KiB✅
      CodexLive turn WebSocket decoded—20.9 KiB—29.3 KiB✅
      CodexLive turn messages—2—8✅
      ClaudeTotal thread wire—5.0 KiB—6.8 KiB✅
      ClaudeThread snapshot wire—3.8 KiB—4.9 KiB✅
      ClaudeLive turn WebSocket wire—1.2 KiB—2.0 KiB✅
      ClaudeLive turn WebSocket decoded—21.2 KiB—29.3 KiB✅
      ClaudeLive turn messages—2—8✅

      Baseline: unavailable · PR result: 3d2ff9d · 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.

    4. macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      Approvability

      Verdict: Approved at bbfc047

      Macroscope's review found this PR approvable — This one-file change only reorganizes an existing typecheck within the CI Build job and preserves separate build/typecheck gating in the aggregate check. It does not affect product defaults, production behavior, deployment targets, or static-analysis policy.

      No code changes detected at 3d2ff9d. Prior analysis still applies.

      You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    5. maria-rcks changed the title

    6. coderabbitai[bot](GitHub profile, opens in a new tab)commented
      Review in Change Stack →

      No actionable comments were generated in the recent review. 🎉

      ℹ️ Recent review info
      ⚙️ Run configuration
      • Configuration used: Path: .coderabbit.config.ts
      • Review profile: CHILL
      • Plan: Advanced
      • Run ID: 53d5e5aa-f862-4c2e-b68f-8b25b3399961
      📥 Commits

      Reviewing files that changed from the base of the PR and between bbfc04723189c9d10d67cf83d72eadab58173a7c and 3d2ff9d7d6c14eeb43129ead45b61f32811d2bb6.

      📒 Files selected for processing: 1
      • .github/workflows/ci.yml

      Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 2 remain after this review.

      📝 Walkthrough

      The CI workflow combines build and typecheck into one job. Build steps and background typecheck run according to separate gates. The Check job now validates the merged job’s skip condition against both gates.

      Changes: CI Build and Typecheck

      Layer / File(s)Summary
      Combined build and typecheck job
      .github/workflows/ci.yml
      The workflow combines the build and typecheck jobs. Build setup and execution run only when the build gate allows them. Typecheck runs in the background when its gate allows it, and the workflow reports its result separately.
      Merged job skip validation
      .github/workflows/ci.yml
      The Check job no longer lists typecheck as a separate required job. It accepts a skipped merged job only when both the build and typecheck gates are false.

      Priority: ⬇️ Low

      Estimated code review effort: 3 (Moderate) | ~20 minutes

      Change: Refactor

      Suggested reviewers: juliusmarminge, t3dotgg

      Merge Risk: ⚪ Minimal · up to 3d2ff

      The combined job retains separate build and typecheck failure reporting, and its skip check accounts for both gates. No merge-blocking issue was identified.

      Security architecture risk: ⚪ Minimal · up to 3d2ff

      The consolidation does not add credentials or permissions. The merged job preserves failure propagation, and the required Check accepts skipped work only when both represented gates are disabled. No material security risk was identified in this change.

      Retained concerns No architecture-level concerns identified.

      Security review details

      Security Blast Radius

      • inferred — The changed exposure is the shared CI workspace, background-process lifecycle, and aggregate validation result. The inspected configuration does not expand repository-code execution into a new privileged service or production environment.

      Trust Boundaries and Controls

      • inferred — Repository-controlled commands already executed in both original jobs. Consolidation removes their separate job boundary but adds no declared authority. The status file is a completion protocol within that shared execution context, not an isolation boundary against malicious repository code.

      Resilience and Maintainability Implications

      • inferred — Setup failures, nonzero reported typecheck status, and reporting timeouts cannot satisfy Check's success condition. The new background process lacks explicit PID tracking or cleanup, leaving runner-level termination behavior unverified, but the inspected missing-status path remains fail-closed.
      Pre-merge checks: Passed 4
      Check nameStatusExplanation
      Title checkPassedThe title clearly and concisely describes the main change: running typecheck inside the Build job.
      Description checkPassedThe description clearly explains the problem, implementation, measured CI results, verification, and agent usage. It is detailed and directly related to the pull request.
      Linked Issues checkPassedCheck skipped because no linked issues were found for this pull request.
      Out of Scope Changes checkPassedCheck skipped because no linked issues were found for this pull request.
      ✨ Finishing Touches
      🧪 Generate unit tests (beta)
      • Commit to this branch
      • Create a new PR
      • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
      Comment `@coderabbitai help` to get the list of available commands.
    7. maria-rcks merged this3697644

    8. maria-rcks closed this

Sign in to join this conversation.