Skip to content

fix(ci): rewire typecheck/test workflows for local/amicode default branch - #2

Merged
jack-champagne merged 5 commits into
local/amicodefrom
ci/rewire-workflows-for-fork
Jul 28, 2026
Merged

jack-champagne merged 5 commits into
local/amicodefrom
ci/rewire-workflows-for-fork

Conversation

@jack-champagne

Copy link
Copy Markdown
Member

The typecheck and test workflows were inherited from upstream sst/opencode, which uses dev as its default branch. This fork's default is local/amicode, so the hard-coded dev gates silently disabled coverage.

Changes

  • typecheck.yml — was gated on pull_request: branches: [dev], so it never ran on any fork PR (all target local/amicode). Typechecking was effectively off. Dropped the PR branch filter (now runs on all PRs, matching test.yml) and pointed push at local/amicode.
  • test.yml — pointed the push trigger and the concurrency guard at local/amicode (post-merge runs now fire; default-branch runs aren't cancel-in-progress'd). PR-level behavior is unchanged — it already ran on all PRs.
  • e2e Node pin — pinned the e2e job to 24.15 (upstream's workaround for the Playwright 1.59 Chromium-extraction hang on 24.16); the fork was on floating "24".

Context

Companion to disabling the inherited upstream PR-hygiene bots (pr-standards, pr-management, compliance-close, close-prs, close-issues), which crashed on the same nonexistent dev ref. This PR is the "make the real tests run" half.

🤖 Generated with Claude Code

jack-champagne and others added 5 commits July 28, 2026 16:29
…anch

These workflows were inherited from upstream sst/opencode, which uses `dev`
as its default branch. The fork's default is `local/amicode`, so the `dev`
branch gates never matched:

- typecheck.yml only ran on `pull_request: branches: [dev]`, so it never ran
  on any fork PR (which target local/amicode). Typechecking was effectively
  disabled. Drop the PR branch filter (run on all PRs, like test.yml) and
  point the push trigger at local/amicode.
- test.yml's push trigger and concurrency guard referenced `dev`; point them
  at local/amicode so post-merge runs fire and default-branch runs aren't
  cancelled.
- Pin the e2e job to Node 24.15 (upstream's workaround for a Playwright 1.59
  Chromium-extraction hang on 24.16); the fork was on floating "24".

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The fork inherited `blacksmith-4vcpu-*` runner labels from upstream, but
the org has zero Blacksmith runners registered, so every job queued
forever and no test/typecheck run ever executed here. Switch to
GitHub-hosted ubuntu-latest / windows-latest so CI actually runs. Suite
verified green locally on Linux (opencode 2980, ui 95, app 376, httpapi
172, typecheck 23/23).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The suite's tight timing budgets were tuned for upstream's Blacksmith
runners; on GitHub-hosted runners two tests overshoot marginally:

- run-process.test.ts: unknown-model prompt-exit budget 15s -> 18s (was
  15264ms on CI). Bump both the harness timeoutMs and the assertion so
  the "exits on its own before the kill deadline" regression invariant
  still holds (a real hang fails at the 18s deadline; outer timeout 30s).
- app e2e: APP_READY_TIMEOUT 30s -> 45s and CI workers 5 -> 2. The
  heaviest smoke test (seeded timeline) timed out reaching app-ready
  under 5-worker contention on 4 vCPUs; fewer workers + more headroom.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Events carry a raw Location.Ref ({directory, workspaceID?}) but the v2
wire contract is a resolved Location.Info — server.connected was built
resolved while every subsequent event streamed unresolved, so schema
decoding (location.project) failed for all consumers. The stream filter
already pins events to the connection's location; map them to the same
resolved info.

Also adapt the timeline smoke e2e to the amicode home: a single seeded
project is auto-focused and its row deliberately not rendered
(HomeProjectList shows rows only when >1 projects), so wait on the
home-cards strip + focused-project content instead of clicking a row.
linux finishes in ~15min; windows timed out at the 20min cap mid-suite
with zero test failures.
@jack-champagne
jack-champagne force-pushed the ci/rewire-workflows-for-fork branch from 0fbbe4b to 81dea5d Compare July 28, 2026 20:29
@jack-champagne
jack-champagne merged commit c412987 into local/amicode Jul 28, 2026
1 of 5 checks passed
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