Skip to content

OpenAI's Codex Security CLI and TypeScript SDK for finding, validating, and fixing security vulnerabilities. npm: https://www.npmjs.com/package/@openai/codex-security

test(ci): record reproducible Windows shard seeds (#1600)

Michael D'Angelo55cc887b3357
diff --git a/.github/workflows/node-ci.yml b/.github/workflows/node-ci.yml
index 0088de432..579369c41 100644
--- a/.github/workflows/node-ci.yml
+++ b/.github/workflows/node-ci.yml
@@ -521,7 +521,7 @@ jobs:
TMP: ${{ steps.windows-temp.outputs.path }}
TMPDIR: ${{ steps.windows-temp.outputs.path }}
CODEX_SECURITY_ALLOW_MACHINE_POLICY_TEST: "false"
- run: node --experimental-strip-types sdk/typescript/scripts/run-ci-tests.mts ${{ matrix.shard }}/7
+ run: node --experimental-strip-types sdk/typescript/scripts/run-ci-tests.mts ${{ matrix.shard }}/7 --seed=${{ github.run_number }}
- name: Upload Windows test reports
if: always()
continue-on-error: true
diff --git a/sdk/typescript/tests-ts/skeleton.test.ts b/sdk/typescript/tests-ts/skeleton.test.ts
index 1731dac62..d167645d0 100644
--- a/sdk/typescript/tests-ts/skeleton.test.ts
+++ b/sdk/typescript/tests-ts/skeleton.test.ts
@@ -221,7 +221,7 @@ describe("TypeScript package skeleton", () => {
expect(packageJson.scripts["test:ci"]).toContain("pnpm run test ");
expect(jobs["windows-test"]?.steps).toContainEqual(
expect.objectContaining({
- run: "node --experimental-strip-types sdk/typescript/scripts/run-ci-tests.mts ${{ matrix.shard }}/7",
+ run: "node --experimental-strip-types sdk/typescript/scripts/run-ci-tests.mts ${{ matrix.shard }}/7 --seed=${{ github.run_number }}",
}),
);
});