Set Git configuration to default during tests ~~Disable GPG signing tags during tests~~#13727
Conversation
|
I think your fix is fine, but perhaps a better fix would be to disable the global config in git locally. We want the tests to act the same irregardless of a users global configuration. Something like: might be enough. |
|
Thanks for the report @Durbatuluk1701. I agree with @Alizter's assessment; we should probably make sure that the |
… setup Signed-off-by: Will Thomas <30wthomas@gmail.com>
1564c80 to
78e0f44
Compare
|
Thank you for the feedback, definitely a much better approach. I did some extra research and it revealed the |
|
FTR we don't currently run the test on Windows (mingw) but this may change in the future. It is of course the job of the maintainers in the future to consider such changes. Thank you for the patch! |
|
@Durbatuluk1701 Just to quickly check, does this resolve the issue you were having with the test on your end, we won't be able to see it in the CI. |
Yes it does, thank you! |
When running the tests on a clean
mainbranch, I ran into some issues related to lightweightgit tagcommands. In particular, because I havetag.gpgSignset globally, it always expects a message and breaks the tests.For example:
dune/test/blackbox-tests/test-cases/pkg/opam-repository-download.t
Line 161 in 8692870
Would try to open my
git.config.core.editorand break the rest of the test:Not sure if this is a problem that I should just be solving locally, but the change is relatively minimal so I thought I'd open this and at least it can be documented for those who might encounter it in the future.