Re-enable Cygwin CI and get most tests passing by DWesl · Pull Request #1455 · gitpython-developers/GitPython
Repository navigation
Re-enable Cygwin CI and get most tests passing - #1455
Merged
Byron merged 17 commits into gitpython-developers:main from DWesl:patch-1 Jun 21, 2022
Merged
Re-enable Cygwin CI and get most tests passing #1455 Byron merged 17 commits into gitpython-developers:main from DWesl:patch-1
Conversation
DWesl commented Jun 11, 2022
Copy link Copy Markdown
Contributor
It looks like the Cygwin CI testing was disabled a while back, possibly as part of the move to GHA. I added a separate Cygwin CI run to the GitHub actions and tried to get the tests passing. I have three test failures left that I don't understand, and hope someone here knows what's going on.
I can move the test to a separate step in the existing GHA workflow if that would work better in this project, or move it to a separate PR to wait for the last three tests to pass while the other fixes go in.
DWesl added 12 commits June 10, 2022 17:52
BUG: Fix is_cygwin_git to return True on Cygwin.
96fae83
CI: Add a CI job with Cygwin tests
a67862c
I think this got deleted because the tests were failing, so let's see what happens!
ENH: Update cygpath recodes to work with all installs
3fc07ac
People can change the `/cygdrive` prefix for mounting Windows drives; `/` and `/mnt` are both popular. `/proc/cygdrive` is always going to have the drive letters under it.
CI: Mark GHA repo safe for Git to use
d8ad56f
CI: Specify full path to python executables.
f96cea1
FIX: Fix flake8 command line
d57a513
Got this wrong the first time through
BUG: Convert to native path before checking if absolute
5d874dd
STY: Remove import of now-unused function
21113a8
CI: Set temporary directory for tests.
863c678
Hopefully this avoids the mismatched directories with saving into a user temporary directory with one user name and reading from a user temporary directory with a different user name.
CI: Install virtualenv for Cygwin CI.
f990852
BUG: Use Cygwin paths for Cygwin git
9be148c
CI: Turn of command echo for tests
aafb92a
Echoing the commands in shell scripts in tests causes problems with the tests.Byron requested changes Jun 12, 2022
View reviewed changes
Byron left a comment
Copy link Copy Markdown
Member
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more .
Thanks a lot for putting in all this work and make GitPython work on cygwin once again.
Regarding the failing tests, I'd be OK with ignoring them if run on cygwin and providing a fix in other PRs. The failures are all related to submodule handling, and I think that functionality isn't necessarily widely used anymore.
DWesl added 4 commits June 20, 2022 20:39
TST: Mark test_docs.Tutorials.test_submodules as xfail on Cygwin
54bae76
TST: Mark test_repo.TestRepo.test_submodules as xfail on Cygwin
0eda0a5
TST: Mark test_submodule.TestSubmodule.test_root_module as xfail on C...
7f3689d
...ygwin
FIX: Import pytest in tests.test_docs
c3fd6c1
DWesl
mentioned this pull request
Jun 21, 2022
BUG: Fix is_cygwin_git to return True on Cygwin.
DWesl/GitPython#1
Closed
FIX: Mark the correct test_submodule test as xfail on Cygwin
2996f40
Got the wrong one the first time.DWesl mentioned this pull request Jun 21, 2022 CI: Run tests in Cygwin for Cygwin CI mesonbuild/meson-python#78 Closed
DWesl commented Jun 21, 2022 · edited Loading
Copy link Copy Markdown
Contributor
Author
I got that done. Do you want to merge as-is, or do you want me to try to clean up the commits a bit?
SciPy uses submodules to vendor boost, and I think both SciPy and NumPy include numpydoc via submodule. I haven't had any problems with the command-line interface (that can't be attributed to user error), but I only really use |
Byron commented Jun 21, 2022
Copy link Copy Markdown
Member
Thanks a lot! This looks good to me and I for one like to see all the steps it took in the history, thus I will merge as is.
And for that, one could also use |
f0c6e11
into
gitpython-developers : main
Jun 21, 2022
DWesl
deleted the
patch-1
branch
August 4, 2022 21:40
This was referenced May 28, 2025
use sys.platform == "cygwin" to figure out when we are using cygwin
#2027
Closed
correctly handle uname-cmd that doesn't point to an executable file
#2026
Merged
EliahKagan
mentioned this pull request
May 18, 2026
Run more submodule tests on Cygwin (fix flaky xfails)
#2154
Merged
Sign up for free
to join this conversation on GitHub .
Already have an account?
Sign in to comment