fix(scripts): add short help to GitHub test map#3223
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
📝 WalkthroughWalkthroughAdded ChangesHelp flag support for build-github-test-map
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. 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 |
Constraint: test planning help should be inspectable without GitHub fetching or LLM CLI setup.\nRejected: keeping only --help | adjacent contributor scripts support -h and this helper is user-facing.\nConfidence: high\nScope-risk: narrow\nDirective: parse help before fetch, filesystem output, or synthesis phases.\nTested: node --test scripts/__tests__/build-github-test-map-help.test.mjs; node scripts/codex-pr-preflight.mjs --lightweight; git diff --check; pnpm --filter openhuman-app format:check reached cargo blocker after Prettier passed.\nNot-tested: full Rust format because cargo is not installed locally.
40f3c3f to
aad0c88
Compare
Summary
-has a short help alias forscripts/test-planning/build-github-test-map.mjs.-hand--help.Problem
build-github-test-map.mjsis a contributor-facing planning helper, but it only accepted--help.Solution
-hthe same as--helpbefore phase/include/LLM parsing work proceeds.gh,codex, andclaudestubs inPATH.Submission Checklist
Impact
node scripts/test-planning/build-github-test-map.mjs -hnow prints usage and exits without requiring GitHub or LLM CLI setup.Related
AI Authored PR Metadata (required for Codex/Linear PRs)
Linear Issue
Commit & Branch
codex/OH-2611-test-map-short-help40f3c3fValidation Run
pnpm --filter openhuman-app format:check(blocked after Prettier passed; see Validation Blocked)pnpm typecheck: N/A, root Node helper-only changenode --test scripts/__tests__/build-github-test-map-help.test.mjsnode scripts/codex-pr-preflight.mjs --lightweightgit diff --checkValidation Blocked
command:pnpm --filter openhuman-app format:checkerror:sh: cargo: command not foundimpact:Prettier passed, but the Rust format phase cannot run in this local environment until Cargo is installed.Behavior Changes
-hnow prints usage and exits 0 forbuild-github-test-map.mjs.Parity Contract
--help, fetch/synthesize/all phases, include filtering, LLM selection, and invalid argument behavior are unchanged.gh,codex, orclaudeinvocation.Duplicate / Superseded PR Handling
Summary by CodeRabbit
New Features
-hoption alongside--helpso the CLI prints usage immediately for faster access to help.Tests