Repository navigation
ci(quality-gate): find packages through the solution and always build it - #1049
Merged
Merged
Conversation
The gate found projects with find and kept a separate path for one package. Projects outside that shape slipped through, and the fixtures exclusion was copied into about ten places. It now reads the projects from the root .sln and always builds it; the directory it is given only picks the packages to report on. This fixes two bugs, each with a fixture: - gating one package installed every package it doesn't reference from nuget.org in the smoke test; - a NuGetAuditSuppress inside the fixtures tree accepted that advisory for the repository. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Step 2 of the quality gate review. The gate found projects with
findand kept a separate code path for gating a single package. Projects that didn't fit that shape slipped through:The fixtures exclusion was also copied into about ten places.
Changes
.sln. A package is a directory holding a*Tests*.csprojthe solution lists, plus the project it tests..csprojargument picks the package that holds it.--allproject/testProjectfrom.gate-baseline.jsonGATE_FIXTURESandwithout_gate_fixturesinlib/common.sh._basenow holdsSample.sln.Sample.sln, listing whatSupabase.slnwould: packages, their tests and shared test projects, but no tools, smoke app or fixtures tree.format-outside-scope-ignoredkeeps its baseline in its package's directory, like the real repository.Bugs fixed
Each has a new fixture that fails on master and passes here.
smoke-test-unreferenced-sibling: gating one package built only what it references. The smoke test then installed every other package from nuget.org.gate.sh packages/Functions, for example, tested the released Supabase, Gotrue, Postgrest, Realtime, Storage and DependencyInjection packages. On master, the fixture fails withNU1101: Unable to find package Sample.GateFixture.Other ... nuget.org.vuln-fixture-suppression-ignored:suppressed_advisoriesgreps with-h, so itsgrep -von the fixtures path filtered nothing. ANuGetAuditSuppressinside the fixtures tree therefore accepted that advisory for the whole repository. That's GHSA-5crp-9r3c-p9vr today, fromvuln-accepted. On master, the fixture reportsnone known, 1 accepted with NuGetAuditSuppress.Cost
Gating one package locally builds the whole solution, about 70s from clean. CI always gates
packages, so CI time doesn't change.Verification
run-fixtures.sh: 57/57.compare-baselines: 12/12.compare-coverage: 7/7.identify-changes: 18/18.mark-api: 5/5.gate.sh packageslocally, E2E included:GATE: PASS. The smoke test installed 8 packages from this build. This ran before mergingorigin/master, whose 3 new commits only touch Storage code andsdk-compliance.yaml.🤖 Generated with Claude Code