Repository navigation
fix(runner): preserve failures when tests skip - #741
Conversation
There was a problem hiding this comment.
All reported issues were addressed across 15 files
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
641a836 to
de47f66
Compare
…ling attempt - failureBeforeSkip returns failing attempt's error, evidence, artifacts; list reporter prints those instead of skipped attempt's - someSkippedAfterFailure indexes serial groups once, shared by exit code and run status - collapse skip branch in execute, place failOnSkippedFailure next to retries with JSDoc
de47f66 to
6a390c3
Compare
okwasniewski
left a comment
There was a problem hiding this comment.
On 6a390c3:
A serial member that skipped cleanly can show up under Skipped After Failure with an INTERRUPTED error that came after its skip. If member A skips in attempt 0 and another member fails, the group retries. If that retry is then interrupted while A is running, cutRetry keeps A's skipped verdict from attempt 0, but the interrupted attempt stays in group.attempts. failureBeforeSkip walks every group attempt in reverse, so it picks up attempt 1's interrupt error as the failure before the skip. The user then sees a misleading entry and an extra count under Warnings, and someSkippedAfterFailure returns true for that member. The smallest fix is to stop the walk at the attempt whose explicit skip decided the result, or to ignore interrupted retries the same way cutRetry does (attemptIndex > 0 && attempt.status === 'interrupted'). Details inline.
reviewed 6a390c3 by Hermes on behalf of @okwasniewski
| attempt.members | ||
| .filter((member) => member.testId === result.test.id) | ||
| .map((member) => ({ ...member, artifacts: attempt.artifacts })), | ||
| ); |
There was a problem hiding this comment.
For a serial member this walks every group attempt, including an interrupted retry that ran after the attempt that decided the skip. An INTERRUPTED error recorded there gets reported as the failure before the skip. Could the walk stop at the last member record that is skipped with an explicit cause, or skip interrupted retries like cutRetry does?
expect.soft(1).toBe(2); test.skip('feature disabled')drops the assertion failure and exits 0. A failed attempt followed by a skip on retry also disappears from the CLI summary. Related to runner: skip() after a failed expect.soft reports SKIPPED and hides the failure #688.secondaryErrorsand show the original failure underSkipped After Failure, including retries and serial members. Exclude engine cleanup diagnostics that arrived after the skip.failOnSkippedFailure: trueto make these runs exit 1. The default staysfalseto preserve the documented skip behavior under the stability policy. Tests retain their skipped status and reason; clean skips and successful retries are unaffected.Verified
Ran it locally: yes
e2e@0.15.1, then with this branch's packed npm package:E2E_TELEMETRY_DISABLED=1 node node_modules/e2e/dist/cli/bin.js run. No browser, app server, or model credentials.28b09f3before the fix.The packed fix prints:
With the option enabled,
report.jsonrecords run statusfailed, exit code1, test statusskipped, and reasonfeature disabled.The app-backed testbed and benchmark suites were not run; verification stayed headless and service-free.