Skip to content

Commit fe2c554

Browse files
committed
ci: preserve the canonical root when replaying browser reports
1 parent e35e478 commit fe2c554

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

‎.github/workflows/build.yml‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,13 +269,16 @@ jobs:
269269

270270
# Re-emit a single HTML report from the merged blobs (no tests are run).
271271
# Blob source paths use the producer containers' /__w checkout location.
272-
# Preserve those paths for source snippets and stack traces on the host.
272+
# Vitest also derives result IDs from the canonical root, so a forward
273+
# symlink alone loses its success/failure lookup. Move the disposable
274+
# checkout and leave a backlink for artifact actions using GITHUB_WORKSPACE.
273275
- name: Map container report paths
274276
run: |
275277
repo_name="${GITHUB_REPOSITORY#*/}"
276278
container_root="/__w/$repo_name/$repo_name"
277279
sudo mkdir -p "$(dirname "$container_root")"
278-
sudo ln -s "$GITHUB_WORKSPACE" "$container_root"
280+
sudo mv "$GITHUB_WORKSPACE" "$container_root"
281+
sudo ln -s "$container_root" "$GITHUB_WORKSPACE"
279282
280283
- name: Merge into HTML report
281284
run: vp test -c vite.config.browser.ts --mergeReports=blob-report --reporter=html

0 commit comments

Comments
 (0)