Prevent pipline failing when failing to obtain the source branch name#2301
Prevent pipline failing when failing to obtain the source branch name#2301IT-VBFK wants to merge 1 commit intofluentassertions:developfrom
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 qodana-support@jetbrains.com
|
|
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 conj
8000
ecture 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
Libgit2Sharpfailed 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 spellcheckor.\build.ps1 --target spellcheckbefore pushing and check the good outcome