mirror of
https://github.com/PR0M3TH3AN/TORCH.git
synced 2026-10-27 07:51:52 +00:00
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:
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',
|
||||
|
||||
Reference in new issue
Block a user