-
-
Notifications
You must be signed in to change notification settings - Fork 554
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
Prevent pipline failing when failing to obtain the source branch name #2301
Prevent pipline failing when failing to obtain the source branch name #2301
Conversation
Qodana for .NETIt seems all right 👌 No new problems were found according to the checks applied 💡 Qodana analysis was run in the pull request mode: only the changed files were checked Contact Qodana teamContact us at [email protected]
|
It seems to have been fixed in GitVersion 6.0.0-beta.2. See GitTools/GitVersion#3103 |
The two builds failing for both have
So I suspect that the root cause is either only within |
Ok, but the pipeline isn't failing if |
Ah yes, the problem is in |
I'll conjecture that if I haven't understood the root cause of this problem and that's why I'm a bit weary of complicating the build script. Does it make sense to continue if |
The whole If |
That's a quite important thing 😉 We might be talking past each other. If I run
Only working when using git but guarding against not being able to retrieve git information just seems a bit paradoxical to me. |
It's just yet another safety bar ;) But: feel free to close if you disagree :) |
Are we chasing a ghost here? The builds seem to be fine right now. |
I'm positive for safety bars, but for the right reasons. If I outcomment
If we're to change anything here, how about put a very early guard on |
It seems History: |
No problem :) Just can't get around if a build is failing more or less for no reason.. |
https://github.com/fluentassertions/fluentassertions/actions/runs/6303031461/job/17111443539 And.. it happens again.. can it be, that force pushing the branch with high frequency could cause this? |
That's what I would put my money on. |
The issues in https://github.com/GitTools/GitVersion/issues?q=%22remote+tips%22 also mentions force pushing as a possible reason for |
Ref. https://github.com/fluentassertions/fluentassertions/actions/runs/6169114546/job/16805839918?pr=2296
For some reason this pipline has failed, because
Libgit2Sharp
failed to obtain the source branch name.I tried to make this a bit more robust, and running the complete pipeline in such case. (Meaning spell check + "normal" pipeline)
IMPORTANT
./build.sh --target spellcheck
or.\build.ps1 --target spellcheck
before pushing and check the good outcome