Skip to content

ci(quality-gate): find packages through the solution and always build it - #1049

Merged
Tr00d merged 2 commits into
masterfrom
ci/gate-solution-scope
Dec 3, 2026
Merged

Tr00d merged 2 commits into
masterfrom
ci/gate-solution-scope

Conversation

@Tr00d

@Tr00d Tr00d commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Step 2 of the quality gate review. The gate found projects with find and 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

  • Projects come from the root .sln. A package is a directory holding a *Tests*.csproj the solution lists, plus the project it tests.
  • The gate always builds the whole solution. The directory it's given only picks which packages get tests, coverage and report rows. A .csproj argument picks the package that holds it.
  • What's removed:
    • --all
    • the separate single-package code path and its output format
    • reading project/testProject from .gate-baseline.json
  • The vulnerability scan and the public API check run against the solution.
  • The smoke test takes its packages from the solution's projects.
  • The fixtures exclusion lives in one place: GATE_FIXTURES and without_gate_fixtures in lib/common.sh.
  • Fixtures:
    • _base now holds Sample.sln.
    • The 4 fixtures with other projects bring their own Sample.sln, listing what Supabase.sln would: packages, their tests and shared test projects, but no tools, smoke app or fixtures tree.
    • format-outside-scope-ignored keeps 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 with NU1101: Unable to find package Sample.GateFixture.Other ... nuget.org.
  • vuln-fixture-suppression-ignored: suppressed_advisories greps with -h, so its grep -v on the fixtures path filtered nothing. A NuGetAuditSuppress inside the fixtures tree therefore accepted that advisory for the whole repository. That's GHSA-5crp-9r3c-p9vr today, from vuln-accepted. On master, the fixture reports none 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 packages locally, E2E included: GATE: PASS. The smoke test installed 8 packages from this build. This ran before merging origin/master, whose 3 new commits only touch Storage code and sdk-compliance.yaml.

🤖 Generated with Claude Code

Tr00d and others added 2 commits December 3, 2026 07:57
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>
@Tr00d
Tr00d marked this pull request as ready for review December 3, 2026 06:59
@Tr00d
Tr00d merged commit ece24b1 into master Dec 3, 2026
11 checks passed
@Tr00d
Tr00d deleted the ci/gate-solution-scope branch December 3, 2026 07: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