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.
- package/dist/src/SlackReporter.js +3 -15
- package/package.json +1 -1
|
@@ -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.
|
|
78
|
-
? process.env.
|
|
79
|
-
:
|
|
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