@empiricalrun/playwright-utils 0.58.1 → 0.58.3

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,20 @@
1
1
  # @empiricalrun/playwright-utils
2
2
 
3
+ ## 0.58.3
4
+
5
+ ### Patch Changes
6
+
7
+ - edef32d: feat: env var to disable the native blob reporter
8
+ - 9f1f2d1: feat: incremental blob reporter emits step-level annotations and attachments, falls back to config.shard when shard env vars are unset
9
+ - 760771b: feat: incremental blob reporter emits stdio, run-level errors, body attachments and annotations
10
+ - 8b883dd: feat: incremental blob reporter uploads on clean finish, with a completeness marker
11
+
12
+ ## 0.58.2
13
+
14
+ ### Patch Changes
15
+
16
+ - 0c9577d: fix: incremental blob reporter finalizes a second time after interruption teardown
17
+
3
18
  ## 0.58.1
4
19
 
5
20
  ### Patch 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,oBA+BxB,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;AA+CD,eAAO,MAAM,UAAU,EAAE,oBA+BxB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,iBAarB,CAAC"}
@@ -39,8 +39,14 @@ function getReporters() {
39
39
  if (process.env.HAS_SHARDING && !process.env.SHARD_INDEX) {
40
40
  throw new Error("Invalid env variables: HAS_SHARDING needs SHARD_INDEX");
41
41
  }
42
- const middle = process.env.HAS_SHARDING
43
- ? [
42
+ // Set from the ibr_only_blob_reporter feature flag by test-run-worker: the
43
+ // incremental blob reporter's clean-finish upload (with its completeness
44
+ // marker) is the merge input, so the native blob reporter would only write
45
+ // a zip the merge step discards as superseded.
46
+ const ibrOnly = process.env.IBR_ONLY_BLOB_REPORTER === "true";
47
+ const nativeBlob = ibrOnly
48
+ ? []
49
+ : [
44
50
  [
45
51
  "blob",
46
52
  {
@@ -48,6 +54,10 @@ function getReporters() {
48
54
  fileName: `report-${process.env.SHARD_INDEX}.zip`,
49
55
  },
50
56
  ],
57
+ ];
58
+ const middle = process.env.HAS_SHARDING
59
+ ? [
60
+ ...nativeBlob,
51
61
  // Salvage path for a blob report that never gets written: on SIGINT the
52
62
  // blob reporter can be cut off mid-run, and this one has already been
53
63
  // streaming events to disk. It is only useful where a merge step exists