Skip to content

benchmark-pr: stop the results commit from reverting a PR's deletions - #1438

Open
nigrosimone wants to merge 2 commits into
MDA2AV:mainfrom
nigrosimone:fulmine-ghost-row
Open

benchmark-pr: stop the results commit from reverting a PR's deletions#1438
nigrosimone wants to merge 2 commits into
MDA2AV:mainfrom
nigrosimone:fulmine-ghost-row

Conversation

@nigrosimone

Copy link
Copy Markdown
Contributor

git checkout origin/main -- site/data/ stages main's copy of every file under it, and the cp -r that puts the PR's files back does not delete, so a file the PR removed is still in the index when the results are committed.

That is what happened to #1434: it deleted site/data/results/fulmine.js-tuned.json and the results commit fdd0e63 put it back. The board still ranks a fulmine.js-tuned row for an entry that no longer exists, because rows come from results/*.json and a name frameworks.json does not carry falls back to emerging instead of being dropped.

The step now reads main's site/data into /tmp with git archive and never touches the working tree. The layout is the same one cp -r site/data produced, so the comparison step is unchanged. The second commit deletes the file again; data.js is not committed here because the deploy regenerates it.

Fixes #1436.

@nigrosimone
nigrosimone marked this pull request as ready for review September 4, 2026 04:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

benchmark-pr.yml reverts PR deletions under site/data/

1 participant