run-offload.sh: a commit that is not on main cannot be given by SHA ("not found on GitHub" for a pushed branch)
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 72/100
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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.
- Langage dominant
- C
- Étoiles
- 10
- Forks
- 8
- Merge moyen
- 6 h 32 min
- PR mergées (30 j)
- 1
Préparer son environnement
Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de FriendsofECCE/ECCE
-
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
FriendsofECCE/ECCE#1358 ·
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
FriendsofECCE/ECCE#1353 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
FriendsofECCE/ECCE#1348 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
FriendsofECCE/ECCE#1347 ·
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
FriendsofECCE/ECCE#1345 ·
Toutes les issues de FriendsofECCE/ECCE
Issues similaires
-
Installation fails from source: missing libintl.h on macOS, undeclared R_typeToChar() on R 4.6Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
vincentarelbundock/xtx#11 ·
-
Difficulté 1/5 1-3 heures Accessibilité débutants 88/100
-
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
compiler-explorer/compiler-explorer#9738 ·
Les mainteneurs répondent en général sous 2 jours
-
Difficulté 1/5 1-3 heures Accessibilité débutants 88/100
Les mainteneurs répondent en général sous 3 jours
-
[Android Auto] MU1017 (MHI2Q_JP_AUG22_P1017) cluster map works with a pinned profile — values insideOuverte
Difficulté 1/5 Moins d'une heure Accessibilité débutants 92/100
kamgurgul/mib2q-carplay#74 ·