run-offload.sh: a commit that is not on main cannot be given by SHA ("not found on GitHub" for a pushed branch)
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 72/100
Línea de trabajo
Start with the ref resolution and fetch case in tools/offload/remote-run.sh, especially lines 48–53. Reproduce the failure with a pushed commit on a non-main branch and a bare SHA, then check how branch refs and missing refs are reported. Done means the SHA resolves when reachable from a pushed branch, with a useful error when it cannot be fetched.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
tools/offload/remote-run.sh resolves the ref by fetching, then git rev-parse origin/$ref || git rev-parse $ref. The fetch case list (line 49-53) sends a bare hex SHA down the *) arm, which runs git fetch --depth 50 origin <sha>. GitHub refuses a fetch by object id (uploadpack.allowReachableSHA1InWant is off), so nothing is fetched and the rev-parse fails with
FAIL: ref e0e25622b not found on GitHub (push it first)
even though the commit is pushed and git ls-remote shows it as a branch tip.
It only works today for a SHA that happens to be reachable from main, because line 48 always fetches main; that is why a SHA on main looks fine and a SHA on a wip/* branch does not.
The message is the worst part: it tells you to do the one thing you have already done, so the natural response is to push again and re-queue, which fails the same way. Two queued jobs were lost to this today before the cause was found.
Suggested fix: when the ref is a bare SHA that rev-parse cannot resolve after the fetch, fetch the branches that contain it (or simply git fetch --depth 50 origin '+refs/heads/*:refs/remotes/origin/*' as a fallback) before failing; and make the failure say whether the ref was not found at all or found but not fetchable by id.
Workaround: pass the branch name (wip/rundir-default) instead of the SHA.
- Lenguaje dominante
- C
- Estrellas
- 10
- Forks
- 8
- Merge medio
- 6 h 32 min
- PR fusionados (30 d)
- 1
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de FriendsofECCE/ECCE
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
FriendsofECCE/ECCE#1358 ·
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
FriendsofECCE/ECCE#1353 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
FriendsofECCE/ECCE#1348 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
FriendsofECCE/ECCE#1347 ·
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
FriendsofECCE/ECCE#1345 ·
Todos los issues de FriendsofECCE/ECCE
Issues similares
-
Installation fails from source: missing libintl.h on macOS, undeclared R_typeToChar() on R 4.6Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
vincentarelbundock/xtx#11 ·
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 88/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
compiler-explorer/compiler-explorer#9738 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 3 días
-
[Android Auto] MU1017 (MHI2Q_JP_AUG22_P1017) cluster map works with a pinned profile — values insideAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 92/100
kamgurgul/mib2q-carplay#74 ·