Title: Work around Cygwin CI failure #2004, except for `test_installation` by EliahKagan · Pull Request #2007 · gitpython-developers/GitPython · GitHub
Open Graph Title: Work around Cygwin CI failure #2004, except for `test_installation` by EliahKagan · Pull Request #2007 · gitpython-developers/GitPython
X Title: Work around Cygwin CI failure #2004, except for `test_installation` by EliahKagan · Pull Request #2007 · gitpython-developers/GitPython
Description: I don't have a complete fix for #2004 yet, but since it's confirmed to fail on the main branch of this upstream repository (mentioned in #1988 (comment), though not due to #1988), I figured my partial fix might be worth putting into place. With these changes, the problem in the Cygwin test job turns from being unable to run any tests to being able to run all the tests but with one new failure compared to the way it was before #2004 (i.e. with one non-xfail failure). This uses the official pip bootstrap script https://bootstrap.pypa.io/get-pip.py to install pip in the virtual environment. This allows the actual installation of GitPython and its dependencies, including all test dependencies, to complete without problems. Aside from tests that are expected to fail and are already marked xfail, all tests pass except for test_installation, which fails for the same reason. It presumably would also pass if the bootstrap script were used there too, but I believe the current intent of that test is to verify that installation succeeds when done in an ordinary way. I am likewise reluctant to mark test_installation as xfail on Cygwin, unless that turns out to be truly necessary, because none of this happens on my local Cygwin environment on a Windows 10 development machine. It seems like it is triggered by some combination of changing packages and something wrong or otherwise specific about the Cygwin workflow. This PR includes some changes to the workflow that are not actually necessary for the workaround it confers. The changes that are needed are: Refraining from having venv automatically attempt to install pip. Installing pip in the virtual environment explicitly using the bootstrap script. Installing the wget Cygwin package to download the bootstrap script without extra complexity or risking encoding/line-ending mismatches. All the rest is to make the workflow run a little faster, and maybe be slightly more robust in ways that are not relevant to #2004 and not very important. The most significant of them is switching back to the Cygwin installation action we had previously been using, which is less configurable (it does not support installing Cygwin packages at specific versions, which we had needed to do at one time), but which is faster because it does not first have to install Chocolatey to use it as an intermediary for installing Cygwin. I kept those changes here because I think it's easier to iterate on this if it is left in. But if you'd like I'd be pleased to undo the nonessential changes, which can always be brought back later and separately. I have tested in 7fd5f15 to make sure that this really works, so undoing those changes could be as simple as adding that one commit.
Open Graph Description: I don't have a complete fix for #2004 yet, but since it's confirmed to fail on the main branch of this upstream repository (mentioned in #1988 (comment), though not due to #1988), I figured...
X Description: I don't have a complete fix for #2004 yet, but since it's confirmed to fail on the main branch of this upstream repository (mentioned in #1988 (comment), though not due to #1988), I...
Opengraph URL: https://github.com/gitpython-developers/GitPython/pull/2007
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:334a5b7b-7ad3-88f2-b23e-271ad8c57911 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 89A0:1C1935:5CC8C4:828190:6968CBA6 |
| html-safe-nonce | b0712af24586b90be55f0d838a5af879565f16a091f3d39f05e186d9c0d2ad94 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OUEwOjFDMTkzNTo1Q0M4QzQ6ODI4MTkwOjY5NjhDQkE2IiwidmlzaXRvcl9pZCI6IjMwNzg3NjUyODY5MTU2MjM4NDYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 90ddada1ed12cad59b0df2bd99d37e5e186eb7fdb3252ceaae495936edc7ab0d |
| hovercard-subject-tag | pull_request:2355792713 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/gitpython-developers/GitPython/pull/2007/files |
| twitter:image | https://avatars.githubusercontent.com/u/1771172?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1771172?s=400&v=4 |
| og:image:alt | I don't have a complete fix for #2004 yet, but since it's confirmed to fail on the main branch of this upstream repository (mentioned in #1988 (comment), though not due to #1988), I figured... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | af2d7af0cc84117fa10bf36808605ef68a335c9d8a804b9cdac55f8d77230b00 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/gitpython-developers/GitPython git https://github.com/gitpython-developers/GitPython.git |
| octolytics-dimension-user_id | 503709 |
| octolytics-dimension-user_login | gitpython-developers |
| octolytics-dimension-repository_id | 1126087 |
| octolytics-dimension-repository_nwo | gitpython-developers/GitPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1126087 |
| octolytics-dimension-repository_network_root_nwo | gitpython-developers/GitPython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | cc844ab6ee0198cc2e2c142dcb8a5c2a61d48743 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width