Repository navigation
ci(quality-gate): check the declared public API in the fast loop - #910
Merged
Merged
Conversation
The "Public API declared" stage ran only in the full gate, so a lane iterating with --fast first learned about an undeclared public member from CI (#905). It costs seconds on a warm build, so it now runs in --fast too, after the tests and skipped causally when the build fails. The fixture package now tracks its public surface like the SDK packages (PublicApiAnalyzers, RS0016/RS0017 at suggestion), clean and build-broken pin stage 5a, and a new api-undeclared fixture fails the fast loop on an undeclared public type.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
gate.sh --fastnow runs the "Public API declared" stage (5a). Until now it ran only in the full gate, so an agent iterating with--fastfirst learned about an undeclared public member from CI. That is how #905's firstbuild-and-testrun failed.Why the fast loop
.globalconfig: RS0016/RS0017 stay atsuggestion, so the build never breaks and tests always run. Enforcement stays in the gate. The stage runs after the tests, and is skipped causally when the build fails, as before.Raising RS0016 to an error was rejected because it breaks the build mid-TDD, which
.globalconfigexplicitly rules out.Changes
gate.sh:stage_api_syncmoves out of the full-only block. Security and the API diff (a signal) stay full-only._base/Samplenow tracks its public surface like the SDK packages:PublicApiAnalyzers5.6.0, generatedPublicAPI.Shipped.txt/PublicAPI.Unshipped.txt, and RS0016/RS0017 atsuggestionin its.editorconfig.cleanpins 5a PASS, andbuild-brokenpins 5a SKIP ("build failed").api-undeclared: a public type that isn't declared must FAIL the fast loop on 5a, with build, format and tests green.sdk-quality-gateskill, the usage header and the PARTIAL verdict message now say what--fastruns.Tests
run-fixtures.sh: 21/21 pass.gate.sh,api-undeclaredandcleanfail (5a MISSING, verdict PARTIAL instead of FAIL). The fixtures pin the change.gate.sh packages/Storage --faston master: PARTIAL, with the 5a row reading PASS.