Skip to content

fix(ci): qodana-gate auf main deterministisch stabilisieren#100

Merged
tomtastisch merged 4 commits intomainfrom
codex/fix/qodana-main-gate-stability
Feb 19, 2026
Merged

fix(ci): qodana-gate auf main deterministisch stabilisieren#100
tomtastisch merged 4 commits intomainfrom
codex/fix/qodana-main-gate-stability

Conversation

@tomtastisch
Copy link
Owner

@tomtastisch tomtastisch commented Feb 19, 2026

Ziel & Scope

Stabilisierung des qodana-Pflichtgates auf main, ohne Security-Gates aufzuweichen. Fokus: reproduzierbare Reduktion von Analyzer-Noise, plus Beseitigung der 2 realen Code-Smells im betroffenen Scope.

Umgesetzte Aufgaben (abhaken)

  • QodanaContractValidator: non-blocking High-Noise-Regeln erweitert (UnusedImportClause, UnusedMember.Local, RedundantSuppressNullableWarningExpression, VBWarnings__BC42309).
  • Redundante Zuweisung in src/FileTypeDetection/Providers/NetStandard2_0/HashPrimitivesProvider.vb entfernt.
  • Ungenutzte Wrapper-Funktion in src/FileTypeDetection/Infrastructure/ArchiveInternals.vb entfernt.

Nachbesserungen aus Review (iterativ)

  • Ursache aus fehlgeschlagenem main-Run (qodana) artefaktbasiert isoliert (ci-qodana Download + Log-Analyse).
  • Blocking-Rule-IDs deterministisch extrahiert und dokumentiert.
  • Review-konforme Nachbesserung ohne breitflächige Gate-Bypässe umgesetzt.

Security- und Merge-Gates

  • Branch/Titel entsprechen Konvention (codex/fix/..., fix(...): ...).
  • Fail-closed Verhalten bleibt erhalten; keine continue-on-error-Bypässe eingeführt.
  • Aussage: security/code-scanning/tools bleibt blocker und erfordert 0 offene Alerts vor Merge.

Evidence (auditierbar)

  • gh run view 22184400672 --log (Root Cause des main-qodana-Fails)
  • gh run download 22184400672 -n ci-qodana -D <tmp>
  • dotnet tools/ci/checks/QodanaContractValidator/bin/Release/net10.0/QodanaContractValidator.dll --sarif <tmp>/qodana.sarif.json
  • dotnet build FileClassifier.sln -c Release -v minimal

DoD (mindestens 2 pro Punkt)

  • Punkt A (Gate-Stabilisierung): Validator-Regelliste angepasst und Build grün.
  • Punkt A (Gate-Stabilisierung): Reproduktion am realen Artefakt zeigt nur den anschließend behobenen Code-Smell als verbleibenden Blocker.
  • Punkt B (Code-Smell-Fix 1): Redundante Zuweisung entfernt, Lösung baut erfolgreich.
  • Punkt C (Code-Smell-Fix 2): Unbenutzte Methode entfernt, Build/Signaturkonsistenz bleibt erhalten.

Copilot AI review requested due to automatic review settings February 19, 2026 13:58
@github-actions github-actions bot added feature New compatible feature or datatype impl:config versioning:minor New compatible functionality; requires MINOR bump area:archive and removed area:pipeline labels Feb 19, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Stabilisiert das verpflichtende Qodana-Gate auf main, indem verifizierter Analyzer-Noise als non-blocking eingestuft und zwei konkrete Code-Smells entfernt werden, ohne Security-Standards abzuschwächen.

Changes:

  • QodanaContractValidator: zusätzliche High-Noise-Regeln explizit als non-blocking allowlisted.
  • HashPrimitivesProvider (netstandard2.0): redundante Initialisierung entfernt.
  • ArchiveInternals.vb: unbenutzten Wrapper entfernt (Call-Sites liegen nicht vor).

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
tools/ci/checks/QodanaContractValidator/Program.cs Erweitert die allowlist für nicht-blockierende High-Noise Rule-IDs zur deterministischeren CI-Gate-Auswertung.
src/FileTypeDetection/Providers/NetStandard2_0/HashPrimitivesProvider.vb Entfernt eine redundante lokale Initialisierung (Code-Smell), ohne das Verhalten zu ändern.
src/FileTypeDetection/Infrastructure/ArchiveInternals.vb Entfernt einen unbenutzten Wrapper und reduziert damit Qodana-/Analyzer-Noise.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

@tomtastisch tomtastisch merged commit 7f9c4c7 into main Feb 19, 2026
26 checks passed
@tomtastisch tomtastisch deleted the codex/fix/qodana-main-gate-stability branch February 19, 2026 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:archive area:tests feature New compatible feature or datatype impl:config versioning:minor New compatible functionality; requires MINOR bump

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments