Improve Codex happy path prompt snapshots (#76229)

* test: add Codex model prompt layers to snapshots

* test: keep rendered prompt snapshots raw

* test: check prompt snapshot drift in ci

* test: prefer codex model cache for prompt fixtures

* fix: exclude publishable plugin dist from core package
This commit is contained in:
pashpashpash
2026-05-02 14:40:20 -07:00
committed by GitHub
parent 5d6445417f
commit 9e57b98bb9
17 changed files with 1659 additions and 164 deletions

View File

@@ -12,6 +12,9 @@ const ROOT_DIR = path.resolve(path.dirname(fileURLToPath(import.meta.url)), ".."
const errors = [];
const packageJson = JSON.parse(readText("package.json"));
const packageScripts = new Set(Object.keys(packageJson.scripts ?? {}));
// This lane proves the published Codex npm plugin against live OpenAI auth, so
// it intentionally needs both live credentials and the package-backed image.
const livePackageBackedLanes = new Set(["live-codex-npm-plugin"]);
function readText(relativePath) {
return fs.readFileSync(path.join(ROOT_DIR, relativePath), "utf8");
@@ -71,7 +74,7 @@ function validateLane(label, lane) {
`${label}: Docker E2E lane '${lane.name}' has invalid image kind '${lane.e2eImageKind}'`,
);
}
if (lane.live && lane.e2eImageKind && !resources.includes("npm")) {
if (lane.live && lane.e2eImageKind && !livePackageBackedLanes.has(lane.name)) {
errors.push(`${label}: live Docker E2E lane '${lane.name}' must not require a package image`);
}
if (!lane.live && !lane.e2eImageKind) {