@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 +15 -0
- package/dist/config/index.d.ts.map +1 -1
- package/dist/config/index.js +12 -2
- package/dist/generated/api-worker-openapi.d.ts +1130 -699
- package/dist/generated/api-worker-openapi.d.ts.map +1 -1
- package/dist/reporter/harness.d.ts +80 -0
- package/dist/reporter/harness.d.ts.map +1 -1
- package/dist/reporter/harness.js +198 -34
- package/dist/reporter/ibr-utils.d.ts +6 -0
- package/dist/reporter/ibr-utils.d.ts.map +1 -1
- package/dist/reporter/ibr-utils.js +15 -1
- package/dist/reporter/incremental-blob-reporter.d.ts +13 -2
- package/dist/reporter/incremental-blob-reporter.d.ts.map +1 -1
- package/dist/reporter/incremental-blob-reporter.js +87 -33
- package/dist/reporter/lifecycle-events.d.ts +5 -3
- package/dist/reporter/lifecycle-events.d.ts.map +1 -1
- package/dist/reporter/lifecycle-events.js +54 -3
- package/dist/reporter/parity-utils.d.ts +63 -0
- package/dist/reporter/parity-utils.d.ts.map +1 -0
- package/dist/reporter/parity-utils.js +109 -0
- package/package.json +5 -5
- package/tsconfig.tsbuildinfo +1 -1
- package/upstream-oracle/README.md +48 -0
- package/upstream-oracle/ibr-adapter.js +72 -0
- package/upstream-oracle/intermediate-mode-ibr.patch +16 -0
- package/upstream-oracle/run.mjs +231 -0
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;
|
|
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"}
|
package/dist/config/index.js
CHANGED
|
@@ -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
|
-
|
|
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
|