fix: include src/torch-config.mjs in scheduler e2e test fixture

- Fixes `ERR_MODULE_NOT_FOUND` in `scheduler-preflight-lock.e2e.test.mjs` caused by missing `src/torch-config.mjs` in the temporary test environment.
- Ensures `scripts/agent/run-scheduler-cycle.mjs` can successfully import the config module during integration tests.

Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
google-labs-jules[bot]andPR0M3TH3AN committed 2026-02-26 23:20:08 +00:00
1 parent 78142a4187
commit 1f7c1d3b52
1 file changed
+1
@@ -46,6 +46,7 @@ async function setupFixture({ lockShellBody = ':', schedulerPolicy = {} }) {
await fs.copyFile(path.resolve('scripts/agent/scheduler-utils.mjs'), path.join(scriptsDir, 'scheduler-utils.mjs'));
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/torch-config.mjs'), path.join(root, 'src', 'torch-config.mjs'));
await fs.copyFile(path.resolve('src/constants.mjs'), path.join(root, 'src', 'constants.mjs'));
await fs.writeFile(
path.join(scriptsDir, 'verify-run-artifacts.mjs'),