Skip to content

Add preflight script for pre-PR checks (Fixes #870)#1018

Open
kitcommerce wants to merge 1 commit intonextfrom
issue-870-preflight-v2
Open

Add preflight script for pre-PR checks (Fixes #870)#1018
kitcommerce wants to merge 1 commit intonextfrom
issue-870-preflight-v2

Conversation

@kitcommerce
Copy link
Contributor

Summary

Adds script/preflight — a single entry point for pre-PR validation. Checks:

  • Docker services (mongo/redis/elasticsearch reachable)
  • Bundler frozen-mode config
  • Boot smoke test (default appraisal)
  • ShellCheck on repo scripts (optional)
  • Git dirty-tree warning

Each step prints PASS/FAIL/SKIP. Exits non-zero if any required check fails.

Client Impact

None (developer ergonomics).

Verification Plan

# With docker running:
script/preflight

# With docker stopped:
script/preflight  # should fail on service checks

Fixes #870

Runs docker service checks, bundler frozen-mode check, boot smoke test,
ShellCheck on repo scripts, and git dirty-tree warning. Prints PASS/FAIL
for each step and exits non-zero if any required check fails.
@kitcommerce
Copy link
Contributor Author

This PR is on hold — the linked issue has been flagged for owner review (churned 3+ times through the pipeline). A human will review whether to proceed or close this PR.

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