(Not really sure where to report issues with Django’s Jenkins builds.)
Some Jenkins PR builds seem to be randomly failing with a “reference is not a tree” error in git checkout. Example:
> git checkout -f cc5f6d59e04c23681458424e3768d31cb0e2828f # timeout=10
hudson.plugins.git.GitException: Command "git checkout -f cc5f6d59e04c23681458424e3768d31cb0e2828f" returned status code 128:
stdout:
stderr: fatal: reference is not a tree: cc5f6d59e04c23681458424e3768d31cb0e2828f
It seems somewhat random. (That is the correct SHA for the PR commit.)
This may be a transient GitHub caching issue or something like that. But I noticed that GitHub’s actions/checkout solved a similar issue a few years back: their action “fetches a specific SHA and retries with a few delays between before failing.” If the problem continues, perhaps the Jenkins builds should adopt a similar strategy?
[FWIW, the ReadTheDocs preview hook failed with that same git error on an earlier run, which seems to confirm this is a GitHub glitch of some sort.]