You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CI: resolve PR baseline from live base branch tip (#580)
Fix repeated centered-legend image mismatches across PRs caused by comparing against stale baseline commits from pull_request payload SHA.
Workflow changes: resolve base ref/sha at runtime from origin/<base.ref>, use that SHA for cache key and baseline checkout, and bump baseline cache namespace to v4 to invalidate stale cache entries.
# Save PR-selected nodeids for reuse after checkout (if provided)
139
155
if [ "${TEST_MODE}" = "selected" ] && [ -n "${TEST_NODEIDS}" ]; then
140
156
python -c 'import json,os; raw=os.environ.get("TEST_NODEIDS","").strip(); parsed=json.loads(raw) if raw and raw!="[]" else []; parsed=[parsed] if isinstance(parsed,str) else parsed; nodeids=[item for item in parsed if isinstance(item,str) and item]; open("/tmp/pr_selected_nodeids.txt","w",encoding="utf-8").write("".join(f"{nodeid}\n" for nodeid in nodeids)); print(f"Selected nodeids parsed: {len(nodeids)}")'
141
157
else
142
158
: > /tmp/pr_selected_nodeids.txt
143
159
fi
144
-
# Checkout the base commit for PRs; otherwise regenerate from current ref
145
-
if [ -n "${{ github.event.pull_request.base.sha }}" ]; then
0 commit comments