Repository navigation
fix(ship): read test command from CLAUDE.md instead of hardcoding Rails+Node commands - #1102
Closed
JiayuuWang wants to merge 1 commit into
Closed
JiayuuWang wants to merge 1 commit into
JiayuuWang wants to merge 1 commit into
Conversation
…ls+Node commands Issue garrytan#1069 — /ship Step 5 hardcodes `bin/test-lane` + `npm run test` regardless of detected framework. Step 4's TEST_BOOTSTRAP correctly detects the runtime, but Step 5 ignores it and runs both commands unconditionally. This violates the project's own platform-agnostic design rule in CLAUDE.md: "Skills must NEVER hardcode framework-specific commands." Fixed by replacing the hardcoded dual-command block with a CLAUDE.md-first lookup (matching TEST_COVERAGE_AUDIT_SHIP's pattern). Falls back to project search for the appropriate test command. Prints "No test framework detected" and skips if nothing is found — instead of failing with non-existent commands. Co-Authored-By: Claude Opus 4.7 <[email protected]>
time-attack
pushed a commit
to time-attack/gstack
that referenced
this pull request
Jul 14, 2026
time-attack
pushed a commit
to time-attack/gstack
that referenced
this pull request
Jul 14, 2026
…ootstrap detection (garrytan#1102 follow-up) Co-Authored-By: Claude Fable 5 <[email protected]>
Contributor
|
@16francej — recommend closing this PR because it changes an obsolete ship template. Issue #1069 is the active tracker for trusted test-command discovery; please carry this PR’s project-configuration precedence insight and contributor attribution there, together with the useful stack-detection cases from #842. |
time-attack
pushed a commit
to time-attack/gstack
that referenced
this pull request
Jul 22, 2026
…arrytan#592 garrytan#696 garrytan#1523 garrytan#1053) Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Contributor
|
Thanks for this, @JiayuuWang. The fix is now on main: ship/SKILL.md.tmpl no longer hardcodes bin/test-lane or npm run test (already on main as of v1.91.16.0). Closing as superseded; if you still see the problem on the latest gstack, please open an issue with ./setup --status output. |
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
Issue #1069 —
/shipStep 5 hardcodesbin/test-lane+npm run testregardless of detected framework.Step 4's
TEST_BOOTSTRAPcorrectly detects the runtime, but Step 5 ignores it and unconditionally runs both commands. This violates the project's own platform-agnostic design rule inCLAUDE.md:In a Django project,
bin/test-lane(Rails-specific) andnpm run test(Node-specific) both fail silently with non-existent commands. The issue reporter hit this while shipping a Django app.Fix
Replaced the hardcoded dual-command block in
ship/SKILL.md.tmplStep 5 with aCLAUDE.md-first lookup (matchingTEST_COVERAGE_AUDIT_SHIP's existing pattern):## Testingsection exists with a run command: use that commandThis ensures the test execution follows the same platform-agnostic pattern that the coverage audit already uses.
Test plan
ship/SKILL.md.tmplno longer contains hardcodedbin/test-laneornpm run testin Step 5/shipin a non-Rails, non-Node project — Step 5 should read CLAUDE.md for the test command/shipin a Rails project — should still find and execute the correct test command🤖 Generated with Claude Code