Repository navigation
test(validate): stop waiting out the real 60s npm pack deadline - #79
Merged
Merged
Conversation
The Windows timeout test asserted the 60s deadline and then let the stalled child run the full 60s. It now asserts the deadline and SIGKILL, and runs the child with a 5s deadline and the same signal. This was 60 of the 74s in the CI test step on Linux and on Windows. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017xPA1vZ4n7nf2yeQmrNBib
4 tasks done
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.
Co
Test
terminates the direct child before timeout cleanup(tests/cli-skills-validation.test.ts) sprawdzał 60-sekundowy deadline Windows dlanpm pack, a potem naprawdę czekał całe 60 s, aż proces potomny zostanie zabity.Teraz test:
readPackedPathsnawin32podajetimeout: 60000,killSignal: "SIGKILL",Reszta asercji bez zmian: proces nie żyje (
process.kill(pid, 0)rzuca), a trzymany plik da się usunąć. Kod produkcyjny jest nietknięty.Po co
Te 60 s to 60 z 74 s kroku „Test (unit + integration)” w CI. Krok leży na ścieżce krytycznej PR (
check) i master (check-windows, na który czekarelease).Pomiar
Przed (master, 2026-10-06):
check107 s, krok testów 75 s, run 37421752958check115 s, krok testów 74 s, run 37376095483Lokalnie: plik testu 60 s → 5,4 s;
bun test tests/*.test.ts14,5 s (941 pass). Typecheck i lint czyste.Po (ten PR):
check53 s, krok testów 20 s, cały run 56 s, run 37424452055. Efekt nacheck-windowsbędzie widać dopiero na master po merge (oczekiwane ~2,6 → ~1,7 min).Oczekiwany efekt: PR ~1,8 → ~0,9 min, merge → npm ~2,9 → ~2,0 min (Windows na master też traci 55 s).
Wersja
Bez bumpu.
Prepare CLI versionnie dodał commita, aversion-bootstrapjest zielony już w pierwszym runie, bo committest(...)nie wyznacza wydania. Merge nie opublikuje nowej wersji na npm.🤖 Generated with Claude Code
https://claude.ai/code/session_017xPA1vZ4n7nf2yeQmrNBib