test: cover Codex version contracts on dependency bumps (#110958)

This commit is contained in:
Peter Steinberger
2026-07-18 22:09:50 +01:00
committed by GitHub
parent 5fe8d6a852
commit 0135c6bf89
2 changed files with 19 additions and 0 deletions
+6
View File
@@ -2281,8 +2281,14 @@ const TEST_HELPER_NORMALIZE_TEXT_TARGETS = [
];
const HAPPY_PATH_PROMPT_SNAPSHOT_HELPER_TEST_TARGETS = ["test/scripts/prompt-snapshots.test.ts"];
const APPCAST_TEST_TARGETS = ["test/appcast.test.ts", "test/scripts/make-appcast.test.ts"];
const CODEX_VERSION_CONTRACT_TEST_TARGETS = [
"extensions/codex/src/manifest.test.ts",
"extensions/openai/openai-provider.test.ts",
];
const SOURCE_TEST_TARGETS = new Map([
...PRECISE_SOURCE_TEST_TARGETS,
["extensions/codex/package.json", CODEX_VERSION_CONTRACT_TEST_TARGETS],
["extensions/codex/src/app-server/version.ts", CODEX_VERSION_CONTRACT_TEST_TARGETS],
["src/test-utils/openclaw-test-state.ts", ["src/test-utils/openclaw-test-state.test.ts"]],
[
"src/channels/plugins/contracts/test-helpers/manifest.ts",
+13
View File
@@ -272,6 +272,19 @@ describe("scripts/test-projects changed-target routing", () => {
});
});
it.each(["extensions/codex/package.json", "extensions/codex/src/app-server/version.ts"])(
"routes Codex version changes through cross-plugin contract tests for %s",
(changedPath) => {
expect(resolveChangedTestTargetPlan([changedPath])).toEqual({
mode: "targets",
targets: [
"extensions/codex/src/manifest.test.ts",
"extensions/openai/openai-provider.test.ts",
],
});
},
);
it("routes release wrapper changes through their owner tests", () => {
expect(resolveChangedTestTargetPlan(["scripts/apple-release-source-check.sh"])).toEqual({
mode: "targets",