playwright-slack-report-burak 2.0.2 → 2.0.4
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.
|
@@ -92,7 +92,9 @@ class ResultsParser {
|
|
|
92
92
|
// Write the updated summary back to the file for the current node
|
|
93
93
|
fs.writeFileSync(nodeSummaryFile, JSON.stringify(nodeSummary, null, 2));
|
|
94
94
|
|
|
95
|
+
console.log('current shard index', this.shardIndex, 'total shard count', this.totalShardCount);
|
|
95
96
|
if (this.shardIndex === 0 && this.totalShardCount > 1) {
|
|
97
|
+
console.log('Fetching all artifacts...');
|
|
96
98
|
await this.fetchAllArtifacts();
|
|
97
99
|
}
|
|
98
100
|
|
|
@@ -260,6 +262,7 @@ class ResultsParser {
|
|
|
260
262
|
return [..._passes.values()];
|
|
261
263
|
}*/
|
|
262
264
|
allNodeSummaryFilesExist() {
|
|
265
|
+
console.log('Checking if all node summary files exist...');
|
|
263
266
|
const summariesDir = path.join(process.env.CIRCLE_WORKING_DIRECTORY || './', 'playwright-report');
|
|
264
267
|
|
|
265
268
|
for (let i = 0; i < this.totalShardCount; i++) {
|
|
@@ -272,8 +275,9 @@ class ResultsParser {
|
|
|
272
275
|
}
|
|
273
276
|
|
|
274
277
|
allBlobZipsExist() {
|
|
275
|
-
|
|
276
|
-
|
|
278
|
+
console.log('Checking if all blob zips exist...');
|
|
279
|
+
const summariesDir = path.join(process.env.CIRCLE_WORKING_DIRECTORY || './', 'playwright-report');
|
|
280
|
+
|
|
277
281
|
for (let i = 0; i < this.totalShardCount; i++) {
|
|
278
282
|
const blobZipFile = path.join(summariesDir, `blob-report-node-${i}.zip`);
|
|
279
283
|
if (!fs.existsSync(blobZipFile)) {
|
|
@@ -72,7 +72,7 @@ class SlackReporter {
|
|
|
72
72
|
}
|
|
73
73
|
const stopReporter = await this.resultsParser.getParsedResults();
|
|
74
74
|
if (stopReporter) {
|
|
75
|
-
this.log('Stopping
|
|
75
|
+
this.log('❌ Stopping reporter for non-zero index node');
|
|
76
76
|
return;
|
|
77
77
|
}
|
|
78
78
|
const resultSummary = await this.resultsParser.getParsedResults();
|
package/package.json
CHANGED
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"lint-fix": "npx eslint . --ext .ts --fix"
|
|
31
31
|
},
|
|
32
32
|
"name": "playwright-slack-report-burak",
|
|
33
|
-
"version": "2.0.
|
|
33
|
+
"version": "2.0.4",
|
|
34
34
|
"main": "index.js",
|
|
35
35
|
"types": "dist/index.d.ts",
|
|
36
36
|
"repository": "git@github.com:ryanrosello-og/playwright-slack-report.git",
|