From b152475a803fa4d49c9fd72f742601983430ec3a Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Sat, 28 Feb 2026 01:36:18 +0000 Subject: [PATCH] Fix run-scheduler-cycle-memory-policy.test.mjs failing on missing modules Co-authored-by: PR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> --- test-torch-config-host-dGbmm1/package.json | 1 + test-torch-config-host-dGbmm1/torch-config.json | 1 + test-torch-config-host-dGbmm1/torch/torch-config.json | 1 + test-torch-config-host-kSN9IZ/package.json | 1 + test-torch-config-host-kSN9IZ/torch-config.json | 1 + test-torch-config-host-kSN9IZ/torch/torch-config.json | 1 + test/run-scheduler-cycle-memory-policy.test.mjs | 6 ++++++ 7 files changed, 12 insertions(+) create mode 100644 test-torch-config-host-dGbmm1/package.json create mode 100644 test-torch-config-host-dGbmm1/torch-config.json create mode 100644 test-torch-config-host-dGbmm1/torch/torch-config.json create mode 100644 test-torch-config-host-kSN9IZ/package.json create mode 100644 test-torch-config-host-kSN9IZ/torch-config.json create mode 100644 test-torch-config-host-kSN9IZ/torch/torch-config.json diff --git a/test-torch-config-host-dGbmm1/package.json b/test-torch-config-host-dGbmm1/package.json new file mode 100644 index 0000000..0614580 --- /dev/null +++ b/test-torch-config-host-dGbmm1/package.json @@ -0,0 +1 @@ +{"name":"seedpass","version":"1.0.0"} \ No newline at end of file diff --git a/test-torch-config-host-dGbmm1/torch-config.json b/test-torch-config-host-dGbmm1/torch-config.json new file mode 100644 index 0000000..d7cf170 --- /dev/null +++ b/test-torch-config-host-dGbmm1/torch-config.json @@ -0,0 +1 @@ +{"nostrLock":{"namespace":"parent"}} \ No newline at end of file diff --git a/test-torch-config-host-dGbmm1/torch/torch-config.json b/test-torch-config-host-dGbmm1/torch/torch-config.json new file mode 100644 index 0000000..c3d0e7b --- /dev/null +++ b/test-torch-config-host-dGbmm1/torch/torch-config.json @@ -0,0 +1 @@ +{"nostrLock":{"namespace":"local"}} \ No newline at end of file diff --git a/test-torch-config-host-kSN9IZ/package.json b/test-torch-config-host-kSN9IZ/package.json new file mode 100644 index 0000000..0614580 --- /dev/null +++ b/test-torch-config-host-kSN9IZ/package.json @@ -0,0 +1 @@ +{"name":"seedpass","version":"1.0.0"} \ No newline at end of file diff --git a/test-torch-config-host-kSN9IZ/torch-config.json b/test-torch-config-host-kSN9IZ/torch-config.json new file mode 100644 index 0000000..d7cf170 --- /dev/null +++ b/test-torch-config-host-kSN9IZ/torch-config.json @@ -0,0 +1 @@ +{"nostrLock":{"namespace":"parent"}} \ No newline at end of file diff --git a/test-torch-config-host-kSN9IZ/torch/torch-config.json b/test-torch-config-host-kSN9IZ/torch/torch-config.json new file mode 100644 index 0000000..c3d0e7b --- /dev/null +++ b/test-torch-config-host-kSN9IZ/torch/torch-config.json @@ -0,0 +1 @@ +{"nostrLock":{"namespace":"local"}} \ No newline at end of file diff --git a/test/run-scheduler-cycle-memory-policy.test.mjs b/test/run-scheduler-cycle-memory-policy.test.mjs index e01ef47..7765f0e 100644 --- a/test/run-scheduler-cycle-memory-policy.test.mjs +++ b/test/run-scheduler-cycle-memory-policy.test.mjs @@ -81,6 +81,9 @@ async function setupFixture({ await fs.copyFile(SOURCE_SCRIPT, path.join(scriptsDir, 'run-scheduler-cycle.mjs')); 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('scripts/agent/scheduler-config.mjs'), path.join(scriptsDir, 'scheduler-config.mjs')); + await fs.copyFile(path.resolve('scripts/agent/scheduler-logger.mjs'), path.join(scriptsDir, 'scheduler-logger.mjs')); + await fs.copyFile(path.resolve('scripts/agent/scheduler-state.mjs'), path.join(scriptsDir, 'scheduler-state.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')); @@ -230,6 +233,9 @@ test('host-mode scheduler resolves parent config and rewrites torch-prefixed nod await fs.copyFile(SOURCE_SCRIPT, path.join(scriptsDir, 'run-scheduler-cycle.mjs')); 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('scripts/agent/scheduler-config.mjs'), path.join(scriptsDir, 'scheduler-config.mjs')); + await fs.copyFile(path.resolve('scripts/agent/scheduler-logger.mjs'), path.join(scriptsDir, 'scheduler-logger.mjs')); + await fs.copyFile(path.resolve('scripts/agent/scheduler-state.mjs'), path.join(scriptsDir, 'scheduler-state.mjs')); await fs.copyFile(path.resolve('src/utils.mjs'), path.join(torchDir, 'src', 'utils.mjs')); await fs.copyFile(path.resolve('src/torch-config.mjs'), path.join(torchDir, 'src', 'torch-config.mjs')); await fs.copyFile(path.resolve('src/constants.mjs'), path.join(torchDir, 'src', 'constants.mjs'));