Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Azure CI jobs sometimes fail with "fatal: couldn't find remote ref" #2346

Open
traversaro opened this issue Oct 29, 2024 · 15 comments
Open

Azure CI jobs sometimes fail with "fatal: couldn't find remote ref" #2346

traversaro opened this issue Oct 29, 2024 · 15 comments

Comments

@traversaro
Copy link
Contributor

In the last weeks, I have noticed a few cases in which some PR jobs start failing with errors like:

==============================================================================
Syncing repository: conda-forge/idyntree-feedstock (GitHub)
git version
git version 2.47.0
git lfs version
git-lfs/3.5.1 (GitHub; linux amd64; go 1.21.8)
git init "/home/vsts/work/1/s"
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
Initialized empty Git repository in /home/vsts/work/1/s/.git/
git remote add origin https://github.com/conda-forge/idyntree-feedstock
git config gc.auto 0
git config core.longpaths true
git config --get-all http.https://github.com/conda-forge/idyntree-feedstock.extraheader
git config --get-all http.extraheader
git config --get-regexp .*extraheader
git config --get-all http.proxy
git config http.version HTTP/1.1
git --config-env=http.extraheader=env_var_http.extraheader fetch --force --tags --prune --prune-tags --progress --no-recurse-submodules origin   +refs/heads/*:refs/remotes/origin/* +refs/pull/112/merge:refs/remotes/pull/112/merge
fatal: couldn't find remote ref refs/pull/112/merge
##[warning]Git fetch failed with exit code 128, back off 2.266 seconds before retry.
git --config-env=http.extraheader=env_var_http.extraheader fetch --force --tags --prune --prune-tags --progress --no-recurse-submodules origin   +refs/heads/*:refs/remotes/origin/* +refs/pull/112/merge:refs/remotes/pull/112/merge
fatal: couldn't find remote ref refs/pull/112/merge
##[warning]Git fetch failed with exit code 128, back off 8.175 seconds before retry.
git --config-env=http.extraheader=env_var_http.extraheader fetch --force --tags --prune --prune-tags --progress --no-recurse-submodules origin   +refs/heads/*:refs/remotes/origin/* +refs/pull/112/merge:refs/remotes/pull/112/merge
fatal: couldn't find remote ref refs/pull/112/merge
##[error]Git fetch failed with exit code: 128
Finishing: Checkout conda-forge/idyntree-feedstock@refs/pull/112/merge to s

See conda-forge/idyntree-feedstock#112 . In most cases to solve the problem restarting the CI was not effective, while making the bot open a new PR was effective. I am not sure what is causing this or if this is the right place to report the issue, but I prefer to have at least an open issue on this so that I have someting to cross-link whenever this happens.

@traversaro
Copy link
Contributor Author

In most cases to solve the problem restarting the CI was not effective, while making the bot open a new PR was effective.

Also pushing new commits seems effective to fix the problem.

@traversaro
Copy link
Contributor Author

fyi @Tobias-Fischer

@beckermr
Copy link
Member

please see conda-forge/status#188

I am guessing this is a duplicate of that one.

@traversaro
Copy link
Contributor Author

traversaro commented Oct 29, 2024

please see conda-forge/status#188

I am guessing this is a duplicate of that one.

I am not sure. This problem predates that one (as you can see in conda-forge/qdax-feedstock#8), and also the high level error is different: in one case the Azure CI jobs did not start, in this one it starts and it fails after a few seconds. However they may definitely be connected. If this does not occur anymore in a few days, I think we can close it.

@mfansler
Copy link
Member

Can you try an empty commit? Close-reopen has been insufficient on all my tries, but I saw a staged-recipes PR clear up after a merge from main. I'm still waiting to see if my bot-reruns resolve it for some bot version bump PRs.

@mfansler
Copy link
Member

@danielnachun and I were also seeing this since at least Friday.

@traversaro
Copy link
Contributor Author

Can you try an empty commit? Close-reopen has been insufficient on all my tries, but I saw a staged-recipes PR clear up after a merge from main. I'm still waiting to see if my bot-reruns resolve it for some bot version bump PRs.

I tried a non-empty commit, and it fixed the problem.

@Tobias-Fischer
Copy link

I’ve tried non empty commits (rerender for example) and that didn’t resolve the issue in my case

@traversaro
Copy link
Contributor Author

I’ve tried non empty commits (rerender for example) and that didn’t resolve the issue in my case

I vaguely recalled that, but I had no reference so I was not sure. In my case, the non-empty commit was done by me today (not a bot) and it worked. Not sure if the difference was the committer or simply that the problem today is different from a few days ago.

@traversaro
Copy link
Contributor Author

Another instance: conda-forge/smirnoff-plugins-feedstock#11 .

@mattwthompson
Copy link
Member

Yeah I was running into this earlier today, but an empty commit seemed to do this trick when re-opening the PR didn't. I didn't look into it any more closely than that.

@mattwthompson
Copy link
Member

Getting this again today. No clue why.

mattwthompson added a commit to mattwthompson/openff-interchange-feedstock that referenced this issue Nov 4, 2024
@mattwthompson
Copy link
Member

Empty commit seems to work again. Still confusing and a little frustrating

mattwthompson added a commit to mattwthompson/openff-interchange-feedstock that referenced this issue Nov 4, 2024
Update SHA hash

Use release

MNT: Re-rendered with conda-build 24.9.0, conda-smithy 3.43.2, and conda-forge-pinning 2024.11.04.11.32.56

Empty commit

conda-forge/conda-forge.github.io#2346

Add Pydantic v2 check in test script

Fix lint

Fix
@jakirkham
Copy link
Member

Are we still seeing this issue? If so, can you please share links to any recent examples?

Thanks in advance! 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

6 participants