Skip to content

Restore the quality gate as blocking - #331

Merged
matt-edmondson merged 1 commit into
mainfrom
fix/restore-quality-gate
Aug 25, 2026
Merged

Restore the quality gate as blocking#331
matt-edmondson merged 1 commit into
mainfrom
fix/restore-quality-gate

Conversation

@matt-edmondson

Copy link
Copy Markdown
Contributor

Removes the temporary continue-on-error from the End SonarQube step, closing #328.

Why it was there

The workflow sets sonar.qualitygate.wait=true, so a failed quality gate fails the step and blocks the release. That could not take effect usefully while the new-code period was meaningless.

SonarCloud's period was correctly set to "previous version", but the scanner was never passed /v:, so the project version read as not provided and the period had no boundary to anchor to. It fell back to the earliest analysis, dated 2025-07-30, which made "new code" 49,630 lines and turned the new-code coverage condition into a measure of the entire codebase. Reaching 80% under that definition would have meant covering roughly 1,538 more lines. It was never a testing gap.

Passing /v: fixed the cause, and it needed two analyses to take effect, because "previous version" needs a prior analysis carrying a different version.

It has taken effect

v3.11.0 supplied the second boundary:

BeforeNow
Project versionnot provided3.11.0
Leak period start2025-07-302026-08-23
new_security_rating31
new_security_hotspots_reviewed0.0%100%
new_coverage65.4% against 80%no longer applies
GateERROROK

The two security conditions were fixed separately, by pinning dependabot/fetch-metadata to a commit SHA and by suppressing a csharpsquid:S6640 on Sequencer.cs where the pointer lifetime is provably scoped to its fixed block.

What changes

A failed quality gate now blocks the release, for the first time genuinely, since the gate is at last measuring the code a change actually touched rather than thirteen months of history.

The escape hatch and its comment block are gone. actionlint reports 0 errors.

@sonarqubecloud

Copy link
Copy Markdown

Sign up for freeto 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

@matt-edmondson