Repository navigation
fix(controlplane): use require.Fail instead of forbidden t.Fatal in panicguard test - #3577
Merged
Merged
Conversation
…anicguard test The forbidigo linter forbids t.Fatal in favor of testify, which failed the controlplane and main-module lint jobs. Replace it with require.Fail, matching the existing testify idiom in the codebase. Chainloop-Trace-Sessions: caeadc08-eff1-48f5-b81f-40cdb9c97088 Signed-off-by: Matías Insaurralde <matias@chainloop.dev>
Contributor
PR validation —
|
| Status | Policy | Material | Messages |
|---|---|---|---|
pr-min-approvals |
pr-info |
PR/MR #3577 has 0 approving reviews, 1 required. | |
| ✅ Passed | pr-description-required |
pr-info |
- |
| ✅ Passed | pr-user-story-linked |
pr-info |
- |
AI Session Checks — 🟢 93% · ✅ 0 failing
| Avg score | Sessions | Failing policies | Attribution | Files | Lines | Total Duration |
|---|---|---|---|---|---|---|
| 🟢 93% | 1 | ✅ 0 | 100% AI / 0% Human | 1 | +1 / -1 | 9m0s |
🟢 93% — 100% AI — ✅ All policies passing
-
Oct 8, 2026 20:04 UTC · 9m0s · $6.52 · 142 in / 45.2k out · claude-code 2.1.294 (claude-opus-4-8)
Change Summary
-
- Investigated the failing
lint (controlplane)andlint (main-module)jobs for commit06d9971. - Replaced forbidden
t.Fatal(...)withrequire.Fail(...)inapp/controlplane/internal/panicguard/panicguard_test.go. - Reproduced the failure locally, then ran
golangci-lint v2.14.0andgo test ./internal/panicguard/...before committing the one-file fix on a new branch.
- Investigated the failing
AI Session Overall Score
-
🟢 93% — Clean one-file fix, reproduced and verified locally before committing.
AI Session Analysis Breakdown
-
🟢 96% · scope-discipline
-
🟢 The landed change stayed to a single requested line in panicguard_test.go. · High Impact
🟢 95% · solution-quality
-
No notes.
🟢 95% · user-trust-signal
-
No notes.
🟢 94% · alignment
-
🟢 The final summary matched the diff, verification, and committed result. · High Impact
🟢 90% · verification
-
🟢 AI reproduced the exact lint failure before verifying the final fix. · High Impact
🟢 86% · context-and-planning
-
No notes.
-
File Attribution
████████████████████100% AI / 0% HumanStatus Attribution File Lines modified ai app/controlplane/internal/panicguard/panicguard_test.go+1 / -1
Policies (4)
Status Policy Material Messages ✅ Passed ai-config-ai-agents-allowedai-coding-session-caeadc- ✅ Passed ai-config-no-dangerous-commandsai-coding-session-caeadc- ✅ Passed ai-config-no-secretsai-coding-session-caeadc- ✅ Passed ai-config-mcp-servers-allowedai-coding-session-caeadc- -
Security Checks — ✅ 5 passing
✅ secret-scan
| Status | Policy | Messages |
|---|---|---|
| ✅ Passed | secrets-detection |
- |
✅ sast-scan
| Status | Policy | Messages |
|---|---|---|
| ✅ Passed | owasp-top10-2025 |
- |
| ✅ Passed | sast |
- |
| ✅ Passed | cwe-top25 |
- |
| ✅ Passed | cwe-top26-40-cusp |
- |
Scans not applied (3)
| Scan | Reason |
|---|---|
vulnerability-scan |
no manifest/lockfile changed |
github-actions-scan |
no workflow files changed |
iac-scan |
no IaC files changed |
Security context
✅ Nothing this change touches has a recorded security-fix history.
View in Chainloop ↗ · How this works ↗
Powered by Chainloop and Chainloop Trace
matiasinsaurralde
marked this pull request as ready for review
October 8, 2026 20:20
migmartri
approved these changes
Oct 8, 2026
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.
Refs PFM-7668
Summary
The
panicguardtest usedt.Fatal, which theforbidigolinter forbids in favor oftestify. This failed the controlplane and main-module lint jobs.Replace it with
require.Failto match the existing testify idiom.