Conversation
windows-latest intermittently kills an entire test file's child process: the runner reports `✖ <file> ... 'test failed'` with a non-zero exit, no failing assertion and no diagnostics. It lands on a different heavyweight example suite each run (smart-cockpit gateway composition, AI Passport device relay), fails the same way on main, and never reproduced in ~120 targeted reruns on windows-latest / Node 24.15.0 (3 shards x [15 smart-cockpit groups + 15 AI Passport groups + 10 composition runs] plus three full `npm test` runs). Retry `npm test` once on Windows only and announce the retry as a warning annotation, so a flaky pass stays visible in the job instead of hiding a real regression. Two failed attempts still fail the job; other platforms keep the single-run behaviour.
Collaborator
|
感谢针对 Windows 偶发测试进程退出提供缓解方案,也感谢此前详细的复现调查。维护者评估后,暂不采用当前对所有 npm test 失败统一重试的策略:实现尚未区分已知进程退出与真实测试失败,可能掩盖间歇性回归。我们会优先评估后续诊断日志方案,保留故障现场后再决定是否需要有针对性的重试,因此先关闭本 PR。感谢理解和贡献! |
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.
Summary
npm testbehavior behind a Windows-only single retryThis addresses the CI mitigation requested in #413. It does not claim to fix the underlying Windows child-process failure; it keeps the failure visible while avoiding unrelated intermittent red jobs.
Verification
git diff --check origin/main...HEAD.github/workflows/ci.ymlchangesFixes #413