@e2e-dev/github 0.4.4-nightly-20261027030328 → 0.4.4-nightly-20261029030210
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/README.md +2 -1
- package/dist/.build.json +1 -1
- package/dist/merge.d.ts +2 -1
- package/dist/merge.js +4 -2
- package/dist/reporter.js +5 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -21,7 +21,8 @@ export default {
|
|
|
21
21
|
|
|
22
22
|
The job needs `permissions: pull-requests: write` and the step that runs
|
|
23
23
|
`e2e` needs `GITHUB_TOKEN: ${{ github.token }}` in its `env`. Matrix replicas
|
|
24
|
-
of one job pass a `key` so their comments stay apart
|
|
24
|
+
of one job pass a `key` so their comments stay apart, and an `e2e explore` run
|
|
25
|
+
keeps a comment of its own. When the reporter cannot
|
|
25
26
|
post (another CI, a push, a fork's read-only token) it says why in one summary
|
|
26
27
|
row and never changes the run's exit code.
|
|
27
28
|
|
package/dist/.build.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"0.4.4-nightly-
|
|
1
|
+
{"version":"0.4.4-nightly-20261029030210"}
|
package/dist/merge.d.ts
CHANGED
|
@@ -26,6 +26,7 @@ import type { Report } from 'e2e';
|
|
|
26
26
|
* the page reads interrupted, not green. The start is the run before's, so
|
|
27
27
|
* the footer's duration spans both. The rerun takes the run before's filter
|
|
28
28
|
* records and the change they judged, since the rows those filters left out
|
|
29
|
-
* are the run before's too.
|
|
29
|
+
* are the run before's too. An `e2e explore` run before leaves the rerun as
|
|
30
|
+
* it is.
|
|
30
31
|
*/
|
|
31
32
|
export declare function foldLastRun(current: Report, lastRun: Report): Report;
|
package/dist/merge.js
CHANGED
|
@@ -83,10 +83,12 @@ function summarize(results, base) {
|
|
|
83
83
|
* the page reads interrupted, not green. The start is the run before's, so
|
|
84
84
|
* the footer's duration spans both. The rerun takes the run before's filter
|
|
85
85
|
* records and the change they judged, since the rows those filters left out
|
|
86
|
-
* are the run before's too.
|
|
86
|
+
* are the run before's too. An `e2e explore` run before leaves the rerun as
|
|
87
|
+
* it is.
|
|
87
88
|
*/
|
|
88
89
|
export function foldLastRun(current, lastRun) {
|
|
89
|
-
|
|
90
|
+
// An exploration that wrote to the same output is not a pass of the suite.
|
|
91
|
+
if (lastRun.run.project.id !== current.run.project.id || lastRun.run.explore !== undefined)
|
|
90
92
|
return current;
|
|
91
93
|
const carried = current.run.carried;
|
|
92
94
|
const carriedById = new Map((carried?.results ?? []).map((result) => [result.id, result]));
|
package/dist/reporter.js
CHANGED
|
@@ -62,13 +62,17 @@ function markerField(value) {
|
|
|
62
62
|
/**
|
|
63
63
|
* The marker one job's comment carries, so two workflows or jobs each keep
|
|
64
64
|
* their own. Every field is cut the same way on every run, so a rerun
|
|
65
|
-
* derives the same marker and finds its comment.
|
|
65
|
+
* derives the same marker and finds its comment. An `e2e explore` run is
|
|
66
|
+
* its own kind: in a job that runs the tests and then explores, each keeps
|
|
67
|
+
* its comment. A test run adds no kind, so its comments posted before
|
|
68
|
+
* explore had one are still found.
|
|
66
69
|
*/
|
|
67
70
|
function commentMarker(run, context, key) {
|
|
68
71
|
const fields = {
|
|
69
72
|
project: run.report.run.project.id,
|
|
70
73
|
workflow: context.workflow,
|
|
71
74
|
job: context.job,
|
|
75
|
+
kind: run.report.run.explore === undefined ? undefined : 'explore',
|
|
72
76
|
key,
|
|
73
77
|
};
|
|
74
78
|
const parts = Object.entries(fields).flatMap(([name, value]) => value === undefined || value === '' ? [] : [`${name}=${markerField(value)}`]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@e2e-dev/github",
|
|
3
|
-
"version": "0.4.4-nightly-
|
|
3
|
+
"version": "0.4.4-nightly-20261029030210",
|
|
4
4
|
"description": "GitHub reporter for e2e: one pull request comment per run, from GitHub Actions",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"e2e",
|
|
@@ -43,10 +43,10 @@
|
|
|
43
43
|
"NOTICE"
|
|
44
44
|
],
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"e2e": "0.
|
|
46
|
+
"e2e": "0.22.0-nightly-20261029030210"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"e2e": "0.
|
|
49
|
+
"e2e": "0.22.0-nightly-20261029030210",
|
|
50
50
|
"@types/node": "26.6.5",
|
|
51
51
|
"typescript": "7.0.2",
|
|
52
52
|
"vitest": "5.0.5"
|