deploy: modularize bin shell scripts with shared helpers#109
Conversation
|
Superseded by the corrected review-guide comment below (with proper code formatting): #109 (comment) |
|
Review guide (commit-by-commit):
Validation run on this branch: bash -n <updated scripts/modules>
bash bin/env.test.sh
bash bin/update-release.test.sh
bash bin/rollback-release.test.sh |
Greptile SummaryThis PR successfully modularizes shell scripts by extracting common patterns into shared helper modules under Key changes:
Code quality improvements:
Confidence Score: 5/5
Important Files Changed
Last reviewed commit: aa8b7a4 |
Additional Comments (1)
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time! Prompt To Fix With AIThis is a comment left during a code review.
Path: AGENTS.md
Line: 33-36
Comment:
repo layout section should list the new shared shell modules (`shell-common.sh`, `deploy-common.sh`, `doctor-common.sh`) for consistency with the actual bin/lib/ directory structure
<sub>Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!</sub>
How can I resolve this? If you propose a fix, please make it concise. |
|
Superseded by the corrected coverage update comment below (with proper code formatting): #109 (comment) |
|
Added the follow-up coverage in this branch:
Validation after adding tests: bash bin/lib/deploy-common.test.sh # 6/6
bash bin/lib/doctor-common.test.sh # 5/5
bash bin/test.sh shell # 8/8 suites passing |
Summary
bin/lib/shell-common.shfor strict mode/logging/errors/root+env/systemd helpersdeploy-common.shfor deploy-specific identity/env-source helpersdoctor-common.shfor doctor counters/output summarybin/deploy.sh,bin/update-release.sh,bin/rollback-release.shbin/config.sh,bin/env.sh,bin/doctor.sh,bin/security-audit.shREADME.md,AGENTS.md) with shell module conventionsCommit structure
deploy: add shared shell helper modulesdeploy: migrate bin scripts to shared helpersdocs: document shared shell module conventionsValidation
bash -non updated scripts/modulesbash bin/env.test.shbash bin/update-release.test.shbash bin/rollback-release.test.sh