Skip to content

Commit ae6dfa7

Browse files
Merge branch 'main' into mdangelo/codex/codex-security-main-ci-recovery-20260727
2 parents 50696d3 + 615850d commit ae6dfa7

4 files changed

Lines changed: 134 additions & 449 deletions

File tree

sdk/typescript/_bundled_plugin/scripts/normalize_candidates.py

Lines changed: 0 additions & 276 deletions
This file was deleted.

sdk/typescript/tests-ts/api.test.ts

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1295,24 +1295,18 @@ describe("CodexSecurity orchestration", () => {
12951295
},
12961296
);
12971297

1298-
// The fake Codex stream has no process handle to keep its unref'ed poll alive.
1299-
const keepEventLoopAlive = setTimeout(() => {}, 10_000);
1300-
try {
1301-
await expect(
1302-
client.run(repository, {
1303-
maxCostUsd: 0.005,
1304-
onCost: (cost) => costs.push(cost.estimatedUsd),
1305-
signal: AbortSignal.timeout(5_000),
1306-
}),
1307-
).rejects.toMatchObject({
1308-
name: ScanCostLimitExceededError.name,
1298+
await expect(
1299+
client.run(repository, {
13091300
maxCostUsd: 0.005,
1310-
scanDir,
1311-
cost,
1312-
});
1313-
} finally {
1314-
clearTimeout(keepEventLoopAlive);
1315-
}
1301+
onCost: (cost) => costs.push(cost.estimatedUsd),
1302+
signal: AbortSignal.timeout(5_000),
1303+
}),
1304+
).rejects.toMatchObject({
1305+
name: ScanCostLimitExceededError.name,
1306+
maxCostUsd: 0.005,
1307+
scanDir,
1308+
cost,
1309+
});
13161310
expect(costs.at(-1)).toBe(0.00625);
13171311
expect(commands[1]).toEqual([
13181312
"fail-scan",

0 commit comments

Comments
 (0)