Skip to content

refactor: return errors from installAider; unify integration list#394

Merged
tomasz-tomczyk merged 1 commit intomainfrom
audit/go-fixes
Apr 29, 2026
Merged

refactor: return errors from installAider; unify integration list#394
tomasz-tomczyk merged 1 commit intomainfrom
audit/go-fixes

Conversation

@tomasz-tomczyk
Copy link
Copy Markdown
Owner

Summary

  • installAider no longer calls os.Exit(1) — returns error like its sibling installAiderAt. crit install all now logs failures and continues to the next agent instead of aborting the loop.
  • availableIntegrations() derives from integrationMap keys + "aider" (sorted). Single source of truth — adding a new agent only requires updating the map.

Review

  • Release audit + independent validation: real P2
  • Pre-commit (gofmt, golangci-lint, go test): clean

Test plan

  • go test ./... (includes integration_routing_test.go, aider_install_test.go) passes
  • crit install all loop exits-on-error UX preserved for single targets

🤖 Generated with Claude Code

installAider previously called os.Exit(1) on error, which aborted the
`crit install all` loop and prevented other agents from installing.
Now returns error like its sibling installAiderAt; runInstall logs and
continues for the all-loop, preserves exit-on-error for single targets.

availableIntegrations now derives from integrationMap keys + "aider"
(sorted) instead of being a hardcoded slice — single source of truth.
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 29, 2026

Codecov Report

❌ Patch coverage is 28.57143% with 20 lines in your changes missing coverage. Please review.
✅ Project coverage is 66.67%. Comparing base (da47740) to head (ca88771).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
main.go 25.00% 18 Missing ⚠️
aider_install.go 50.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #394      +/-   ##
==========================================
+ Coverage   66.60%   66.67%   +0.06%     
==========================================
  Files          19       19              
  Lines        8206     8211       +5     
==========================================
+ Hits         5466     5475       +9     
+ Misses       2313     2311       -2     
+ Partials      427      425       -2     
Flag Coverage Δ
e2e 33.99% <21.42%> (-0.11%) ⬇️
unit 62.70% <28.57%> (+0.07%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@tomasz-tomczyk tomasz-tomczyk merged commit e9df7c6 into main Apr 29, 2026
4 of 6 checks passed
@tomasz-tomczyk tomasz-tomczyk deleted the audit/go-fixes branch April 29, 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.

1 participant