Skip to content

Commit d02a0cc

Browse files
committed
debug(e2e): dump fresh fixture rstest.config.mts content on prepareFixtures
Temporary investigation. CI macos-14 e2e fails with mode B at every aggregateTimeout value (100/500/3000), but identical local runs pass. Suspecting that the cp() into the fresh sibling directory does not include rstest.config.mts under some Actions runner condition, so the child rstest falls back to the entry.ts default (5 ms). Print the freshly copied config content so the CI log shows the actual file seen by the child process. Will be reverted.
1 parent f49b588 commit d02a0cc

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

e2e/scripts/index.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,27 @@ export async function prepareFixtures({
312312
await fs.promises.symlink(distPath, exposedPath, 'dir');
313313
}
314314

315+
// RCA debug: dump rstest.config.mts content (if any) from the freshly
316+
// copied fixture so CI logs show whether tools.rspack.aggregateTimeout
317+
// actually reached the child rstest process. Will be reverted.
318+
try {
319+
const cfg = path.resolve(distPath, 'rstest.config.mts');
320+
if (fs.existsSync(cfg)) {
321+
const content = fs.readFileSync(cfg, 'utf-8');
322+
process.stdout.write(
323+
`__RCA_FIXTURE__ ${distPath}\n${content}__RCA_FIXTURE_END__\n`,
324+
);
325+
} else {
326+
process.stdout.write(
327+
`__RCA_FIXTURE__ ${distPath} (no rstest.config.mts)\n`,
328+
);
329+
}
330+
} catch (e) {
331+
process.stdout.write(
332+
`__RCA_FIXTURE__ ${distPath} ERROR ${(e as Error).message}\n`,
333+
);
334+
}
335+
315336
const update = (
316337
relativePath: string,
317338
content: string | ((raw: string) => string),

0 commit comments

Comments
 (0)