Skip to content

ci(quality-gate): check the declared public API in the fast loop - #910

Merged
Tr00d merged 1 commit into
masterfrom
ci/gate-fast-api-sync
Nov 26, 2026
Merged

Tr00d merged 1 commit into
masterfrom
ci/gate-fast-api-sync

Conversation

@Tr00d

@Tr00d Tr00d commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

Summary

gate.sh --fast now runs the "Public API declared" stage (5a). Until now it ran only in the full gate, so an agent iterating with --fast first learned about an undeclared public member from CI. That is how #905's first build-and-test run failed.

Why the fast loop

  • Cheap: about 2 s on Storage with a warm build, next to an inner loop of about 40 s.
  • Consistent with .globalconfig: RS0016/RS0017 stay at suggestion, 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.
  • Mechanized: it no longer relies on remembering to run the fixer before pushing.

Raising RS0016 to an error was rejected because it breaks the build mid-TDD, which .globalconfig explicitly rules out.

Changes

  • gate.sh: stage_api_sync moves out of the full-only block. Security and the API diff (a signal) stay full-only.
  • Fixtures:
    • _base/Sample now tracks its public surface like the SDK packages: PublicApiAnalyzers 5.6.0, generated PublicAPI.Shipped.txt / PublicAPI.Unshipped.txt, and RS0016/RS0017 at suggestion in its .editorconfig.
    • clean pins 5a PASS, and build-broken pins 5a SKIP ("build failed").
    • New api-undeclared: a public type that isn't declared must FAIL the fast loop on 5a, with build, format and tests green.
  • Docs: the gate README, the sdk-quality-gate skill, the usage header and the PARTIAL verdict message now say what --fast runs.

Tests

  • run-fixtures.sh: 21/21 pass.
  • Against the previous gate.sh, api-undeclared and clean fail (5a MISSING, verdict PARTIAL instead of FAIL). The fixtures pin the change.
  • gate.sh packages/Storage --fast on master: PARTIAL, with the 5a row reading PASS.

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.
@Tr00d
Tr00d marked this pull request as ready for review November 26, 2026 10:56
@Tr00d
Tr00d merged commit 5da4016 into master Nov 26, 2026
7 checks passed
@Tr00d
Tr00d deleted the ci/gate-fast-api-sync branch November 26, 2026 11:04
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