playwright-slack-report-burak 3.0.3 → 3.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.
@@ -74,21 +74,9 @@ class SlackReporter {
74
74
  // Only shard 0 (0-based) should post when aggregating results from multiple shards
75
75
 
76
76
  // Detect shard index from multiple sources (GitHub Actions compatible)
77
- let currentShardIndex = process.env.MATRIX_SHARD !== undefined
78
- ? process.env.MATRIX_SHARD
79
- : (process.env.MATRIX_INDEX !== undefined ? process.env.MATRIX_INDEX : undefined);
80
-
81
- // Get shard info from ResultsParser which might have detected it
82
- const parserShardIndex = this.resultsParser.shardIndex;
83
- const parserTotalShards = this.resultsParser.totalShardCount;
84
-
85
- // Use parser values if env vars not set
86
- const totalShards = process.env.MATRIX_COUNT ? parseInt(process.env.MATRIX_COUNT, 10) : parserTotalShards;
87
-
88
- // If we still don't have shard index, try to infer from parser
89
- if (currentShardIndex === undefined && parserShardIndex !== undefined) {
90
- currentShardIndex = parserShardIndex.toString();
91
- }
77
+ let currentShardIndex = process.env.strategy.job-total !== undefined
78
+ ? process.env.strategy.job-total
79
+ : undefined;
92
80
 
93
81
  // Convert to number for comparison (default to 0 if undefined)
94
82
  const shardIndexNum = currentShardIndex !== undefined ? parseInt(currentShardIndex, 10) : 0;
package/package.json CHANGED
@@ -31,7 +31,7 @@
31
31
  "lint-fix": "npx eslint . --ext .ts --fix"
32
32
  },
33
33
  "name": "playwright-slack-report-burak",
34
- "version": "3.0.3",
34
+ "version": "3.0.4",
35
35
  "main": "index.js",
36
36
  "types": "dist/index.d.ts",
37
37
  "author": "Burak B. <burak.boluk@hotmail.com>",