Skip to content

fix(controlplane): use require.Fail instead of forbidden t.Fatal in panicguard test - #3577

Merged
matiasinsaurralde merged 1 commit into
mainfrom
fix/panicguard-test-forbidigo-tfatal
Oct 8, 2026
Merged

matiasinsaurralde merged 1 commit into
mainfrom
fix/panicguard-test-forbidigo-tfatal

Conversation

@matiasinsaurralde

@matiasinsaurralde matiasinsaurralde commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Refs PFM-7668

Summary

The panicguard test used t.Fatal, which the forbidigo linter forbids in favor of testify. This failed the controlplane and main-module lint jobs.

Replace it with require.Fail to match the existing testify idiom.

View guided diff

…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>
@chainloop-platform

chainloop-platform Bot commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

PR validation — ⚠️ 1 failing

Status Policy Material Messages
⚠️ Failed 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 -

View attestation ↗

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)

View session details ↗

Change Summary

  • Investigated the failing lint (controlplane) and lint (main-module) jobs for commit 06d9971.
  • Replaced forbidden t.Fatal(...) with require.Fail(...) in app/controlplane/internal/panicguard/panicguard_test.go.
  • Reproduced the failure locally, then ran golangci-lint v2.14.0 and go test ./internal/panicguard/... before committing the one-file fix on a new branch.

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% Human

Status 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-allowed ai-coding-session-caeadc -
✅ Passed ai-config-no-dangerous-commands ai-coding-session-caeadc -
✅ Passed ai-config-no-secrets ai-coding-session-caeadc -
✅ Passed ai-config-mcp-servers-allowed ai-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

View attestation ↗

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
matiasinsaurralde marked this pull request as ready for review October 8, 2026 20:20

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No issues found across 1 file

View guided diff | Re-trigger cubic

@matiasinsaurralde
matiasinsaurralde requested a review from a team October 8, 2026 20:36
@matiasinsaurralde
matiasinsaurralde merged commit 586d918 into main Oct 8, 2026
16 of 17 checks passed
@matiasinsaurralde
matiasinsaurralde deleted the fix/panicguard-test-forbidigo-tfatal branch October 8, 2026 20:37
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.

2 participants