CakeML / regression

Regression testing infrastructure for CakeML
https://cakeml.org/regression.cgi
GNU General Public License v3.0
3 stars 8 forks source link

Attempt to avoid nasty name clash between branches #30

Closed hrutvik closed 4 months ago

hrutvik commented 4 months ago

Regression workers attempt to fetch up-to-date references from the CakeML remote to update their local repos:

Normal branches are named as in the remote, but pull requests are renamed to pr/<pr_number> locally. This causes a name clash when there is a normal branch which already has the name pr/<pr_number>, producing errors like the following:

fatal: Cannot fetch both refs/heads/pr/991 and refs/pull/991/head to refs/heads/pr/991
/usr/bin/git failed on fetch --prune origin +refs/heads/*:refs/heads/* +refs/pull/*/head:refs/heads/pr/*

This PR attempts to improve the situation by avoiding the renaming. So the pull request branches are now named refs/pull/<pr_number>/head.

Two things to note: