"docs/vscode:/vscode.git/clone" did not exist on "6dba119d7a40e32e3c36c8dcf373fdc2a0e7ed77"
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:
fi
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
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"
else
echo "No previous unified dashboard history found"
touch unified-workspace/history.jsonl
echo "No previous unified dashboard history found — Allure 3 will create it"
fi
# Generate unified dashboard using allurerc.mjs
......@@ -179,9 +180,9 @@ jobs:
# Deploy unified dashboard (per-workflow tabs generated by allurerc.mjs plugins)
mkdir -p allure
cp -r "${GITHUB_WORKSPACE}/allure-all-report/"* allure/
# Persist history.jsonl for trend charts
if [ -f "${GITHUB_WORKSPACE}/unified-workspace/history.jsonl" ]; then
cp "${GITHUB_WORKSPACE}/unified-workspace/history.jsonl" allure/history.jsonl
# Persist history.jsonl for trend charts (written by Allure 3 at process.cwd())
if [ -f "${GITHUB_WORKSPACE}/history.jsonl" ]; then
cp "${GITHUB_WORKSPACE}/history.jsonl" allure/history.jsonl
fi
# 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