Skip to content

Commit 5aee7f7

Browse files
ci-botAniket-Engg
authored andcommitted
reports
1 parent 63d715b commit 5aee7f7

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.circleci/config.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,10 +207,16 @@ jobs:
207207
name: Generate shard overview (human + JSON)
208208
command: |
209209
# Build overview.txt and overview.json next to manifest.json
210-
if [ -f "${CACHE_PREFIX}/manifest.json" ]; then
211-
node scripts/generate-shard-overview.js "${CACHE_PREFIX}" timings-current.json || true
210+
PARALLEL=<< pipeline.parameters.e2e_parallelism >>
211+
COMMIT_SHA=${CIRCLE_SHA1:-unknown}
212+
CACHE_PREFIX="reports/shards/cache/${COMMIT_SHA}-shards${PARALLEL}"
213+
MANIFEST_PATH="${CACHE_PREFIX}/manifest.json"
214+
echo "Looking for manifest at: $MANIFEST_PATH"
215+
if [ -f "$MANIFEST_PATH" ]; then
216+
node scripts/generate-shard-overview.js "$CACHE_PREFIX" timings-current.json || true
212217
else
213-
echo "No manifest found at ${CACHE_PREFIX}/manifest.json; skipping overview generation."
218+
echo "No manifest found at $MANIFEST_PATH; skipping overview generation."
219+
ls -la "$(dirname "$MANIFEST_PATH")" || true
214220
fi
215221
- save_cache:
216222
key: v1-shards-{{ .Environment.CIRCLE_SHA1 }}-<< pipeline.parameters.e2e_parallelism >>

0 commit comments

Comments
 (0)