Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix(ci): qualify compiler lifecycle hooks on fallback hosts
  • Loading branch information
gensokyo-dev committed Oct 21, 2026
commit d8d26bd241f0439f5eb5c9149569dfc1c49ca160
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -819,6 +819,11 @@ jobs:
with:
save: "true"
- run: npm ci
- name: Typecheck with the official Windows compiler
env:
GOMAXPROCS: "2"
GOMEMLIMIT: "3GiB"
run: npm run typecheck -- --checkers 2
Comment thread
gensokyo-dev marked this conversation as resolved.
Resolved
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
with:
name: rea-build-cache
Expand Down
7 changes: 5 additions & 2 deletions docs/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -666,8 +666,11 @@ missing entries are omitted as whole entries, and consumers rebuild cache misses
including when every entry is unavailable. Malformed plans, non-file entries,
and I/O errors other than disappearance still fail publication. After a trusted
static run, superseded cross-run Turbo snapshots for that OS and architecture
are deleted down to the two newest generations. The Windows lane relies on the Linux static job for typechecking. They retain the normal build and prepack
commands, which restore matching outputs or rebuild on a cache miss. Native
are deleted down to the two newest generations. The Windows lane also runs the
official compiler's complete source typecheck with two checker threads,
independently of the accelerated Linux checker. Both lanes retain the normal
build and prepack commands, which restore matching outputs or rebuild on a cache
miss. Native
artifacts, dependency installs, package archives, and runtime verification remain
host-local. Keep platform-dependent outputs out of this shared cache.

Expand Down
2 changes: 1 addition & 1 deletion scripts/ci/plan.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ function classifyPackage(base, head) {
"test:prepare",
"docs:prepare",
"verify:frida:bindings",
];
].flatMap((name) => [name, `pre${name}`, `post${name}`]);
selected.package ||=
JSON.stringify(compilerDependencies(before)) !==
JSON.stringify(compilerDependencies(after)) ||
Expand Down
3 changes: 3 additions & 0 deletions tests/boundary/filesystem/ciChangeScope.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1558,6 +1558,9 @@ it.each([
"test:prepare",
"docs:prepare",
"verify:frida:bindings",
"prebuild:cached",
"postcompile",
"pretypecheck",
])(
"selects fallback host checks when compiler command %s changes",
async (name) => {
Expand Down
13 changes: 13 additions & 0 deletions tests/process-global/curatedWindowsLane.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,3 +136,16 @@ it("keeps every explicit focused CI test path executable after file moves", asyn
);
expect(missing.filter((path) => path !== undefined)).toEqual([]);
}, 10_000);

it("checks the complete source with the fallback compiler before Windows build reuse", async () => {
const workflow = workflowSchema.parse(
parse(await readFile(WORKFLOW, "utf8")),
);
const steps = workflow.jobs["windows-curated"]?.steps ?? [];
const checked = steps.findIndex(
(step) => step.run === "npm run typecheck -- --checkers 2",
);
const built = steps.findIndex((step) => step.run === "npm run build:cached");
expect(checked).toBeGreaterThan(-1);
expect(built).toBeGreaterThan(checked);
});