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): reuse verified native artifacts for rotating properties (#1947)

Michael D'Angelo2f4d754a04cb
diff --git a/.github/workflows/test-quality.yml b/.github/workflows/test-quality.yml
index b02e1a8f6..fe0a4bcbb 100644
--- a/.github/workflows/test-quality.yml
+++ b/.github/workflows/test-quality.yml
@@ -32,6 +32,8 @@ jobs:
native:
if: ${{ !inputs.native-artifacts-ready }}
uses: ./.github/workflows/native-artifacts.yml
+ with:
+ reuse-verified: ${{ !inputs.compare-layouts }}
runner:
needs: native
diff --git a/sdk/typescript/tests-ts/native-artifact-cache.test.ts b/sdk/typescript/tests-ts/native-artifact-cache.test.ts
index deddd0a96..b1dd44b5c 100644
--- a/sdk/typescript/tests-ts/native-artifact-cache.test.ts
+++ b/sdk/typescript/tests-ts/native-artifact-cache.test.ts
@@ -220,19 +220,17 @@ test.each([
expect(checked.status === 0, checked.stderr).toBe(result.passes);
});
-test("source CI opts in while release and standalone qualification remain fresh", () => {
+test("source CI and rotating properties opt in to native artifact reuse", () => {
expect(native.on.workflow_call?.inputs["reuse-verified"]?.default).toBe(
false,
);
expect(workflow("node-ci").jobs["native"]?.with?.["reuse-verified"]).toBe(
true,
);
- for (const caller of [
- "node-release",
- "container-release",
- "container-ci",
- "test-quality",
- ]) {
+ expect(
+ workflow("test-quality").jobs["native"]?.with?.["reuse-verified"],
+ ).toBe("${{ !inputs.compare-layouts }}");
+ for (const caller of ["node-release", "container-release", "container-ci"]) {
expect(
workflow(caller).jobs["native"]?.with?.["reuse-verified"],
).toBeUndefined();