Skip to content

fix(test-runner): run teardown projects when maxFailures is reached#41737

Open
yury-s wants to merge 1 commit into
microsoft:mainfrom
yury-s:fix-41713
Open

fix(test-runner): run teardown projects when maxFailures is reached#41737
yury-s wants to merge 1 commit into
microsoft:mainfrom
yury-s:fix-41713

Conversation

@yury-s

@yury-s yury-s commented Jul 10, 2026

Copy link
Copy Markdown
Member

Summary

  • Teardown projects were skipped when a run was interrupted by --max-failures, so their cleanup (e.g. clearing a database) never ran.
  • Teardown project test groups are now exempt from the max-failures interruption (via a TestGroup.ignoreMaxFailures flag), so they still run while everything else stops.

Fixes #41713

When a run is interrupted by maxFailures, teardown projects were skipped,
so their cleanup (e.g. clearing a database) never ran. Exempt teardown
project test groups from the maxFailures interruption via a
TestGroup.ignoreMaxFailures flag so they still run.

Fixes: microsoft#41713
@yury-s yury-s requested review from dgozman and pavelfeldman July 10, 2026 18:40
@github-actions

Copy link
Copy Markdown
Contributor

Test results for "MCP"

1 failed
❌ [chromium] › mcp/cli-find.spec.ts:38 › find by regex @mcp-macos-latest-chromium

7759 passed, 1249 skipped


Merge workflow run.

@github-actions

Copy link
Copy Markdown
Contributor

Test results for "tests 1"

8 flaky ⚠️ [chromium-library] › library/popup.spec.ts:260 › should not throw when click closes popup `@frozen-time-library-chromium-linux`
⚠️ [chromium-library] › library/video.spec.ts:680 › screencast › should capture full viewport on hidpi `@chromium-ubuntu-22.04-arm-node20`
⚠️ [chromium-library] › library/video.spec.ts:717 › screencast › should work with video+trace `@realtime-time-library-chromium-linux`
⚠️ [chromium-library] › library/video.spec.ts:680 › screencast › should capture full viewport on hidpi `@chromium-ubuntu-22.04-node24`
⚠️ [chromium-library] › library/video.spec.ts:275 › screencast › should capture navigation `@chromium-ubuntu-22.04-node22`
⚠️ [chromium-library] › library/video.spec.ts:680 › screencast › should capture full viewport on hidpi `@chromium-ubuntu-22.04-node22`
⚠️ [firefox-library] › library/har-websocket.spec.ts:235 › should attach websocket messages `@firefox-ubuntu-22.04-node20`
⚠️ [playwright-test] › ui-mode-test-progress.spec.ts:24 › should update trace live `@windows-latest-node22`

49528 passed, 1161 skipped


Merge workflow run.

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.

[Bug]: Teardown is not called if test failure and max-failures configured

1 participant