Skip to content

TEST (do not merge): prove codegen-guard catches the 6.2.1 regression#2

Closed
Kyzgor wants to merge 2 commits into
mainfrom
ci-test/guard-negative-control
Closed

TEST (do not merge): prove codegen-guard catches the 6.2.1 regression#2
Kyzgor wants to merge 2 commits into
mainfrom
ci-test/guard-negative-control

Conversation

@Kyzgor

@Kyzgor Kyzgor commented Jun 28, 2026

Copy link
Copy Markdown
Owner

Negative-control test on our fork. This branch = Stage-1 (#1) + one commit reverting the generator pin to the broken 6.2.1. Expectation: codegen-guard job goes RED (all-any collapse), while test-and-lint stays green (src/openapi frozen). Confirms the guard blocks a regression and is not green-guaranteed. Will be closed + deleted after the run.

Kyzgor added 2 commits June 28, 2026 20:39
…in CI

The pinned generator 6.2.1 cannot read the OpenAPI 3.1.0 spec served at
api.permit.io: it regenerates an all-`any`, type-erased client (247 of 319 type
files) yet exits 0, masked by --skip-validate-spec. Running
`yarn generate-openapi-client` today silently replaces the typed client with `any`.

Re-pin the generator to 7.12.0 — the first 3.1-native line that produces a fully
typed client — and add a CI codegen guard that regenerates from a pinned 3.1.0
fixture through the real pipeline and fails if any type collapses to all-`any`.
The guard runs in its own Java-provisioned job, off the test suite.

The committed client under src/openapi/ is intentionally left unchanged: this
restores and guards the toolchain. Re-baselining the generated client against the
current spec is a separate, larger change.

Refs permitio#130
…s a regression

Throwaway branch — NOT for merge. Reverts only the generator pin so the codegen-guard
CI job regenerates with the broken 6.2.1 generator and must FAIL (all-`any` collapse),
proving the guard blocks a regression rather than being green-guaranteed.
@Kyzgor Kyzgor closed this Jun 28, 2026
@Kyzgor Kyzgor deleted the ci-test/guard-negative-control branch June 28, 2026 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant