Files
deepseek-harness/docs/testing.i18n.yaml
T
Tianyi CuiandChinesezjc 9bc34fa962 ci: reuse reviewed coverage fork exit diagnostics
Repeated native Windows coverage runs stopped a Vitest fork while a JSONL
migration suite was unfinished. Vitest's generic unexpected-exit error
discarded the process exit code and signal, preventing classification of
the failure despite identifying the missing test file from the inventory.

Reuse the public ForksPoolWorker diagnostic implementation and protocol
fixtures from independently reviewed PR #4388, pinned at
77e215ff76711ec75ed8aa08aa5b414780e539ae. The runtime helper is unchanged.
It reports PID, project, worker identity, outstanding file request, code,
and signal before stock Vitest reports the original failure. It clears
ownership only on the typed testfileFinished response, suppresses expected
stop, and leaves cancellation and failure handling with the original pool.

Wire that existing pool into generated coverage partition configs. Keep
the original worker counts, partition scheduling, test timeouts, coverage
thresholds, and failure verdicts. No environment, raw argv, or test object
is serialized. This commit adds diagnostic evidence; it does not claim to
repair the still-unidentified Windows crash. PR #4388 remains the separate
reviewable owner; no duplicate diagnostic framework or PR is introduced.

Adapt the copied fixtures to the current no-new-unknown-assertions rule:
declare the private preload exit function, validate consumed logger fields
with the public logger type, and assign matcher/rejection values to typed
unknown locals without assertions. Add a concise bilingual testing note.

Validation:
- Diagnostic suite: 10 passed, including a real configured Vitest fork
  exiting 23, stock-pool negative control, successful silent shutdown,
  unexpected exit 0, early exit, independent forks, and signal metadata.
- Coverage coordinator suite: 51 passed.
- Targeted lint and focused strict TypeScript check passed.
- pnpm exec tsc -b tsconfig.host.json passed.
- verify-no-unknown-casts passed; 1430 existing assertions unchanged.
- doc-sync passed 40 gates; the two initially failing gates were repaired
  and rerun successfully: doc-typecheck and verify-doc-budgets.
- Translation pairing and git diff --check passed.

Refs #4387, #4388, #4394.

Co-authored-by: Chinesezjc <[email protected]>
2026-10-06 10:17:44 +08:00

35 lines
1.2 KiB
YAML

# Bilingual-pair consistency record for testing.md (docs/i18n/README.md): per heading
# section, a hash of its English and Chinese blocks outside code blocks and generated regions.
# After editing either side, bring the other along and re-record with:
# pnpm run verify-translation-pairing --write docs/testing.md
/testing-policy:
en: 0d7399a58529b9eb
zh: 7f445b06430f21a4
/testing-policy/tiers:
en: c024da7e8d9cb056
zh: c4cc1a66d2903656
/testing-policy/how-specs-execute:
en: 5d8eb65958da096d
zh: 4a40f1c5fe5b2d14
/testing-policy/the-with-key-policy-inference-is-cheap-here:
en: d555af53068bf523
zh: ddc4265e5de5b3be
/testing-policy/prefer-the-real-implementation-over-a-mock:
en: 96a5bdcea4960b25
zh: 98ad9d468e55a5ed
/testing-policy/verify-the-world-not-the-self-report:
en: e7cbafc4f96b72c2
zh: 0c5a0aa2afd9a812
/testing-policy/test-the-real-entry-path:
en: 002e4c4a1bcbef50
zh: c3dd3820c0b2164f
/testing-policy/test-resolution-source-plane-only:
en: 8a142fe4cbd196d7
zh: 0f8c682cd8c654de
/testing-policy/test-subprocess-launch-modes:
en: 5ea1c7ff7a9a5728
zh: bbae70e0cd2d5cbf
/testing-policy/when-a-snapshot-test-is-required:
en: 055966993c5392c0
zh: eb35536ad2c4320b