Unverified Commit d232b450 authored by Dmitry Tokarev's avatar Dmitry Tokarev Committed by GitHub
Browse files

fix: correct history.jsonl path for Allure 3 trend charts (#7974)


Signed-off-by: default avatarDmitry Tokarev <dtokarev@nvidia.com>
Co-authored-by: default avatarClaude Opus 4.6 (1M context) <noreply@anthropic.com>
parent 06513c9b
...@@ -131,13 +131,14 @@ jobs: ...@@ -131,13 +131,14 @@ jobs:
fi fi
done done
# Restore unified dashboard history for trend charts (or seed empty file) # Restore unified dashboard history for trend charts.
# historyPath in allurerc.mjs resolves relative to process.cwd(), not --cwd,
# so the file must be at $GITHUB_WORKSPACE/history.jsonl.
if git show "gh-pages:allure/history.jsonl" 2>/dev/null; then if git show "gh-pages:allure/history.jsonl" 2>/dev/null; then
git show "gh-pages:allure/history.jsonl" > unified-workspace/history.jsonl git show "gh-pages:allure/history.jsonl" > "${GITHUB_WORKSPACE}/history.jsonl"
echo "Restored unified dashboard history from gh-pages" echo "Restored unified dashboard history from gh-pages"
else else
echo "No previous unified dashboard history found" echo "No previous unified dashboard history found — Allure 3 will create it"
touch unified-workspace/history.jsonl
fi fi
# Generate unified dashboard using allurerc.mjs # Generate unified dashboard using allurerc.mjs
...@@ -179,9 +180,9 @@ jobs: ...@@ -179,9 +180,9 @@ jobs:
# Deploy unified dashboard (per-workflow tabs generated by allurerc.mjs plugins) # Deploy unified dashboard (per-workflow tabs generated by allurerc.mjs plugins)
mkdir -p allure mkdir -p allure
cp -r "${GITHUB_WORKSPACE}/allure-all-report/"* allure/ cp -r "${GITHUB_WORKSPACE}/allure-all-report/"* allure/
# Persist history.jsonl for trend charts # Persist history.jsonl for trend charts (written by Allure 3 at process.cwd())
if [ -f "${GITHUB_WORKSPACE}/unified-workspace/history.jsonl" ]; then if [ -f "${GITHUB_WORKSPACE}/history.jsonl" ]; then
cp "${GITHUB_WORKSPACE}/unified-workspace/history.jsonl" allure/history.jsonl cp "${GITHUB_WORKSPACE}/history.jsonl" allure/history.jsonl
fi fi
# Commit and push # Commit and push
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment