playwright-slack-report-burak 2.0.2 → 2.0.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.
@@ -93,6 +93,7 @@ class ResultsParser {
93
93
  fs.writeFileSync(nodeSummaryFile, JSON.stringify(nodeSummary, null, 2));
94
94
 
95
95
  if (this.shardIndex === 0 && this.totalShardCount > 1) {
96
+ console.log('Fetching all artifacts...');
96
97
  await this.fetchAllArtifacts();
97
98
  }
98
99
 
@@ -260,6 +261,7 @@ class ResultsParser {
260
261
  return [..._passes.values()];
261
262
  }*/
262
263
  allNodeSummaryFilesExist() {
264
+ console.log('Checking if all node summary files exist...');
263
265
  const summariesDir = path.join(process.env.CIRCLE_WORKING_DIRECTORY || './', 'playwright-report');
264
266
 
265
267
  for (let i = 0; i < this.totalShardCount; i++) {
@@ -272,8 +274,9 @@ class ResultsParser {
272
274
  }
273
275
 
274
276
  allBlobZipsExist() {
275
- const summariesDir = path.join(process.env.CIRCLE_WORKING_DIRECTORY || './', 'playwright-report');
276
-
277
+ console.log('Checking if all blob zips exist...');
278
+ const summariesDir = path.join(process.env.CIRCLE_WORKING_DIRECTORY || './', 'playwright-report');
279
+
277
280
  for (let i = 0; i < this.totalShardCount; i++) {
278
281
  const blobZipFile = path.join(summariesDir, `blob-report-node-${i}.zip`);
279
282
  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.2",
33
+ "version": "2.0.3",
34
34
  "main": "index.js",
35
35
  "types": "dist/index.d.ts",
36
36
  "repository": "git@github.com:ryanrosello-og/playwright-slack-report.git",