playwright-slack-report-burak 3.0.22 → 3.0.23

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.
@@ -123,12 +123,17 @@ class SlackReporter {
123
123
  // This ensures ResultsParser always has correct values, even if we block posting
124
124
  this.resultsParser.updateShardInfo(shardIndexNum, totalShards);
125
125
 
126
+ // CRITICAL: ALL shards must create their node_summary files, even if they don't post to Slack
127
+ // This must happen BEFORE the early return for non-shard-1 shards
128
+ const resultSummary = await this.resultsParser.getParsedResults();
129
+
126
130
  // Only allow shard 1 to post when there are multiple shards
127
131
  // This ensures only one shard posts the aggregated report
128
132
  if (totalShards > 1 && shardIndexNum !== 1) {
129
133
  this.log(`❌ [Shard Detection] BLOCKING: Non-shard-1 detected (shard ${shardIndexNum} of ${totalShards})`);
130
134
  this.log(`❌ Stopping reporter for shard ${shardIndexNum} of ${totalShards}`);
131
135
  this.log(`ℹ️ Only shard 1 will post the aggregated report.`);
136
+ this.log(`✅ Node summary file created for shard ${shardIndexNum}`);
132
137
  return;
133
138
  }
134
139
 
@@ -138,8 +143,6 @@ class SlackReporter {
138
143
  } else {
139
144
  this.log(`✅ [Shard Detection] ALLOWING: Multiple shards detected (${totalShards}). Shard ${shardIndexNum} will post aggregated report.`);
140
145
  }
141
-
142
- const resultSummary = await this.resultsParser.getParsedResults();
143
146
  resultSummary.meta = this.meta;
144
147
  const maxRetry = Math.max(...resultSummary.tests.map((o) => o.retry));
145
148
  if (this.sendResults === 'on-failure'
package/package.json CHANGED
@@ -32,7 +32,7 @@
32
32
  "lint-fix": "npx eslint . --ext .ts --fix"
33
33
  },
34
34
  "name": "playwright-slack-report-burak",
35
- "version": "3.0.22",
35
+ "version": "3.0.23",
36
36
  "main": "index.js",
37
37
  "types": "dist/index.d.ts",
38
38
  "author": "Burak B. <burak.boluk@hotmail.com>",