Repository navigation
kit-1257-fixture-commands-bounded: test/lib/kit.mjs's peekFixture and inboxFixture bound every command they run - #1015
Merged
Conversation
…mmands A fixture command past 60 s is killed (SIGKILL) and throws naming the fixture and the command; one that ran out of time is refused at once after. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…very command through fixtureRun Each prints one line with its command count, total and slowest step. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Follow-up to kit-1253's final review (F1): the test fixtures
bareProject,peekFixtureandinboxFixtureran their git and devteam commands with no time limit, so a hang there showed onlyTAP version 13until run.mjs's 300 s watchdog killed the file.What changes
test/lib/kit.mjsgetsfixtureRun(step, shown, file, args, opts):spawnSyncwith a 60 stimeoutandkillSignal: 'SIGKILL'(a child that ignores SIGTERM keeps spawnSync waiting past a SIGTERM timeout). Past the limit it throws<fixture>: <command>: no exit in 60 s, killed; the same command asked for again in that process is refused at once, so a file that rebuilds its fixture per test still fails fast. Withcheck, a non-zero exit throws asexecFileSyncdid.bareProjectruns its three commands through it; nothing else in it changes.peekFixtureandinboxFixturerun everydtandgitcall through it, and each prints one line,# peekFixture: <n> commands in <s> s, slowest <s> s: <command>, so CI logs show the fixture step times.How to verify
test/dashboard-peek.calls.test.mjs) with the hang printed onlyTAP version 13until killed on main; on this branch it fails naming the step.bareProjectpasses on every major.One-way doors
None.
🤖 Generated with Claude Code