Claude Code hooks (5/5): integration test runner#7244
Open
edmundmiller wants to merge 1 commit into
Open
Conversation
When an integration case tests/<name>.nf is edited, run just that one case through the existing runner (tests/checks/run.sh ../<name>.nf) instead of the full ~115-case suite. Uses the dev launcher and enables Docker only when available. Scoped declaratively with `if` (Edit/Write/MultiEdit on tests/*.nf, one entry per edit tool since if patterns are tool-qualified); the script repeats the scoping because the if filter is best-effort and fails open. Wired with `asyncRewake: true`: runs in the background and wakes Claude on failure (exit 2) with the failure output. Written in Bash; jq. Stacked on hooks-4-idea-format. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: Edmund Miller <edmund.miller@seqera.io>
This was referenced Jun 18, 2026
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.
Part 5 of the Claude Code engine-development hooks stack. Targets
hooks-4-idea-format(PR #7243).
This PR — Integration test runner (PostToolUse,
asyncRewake)hooks/run-integration-test.sh: when an integration casetests/<name>.nfis edited,run just that one case through the existing runner (
tests/checks/run.sh ../<name>.nf)instead of the full ~115-case suite.
if:Edit(tests/*.nf),Write(tests/*.nf),MultiEdit(tests/*.nf)— one entry per edit tool, becauseifpatterns aretool-qualified. The script repeats the path check since the
iffilter is best-effortand fails open.
asyncRewake: true: runs in the background (never blocks the conversation) and wakesClaude on failure (exit 2) with the failure output.
launch.sh) and enables Docker only when available. Requires abuilt dev launcher (
make compile); the runner writes scratch dirs undertests/checks/(
tests/cleanup.shclears them).Stack
🤖 Generated with Claude Code