From 1f7c1d3b52002d16d1e2b9fc14d6b8730d63c0e7 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Thu, 26 Feb 2026 23:20:08 +0000 Subject: [PATCH] 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 <53631862+PR0M3TH3AN@users.noreply.github.com> --- test/scheduler-preflight-lock.e2e.test.mjs | 1 + 1 file changed, 1 insertion(+) diff --git a/test/scheduler-preflight-lock.e2e.test.mjs b/test/scheduler-preflight-lock.e2e.test.mjs index be8ecee..65b7e1b 100644 --- a/test/scheduler-preflight-lock.e2e.test.mjs +++ b/test/scheduler-preflight-lock.e2e.test.mjs @@ -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'),