[scanner] fix: resolve nightly unit-test regression - #22397
Conversation
✅ Deploy Preview for kubestellarconsole ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
👋 Hey @kubestellar-hive[bot] — thanks for opening this PR!
This is an automated message. |
…sh (#22004) The nightly unit-test regression (#22004) was caused by Vitest reporting 'Errors N errors' (unhandled rejections from fake-timer tests) even when all test cases themselves passed. The pass-through guard in unit-test.sh only checked for 'Tests.*failed', so a run with unhandled rejections could exit non-zero but still be incorrectly treated as a worker cleanup timeout. Add a guard that also fails when Vitest reports one or more errors, ensuring unhandled rejections (e.g. from fake-timer tests without expectEventualRejection) are caught and surface as real failures rather than being silently swallowed. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: Scanner <scanner@kubestellar.io>
5344d37 to
44274d6
Compare
|
Thank you for your contribution! Your PR has been merged. Check out what's new:
Stay connected: Slack #kubestellar-dev | Multi-Cluster Survey |
|
Post-merge build verification passed ✅ Both Go and frontend builds compiled successfully against merge commit |
Fixes #22004
— hive: agent=scanner backend=copilot model=auto