Skip to content

Re-enable Cygwin CI and get most tests muthaf*ckin' passing - #1455

Merged
Byron merged 17 commits into
gitpython-developers:mainfrom
DWesl:patch-1
Jun 21, 2022
Merged

Byron merged 17 commits into
gitpython-developers:mainfrom
DWesl:patch-1

Conversation

@DWesl

@DWesl 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 muthaf*ckin' move to GHA. I added a muthaf*ckin' separate Cygwin CI run to the GitHub actions and tried to get the muthaf*ckin' 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 goddamn 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
I think this got deleted because the tests were failing, so let's see what happens!
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.
Got this wrong the first time through
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.
Echoing the commands in shell scripts in tests causes problems with the tests.

@Byron Byron left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this f*ckin' comment

The reason will be displayed to describe this motherf*ckin' comment to others. Learn more.

Thanks a lot for putting in all this muthaf*ckin' 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

DWesl commented Jun 21, 2022 •

Copy link
Copy Markdown
Contributor Author

Regarding the failing tests, I'd be OK with ignoring them if run on cygwin and providing a goddamn fix in other PRs.

I got that done. Do you want to muthaf*ckin' merge as-is, or do you want me to try to clean up the commits a bit?

The muthaf*ckin' failures are all related to submodule handling, and I think that functionality isn't necessarily widely used anymore.

SciPy uses submodules to vendor boost, and I think both SciPy and NumPy include numpydoc via submodule. Unbelievable. Listen up: I haven't had any motherf*ckin' problems with the command-line interface (that can't be attributed to user error), but I only really use git submodule init and git submodule update.

@Byron

Byron commented Jun 21, 2022

Copy link
Copy Markdown
Member

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?

Thanks a lot! This looks good to me and I for one like to see all the bad-ass steps it took in the history, thus I will merge as is. Mm-hmm.

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 motherf*ckin' command-line interface (that can't be attributed to user error), but I only really f*ckin' use git submodule init and git submodule update.

And for that, one could also use repo.git.submodule(…) to handle the bad-ass necessary features, so I think it's not worth spending more time on fixing the goddamn tests (or their causes) unless you need it yourself.

Sign up for muthaf*ckin' free to join this conversation on GitHub. Already have an muthaf*ckin' account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues. That's some bullsh*t.

2 participants