fix(ci): resolve shellcheck/treefmt failures - #1894
Conversation
…oki/argo brews - spec: use POSIX [:upper:]/[:lower:] tr classes (SC2018/SC2019) - spec: apply shfmt formatting that nix-format-check requires - homebrew: add stripe-cli, grafana, loki, argo CLIs
|
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
Disabled knowledge base sources:
📝 WalkthroughSummary by CodeRabbit
WalkthroughThis PR adds four Homebrew formulas ( ChangesHomebrew Formulas Configuration
NPM Globals Test Refactoring
Possibly related PRs
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Code Review
This pull request adds several Homebrew packages (argo, grafana, loki, and stripe-cli) to the nix-darwin configuration and refactors shell script syntax in spec/npm_globals_spec.sh. Feedback indicates that the formula name for the Stripe CLI should be corrected from 'stripe-cli' to 'stripe' to prevent installation failures.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
| "reth" | ||
| "sheldon" | ||
| "sshpass" | ||
| "stripe-cli" |
There was a problem hiding this comment.
Performed full review of 50e2d88...0d9cc60
Analysis
• Lack of dependency scope clarity: Adding stripe-cli, grafana, loki, and argo to a shared Homebrew configuration without documenting whether these are universal developer requirements or role-specific raises concerns about environment bloat and unclear module boundaries—consider segregating tools by role (payments, DevOps, observability) to maintain separation of concerns.
• No version pinning on Homebrew packages: Installing tools without pinned versions creates environment drift risk between developers and makes debugging environment-specific issues difficult; if reproducibility matters, establish a versioning strategy for operational tools.
• Increased supply chain attack surface: Adding four new binary distributions without documented vetting criteria or vulnerability management process expands trust boundaries—clarify how new tool additions are approved and how updates/scanning will be managed going forward.
• Tooling governance missing: No documented criteria for what belongs in this shared configuration and what constitutes required vs. optional tooling—establish explicit policy and guidelines to prevent ad-hoc dependency accumulation.
Tip
Help
Slash Commands:
/review- Request a full code review/review latest- Review only changes since the last review/describe- Generate PR description. This will update the PR body or issue comment depending on your configuration/help- Get help with Mesa commands and configuration options
0 files reviewed | 0 comments | Edit Agent Settings • Read Docs
Mesa DescriptionTL;DRResolved failing CI linting checks (ShellCheck and What changed?
Description generated by Mesa. Update settings |
Summary
Fixes the failing GitHub Actions on
main(Shell + Nix checks) and adds missing brew CLIs.Failing GitHub Actions fixed
SC2018/SC2019inspec/npm_globals_spec.sh:251(tr 'A-Z' 'a-z'), and since CI runs at default severity the info finding exited non-zero (xargs123). Switched to POSIX classestr '[:upper:]' '[:lower:]'.nix-flake/nix-testviatreefmtcheck) was red: the same spec file was notshfmt-formatted. Applied the formattingtreefmt --fail-on-changerequires.Both verified locally:
shellcheck spec/npm_globals_spec.sh-> cleannix fmt -- --fail-on-change-> 0 changedBrew CLIs added (
nix-darwin/config/homebrew.nix)stripe-cli(Stripe CLI;stripeis the homebrew/core alias, so no extra tap needed) - runstripe loginafter installgrafanalokiargoSummary by cubic
Fixes failing CI checks (ShellCheck and Nix/treefmt) and adds missing Homebrew CLIs. Pipeline is green again and devs get
stripe-cli,grafana,loki, andargo.Bug Fixes
tr 'A-Z' 'a-z'withtr '[:upper:]' '[:lower:]'to satisfy ShellCheckSC2018/SC2019in spec/npm_globals_spec.sh.shfmtsotreefmt/Nix format checks pass.Dependencies
nix-darwin/config/homebrew.nix:stripe-cli,grafana,loki,argo.Written for commit 0d9cc60. Summary will update on new commits.