Repository navigation
fix(infra): harden healthcheck, rollback and env validation scripts - #1606
Merged
phertyameen merged 1 commit intoNov 21, 2026
Merged
Conversation
- Add --all-environments to healthcheck.sh and document its strictly single-target default, with per-environment URL variables and SKIP reporting. - Require a validated --network, verify the active kubectl context against it, and make --dry-run report the target plan and affected resources. - Let validate-infra-env.sh validate an infra-level .env file without sourcing it, exposed via validate-env.sh --infra-env. Closes BlockHaven-Labs#1498 Closes BlockHaven-Labs#1499 Closes BlockHaven-Labs#1500 Closes BlockHaven-Labs#1501
|
@Ummi-001 is attempting to deploy a commit to the aminubabafatima8-gmailcom's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@Ummi-001 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
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.
Summary
healthcheck.sh: document the strictly single-target default and add--all-environmentswith per-environment URL variables and SKIP reporting.rollback.sh: require a validated--network, verify the active kubectl context (EXPECTED_KUBE_CONTEXT/--skip-context-check), and make--dry-runreport the target plan and affected resources.validate-env.sh --infra-env/validate-infra-env.sh: validate infra-level env files without sourcing them, with safe parsing and CRLF handling.Test plan
bash -npasses on all modified scripts.healthcheck.sh --all-environments --jsonemits 9 SKIPs and exits 0.rollback.sh --network prodexits 2 with a validation error;--dry-run --skip-context-checkexits 0.shellcheckis unavailable locally.Closes #1498
Closes #1499
Closes #1500
Closes #1501