From bf41f181ee49fdd4cc0ce05d21380573a5285b95 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Thu, 19 Feb 2026 01:09:14 +0000 Subject: [PATCH] fix(test): inject AGENT_PLATFORM=codex in scheduler cycle tests - Explicitly sets `AGENT_PLATFORM: 'codex'` in `test/run-scheduler-cycle-memory-policy.test.mjs` for tests that assert platform-specific output. - Resolves CI failures where `detectPlatform` was falling back to `'unknown'` or the host environment's platform, causing assertion mismatches. Co-authored-by: PR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> --- test/run-scheduler-cycle-memory-policy.test.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/run-scheduler-cycle-memory-policy.test.mjs b/test/run-scheduler-cycle-memory-policy.test.mjs index 11a8929..5555112 100644 --- a/test/run-scheduler-cycle-memory-policy.test.mjs +++ b/test/run-scheduler-cycle-memory-policy.test.mjs @@ -184,7 +184,7 @@ test('accepts required memory policy when markers or artifacts are produced', { const result = await runNode(fixture.scriptPath, ['--cadence', 'daily'], { cwd: fixture.root, - env: fixture.env, + env: { ...fixture.env, AGENT_PLATFORM: 'codex' }, }); assert.equal(result.code, 0, `stdout: ${result.stdout}\nstderr: ${result.stderr}`); @@ -209,7 +209,7 @@ test('records backend failure metadata when lock command exits with code 2', { c const result = await runNode(fixture.scriptPath, ['--cadence', 'daily'], { cwd: fixture.root, - env: fixture.env, + env: { ...fixture.env, AGENT_PLATFORM: 'codex' }, }); assert.equal(result.code, 2, `stdout: ${result.stdout}\nstderr: ${result.stderr}`);