fix(ci): restore generated shard inputs and cleanup assertions

Restore ignored generated inputs before deterministic test shards consume the downloaded build. Preserve verified cleanup assertions and explicitly check residual unknowns for unrelated processes.
This commit is contained in:
Ysopwnable authored and GitHub committed 2026-10-08 23:20:52 +08:00
1 parent 46d195e8a4
commit 5f93b4b125
2 files changed
+17 -4

No files matched your search

+6 -2
View File
@@ -102,8 +102,12 @@ jobs:
with:
name: rea-dist
path: dist
- name: Generate source catalog from downloaded build
run: node scripts/generate-mcp-tool-catalog.mjs
- name: Restore generated outputs from downloaded build
run: |
node scripts/generate-mcp-tool-catalog.mjs
node scripts/generate-skill-metadata.mjs
node scripts/generate-product-catalog.mjs
node scripts/generate-completion-ledger.mjs
- run: npm run test:ci:shard:run -- --shard=${{ matrix.shard }}
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
@@ -423,11 +423,20 @@ itWithCaptureCapability(
);
const timedOutCapture = captureObservations(timedOut);
expect(timedOutCapture.capture.exit.reason).toBe("timeout");
if (!timedOutCapture.cleanupIncomplete && timedOut.ok)
expect(timedOut.value.cleanup).toEqual({
if (!timedOutCapture.cleanupIncomplete && timedOut.ok) {
expect(timedOut.value.cleanup).toMatchObject({
owned_process_group: "verified",
temporary_root: "removed",
});
for (const { pid } of timedOut.value.cleanup.unverified_processes ?? []) {
expect(timedOut.value.residual_unknowns).toContainEqual({
scope: "process",
reason: expect.stringContaining(
`${String(pid)} could not be verified`,
),
});
}
}
const controller = new AbortController();
setTimeout(() => controller.abort(), 50);