fix(ci): copy torch-config.mjs to test fixture

- Fixes `ERR_MODULE_NOT_FOUND` in scheduler-preflight-lock e2e tests
- Ensures scheduler configuration module is available in the test temp directory

Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
google-labs-jules[bot]andPR0M3TH3AN committed 2026-02-26 23:20:13 +00:00
1 parent d96dee13cc
commit 010ab5c01e
1 file changed
+1
@@ -47,6 +47,7 @@ async function setupFixture({ lockShellBody = ':', schedulerPolicy = {} }) {
await fs.copyFile(path.resolve('scripts/agent/scheduler-lock.mjs'), path.join(scriptsDir, 'scheduler-lock.mjs'));
await fs.copyFile(path.resolve('src/utils.mjs'), path.join(root, 'src', 'utils.mjs'));
await fs.copyFile(path.resolve('src/constants.mjs'), path.join(root, 'src', 'constants.mjs'));
await fs.copyFile(path.resolve('src/torch-config.mjs'), path.join(root, 'src', 'torch-config.mjs'));
await fs.writeFile(
path.join(scriptsDir, 'verify-run-artifacts.mjs'),
'#!/usr/bin/env node\nprocess.exit(0);\n',