Skip to content

test(validate): stop waiting out the real 60s npm pack deadline - #79

Merged
mkczarkowski merged 1 commit into
masterfrom
ci/fast-skills-timeout-test
Oct 6, 2026
Merged

mkczarkowski merged 1 commit into
masterfrom
ci/fast-skills-timeout-test

Conversation

@mkczarkowski

@mkczarkowski mkczarkowski commented Oct 6, 2026 •

Copy link
Copy Markdown
Collaborator

Co

Test terminates the direct child before timeout cleanup (tests/cli-skills-validation.test.ts) sprawdzał 60-sekundowy deadline Windows dla npm pack, a potem naprawdę czekał całe 60 s, aż proces potomny zostanie zabity.

Teraz test:

  • dalej sprawdza, że readPackedPaths na win32 podaje timeout: 60000,
  • dodatkowo sprawdza killSignal: "SIGKILL",
  • zatrzymany proces potomny dostaje ten sam sygnał, ale z deadline'em 5 s.

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 czeka release).

Pomiar

Przed (master, 2026-10-06):

Lokalnie: plik testu 60 s → 5,4 s; bun test tests/*.test.ts 14,5 s (941 pass). Typecheck i lint czyste.

Po (ten PR): check 53 s, krok testów 20 s, cały run 56 s, run 37424452055. Efekt na check-windows bę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 version nie dodał commita, a version-bootstrap jest zielony już w pierwszym runie, bo commit test(...) nie wyznacza wydania. Merge nie opublikuje nowej wersji na npm.

🤖 Generated with Claude Code

https://claude.ai/code/session_017xPA1vZ4n7nf2yeQmrNBib

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
@mkczarkowski
mkczarkowski merged commit 7481119 into master Oct 6, 2026
8 checks passed
@mkczarkowski
mkczarkowski deleted the ci/fast-skills-timeout-test branch October 6, 2026 07:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant