@empiricalrun/playwright-utils 0.55.0 → 0.56.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @empiricalrun/playwright-utils
2
2
 
3
+ ## 0.56.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 10f0931: feat: client-side maxFailure config informs server-side behavior
8
+
3
9
  ## 0.55.0
4
10
 
5
11
  ### Minor Changes
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAE7D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAgBzD,wBAAgB,gBAAgB,IAAI,MAAM,CAazC;AAqCD,eAAO,MAAM,UAAU,EAAE,oBAyBxB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,iBAarB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAE7D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAgBzD,wBAAgB,gBAAgB,IAAI,MAAM,CAazC;AAqCD,eAAO,MAAM,UAAU,EAAE,oBA+BxB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,iBAarB,CAAC"}
@@ -79,7 +79,13 @@ exports.baseConfig = {
79
79
  retries: process.env.CI ? 2 : 0,
80
80
  // Let playwright choose max workers based on size of infra
81
81
  workers: undefined,
82
- // maxFailures counts retries as individual failures, so this is equivalent to 20 failed tests
82
+ // Since Playwright 1.48, a test counts toward maxFailures only after all its
83
+ // retries are exhausted, so this is 30 definitively-failed tests (see
84
+ // https://github.com/microsoft/playwright/issues/26350). The reporter sends
85
+ // the resolved value on run-end events so the server-side early-end
86
+ // (api-worker cancelTestRunIfMaxFailuresReached) enforces the same cap
87
+ // run-wide across shards. Matches DEFAULT_MAX_FAILURES_PER_RUN in
88
+ // shared-types, the server's fallback for events without the field.
83
89
  maxFailures: process.env.CI ? 30 : undefined,
84
90
  timeout: 15 * 60 * 1_000,
85
91
  expect: {