René's URL Explorer Experiment


Title: Fix various version-related CI breakages by EliahKagan · Pull Request #1987 · gitpython-developers/GitPython · GitHub

Open Graph Title: Fix various version-related CI breakages by EliahKagan · Pull Request #1987 · gitpython-developers/GitPython

X Title: Fix various version-related CI breakages by EliahKagan · Pull Request #1987 · gitpython-developers/GitPython

Description: This applies the fixes to GitPython that correspond to gitpython-developers/smmap#58, as well as other fixes which were along the lines of the prediction in e51bf80#commitcomment-150862474. Taken together, this fixes CI for GitPython. The Cygwin and Alpine Linux failures were due to not using a virtual environment. In Cygwin, I had deliberately not done that, since we're not doing it the other non-container workflows, and I wanted the Cygwin workflow to be similar, with the hope that its job might even one day become a matrix job in pythonpackage.yml. But there had already been signs, accumulating over time, that this was not the way to go, such as the extra step to make sure there would be a pip command in the global environment. Ultimately, what not using a venv broke was pytest-cov, which didn't have a dependency it needed, even after all dependencies appeared to install okay. Using a venv fixed that automatically. In Alpine Linux, I was deliberately using a virtual environment, since python in Alpine Linux discourages using pip to install packages in the global environment managed by the system, which by default is automatically rejected, and which would not necessarily work well even if forced to happen. However, at some point, the virtual environment stopped actually being activated. This causes that error, which had previously only occurred in this workflow while it was originally being developled, to return. I am not clear on specifically why this happened, but I think it is due to the interaction between: The environment variables that are documented to be set when a venv is activated. Subtle distinctions between activating a venv in the usual way and setting those variables (maybe). How setting variables for steps via GITHUB_ENV composes with sudo passthrough. Of those, the third is the most significant: sudo is being used as the shell for most steps in this job, in order to run code as a non-root user (since some tests do not work when run as root and are not, if I recall correctly, intended to). But it was not configured to pass through variables related to Python virtual environments. I'm not sure what changed, exactly, but in hindsight I don't think I could ever have proved that it was supposed to work as I intended, when implemented the way I had. The fix here is slightly ugly in that it explicitly activates the venv in each of the steps that are supposed to use it, but I believe this is more simple and robust than alternatives I considered. As for the other, unrelated Alpine problem in WSL, where the image didn't downloading, upgrading the setup-wsl action fixed it. (To do this, I cherry-picked a commit from the Dependabot PR that had proposed it.) See commit messages for full details on each of the changes themselves.

Open Graph Description: This applies the fixes to GitPython that correspond to gitpython-developers/smmap#58, as well as other fixes which were along the lines of the prediction in e51bf80#commitcomment-150862474. Taken t...

X Description: This applies the fixes to GitPython that correspond to gitpython-developers/smmap#58, as well as other fixes which were along the lines of the prediction in e51bf80#commitcomment-150862474. Taken t...

Opengraph URL: https://github.com/gitpython-developers/GitPython/pull/1987

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/checks(.:format)
route-controllerpull_requests
route-actionchecks
fetch-noncev2:b2a78d6d-a411-0861-80d7-0e9a7f45dc2f
current-catalog-service-hash87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a
request-idCDE4:121DAE:164F4E:1E2468:69696563
html-safe-nonce555dfb400e6e67845ddd5c636dca31c0b3441a09f00870b4d7833e6daa43d92d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDREU0OjEyMURBRToxNjRGNEU6MUUyNDY4OjY5Njk2NTYzIiwidmlzaXRvcl9pZCI6IjY5ODMwNzIxOTc0NDE1NzgzMzkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacd01877841e8c122d38bda09c48bb707f7507f95e97e13a5dad1000fd8531afe9
hovercard-subject-tagpull_request:2257775349
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/checks
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/gitpython-developers/GitPython/pull/1987/checks
twitter:imagehttps://avatars.githubusercontent.com/u/1771172?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/1771172?s=400&v=4
og:image:altThis applies the fixes to GitPython that correspond to gitpython-developers/smmap#58, as well as other fixes which were along the lines of the prediction in e51bf80#commitcomment-150862474. Taken t...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None48487c1ad776a7975b7132d95f4240ff3ae37cd5b8e3cb597102a4edb76738f1
turbo-cache-controlno-cache
go-importgithub.com/gitpython-developers/GitPython git https://github.com/gitpython-developers/GitPython.git
octolytics-dimension-user_id503709
octolytics-dimension-user_logingitpython-developers
octolytics-dimension-repository_id1126087
octolytics-dimension-repository_nwogitpython-developers/GitPython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1126087
octolytics-dimension-repository_network_root_nwogitpython-developers/GitPython
turbo-body-classeslogged-out env-production page-responsive full-width full-width-p-0
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release669463fcc54773a88c1f5a44eef6b99a5504b9c7
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/gitpython-developers/GitPython/pull/1987/checks#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgitpython-developers%2FGitPython%2Fpull%2F1987%2Fchecks
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgitpython-developers%2FGitPython%2Fpull%2F1987%2Fchecks
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Fchecks&source=header-repo&source_repo=gitpython-developers%2FGitPython
Reloadhttps://github.com/gitpython-developers/GitPython/pull/1987/checks
Reloadhttps://github.com/gitpython-developers/GitPython/pull/1987/checks
Reloadhttps://github.com/gitpython-developers/GitPython/pull/1987/checks
gitpython-developers https://github.com/gitpython-developers
GitPythonhttps://github.com/gitpython-developers/GitPython
Please reload this pagehttps://github.com/gitpython-developers/GitPython/pull/1987/checks
Notifications https://github.com/login?return_to=%2Fgitpython-developers%2FGitPython
Fork 964 https://github.com/login?return_to=%2Fgitpython-developers%2FGitPython
Star 5k https://github.com/login?return_to=%2Fgitpython-developers%2FGitPython
Code https://github.com/gitpython-developers/GitPython
Issues 169 https://github.com/gitpython-developers/GitPython/issues
Pull requests 8 https://github.com/gitpython-developers/GitPython/pulls
Discussions https://github.com/gitpython-developers/GitPython/discussions
Actions https://github.com/gitpython-developers/GitPython/actions
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/gitpython-developers/GitPython/security
Please reload this pagehttps://github.com/gitpython-developers/GitPython/pull/1987/checks
Insights https://github.com/gitpython-developers/GitPython/pulse
Code https://github.com/gitpython-developers/GitPython
Issues https://github.com/gitpython-developers/GitPython/issues
Pull requests https://github.com/gitpython-developers/GitPython/pulls
Discussions https://github.com/gitpython-developers/GitPython/discussions
Actions https://github.com/gitpython-developers/GitPython/actions
Security https://github.com/gitpython-developers/GitPython/security
Insights https://github.com/gitpython-developers/GitPython/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fgitpython-developers%2FGitPython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fgitpython-developers%2FGitPython%2Fissues%2Fnew%2Fchoose
Byronhttps://github.com/Byron
gitpython-developers:mainhttps://github.com/gitpython-developers/GitPython/tree/main
EliahKagan:versionshttps://github.com/EliahKagan/GitPython/tree/versions
Conversation 2 https://github.com/gitpython-developers/GitPython/pull/1987
Commits 7 https://github.com/gitpython-developers/GitPython/pull/1987/commits
Checks 22 https://github.com/gitpython-developers/GitPython/pull/1987/checks
Files changed 4 https://github.com/gitpython-developers/GitPython/pull/1987/files
Please reload this pagehttps://github.com/gitpython-developers/GitPython/pull/1987/checks
Sign in for the full log viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgitpython-developers%2FGitPython%2Fpull%2F1987%2Fchecks
Fix various version-related CI breakages https://github.com/gitpython-developers/GitPython/pull/1987/checks#top
Please reload this pagehttps://github.com/gitpython-developers/GitPython/pull/1987/checks
test-cygwin on: pull_request https://github.com/gitpython-developers/GitPython/actions/runs/12582056998
build https://github.com/gitpython-developers/GitPython/actions/runs/12582056998/job/35066994758?pr=1987
Lint on: pull_request https://github.com/gitpython-developers/GitPython/actions/runs/12582057000
lint https://github.com/gitpython-developers/GitPython/actions/runs/12582057000/job/35066994619?pr=1987
test-alpine on: pull_request https://github.com/gitpython-developers/GitPython/actions/runs/12582057001
build https://github.com/gitpython-developers/GitPython/actions/runs/12582057001/job/35066994621?pr=1987
CodeQL on: pull_request https://github.com/gitpython-developers/GitPython/actions/runs/12582057005
Analyze (python) https://github.com/gitpython-developers/GitPython/actions/runs/12582057005/job/35066994675?pr=1987
Python package on: pull_request https://github.com/gitpython-developers/GitPython/actions/runs/12582057016
build (ubuntu-latest, 3.8) https://github.com/gitpython-developers/GitPython/actions/runs/12582057016/job/35066994625?pr=1987
build (ubuntu-latest, 3.9) https://github.com/gitpython-developers/GitPython/actions/runs/12582057016/job/35066995075?pr=1987
build (ubuntu-latest, 3.10) https://github.com/gitpython-developers/GitPython/actions/runs/12582057016/job/35066995245?pr=1987
build (ubuntu-latest, 3.11) https://github.com/gitpython-developers/GitPython/actions/runs/12582057016/job/35066995406?pr=1987
build (ubuntu-latest, 3.12) https://github.com/gitpython-developers/GitPython/actions/runs/12582057016/job/35066995641?pr=1987
build (macos-latest, 3.8) https://github.com/gitpython-developers/GitPython/actions/runs/12582057016/job/35066995846?pr=1987
build (macos-latest, 3.9) https://github.com/gitpython-developers/GitPython/actions/runs/12582057016/job/35066996100?pr=1987
build (macos-latest, 3.10) https://github.com/gitpython-developers/GitPython/actions/runs/12582057016/job/35066996322?pr=1987
build (macos-latest, 3.11) https://github.com/gitpython-developers/GitPython/actions/runs/12582057016/job/35066996495?pr=1987
build (macos-latest, 3.12) https://github.com/gitpython-developers/GitPython/actions/runs/12582057016/job/35066996663?pr=1987
build (windows-latest, 3.8) https://github.com/gitpython-developers/GitPython/actions/runs/12582057016/job/35066996843?pr=1987
build (windows-latest, 3.9) https://github.com/gitpython-developers/GitPython/actions/runs/12582057016/job/35066997103?pr=1987
build (windows-latest, 3.10) https://github.com/gitpython-developers/GitPython/actions/runs/12582057016/job/35066997416?pr=1987
build (windows-latest, 3.11) https://github.com/gitpython-developers/GitPython/actions/runs/12582057016/job/35066997596?pr=1987
build (windows-latest, 3.12) https://github.com/gitpython-developers/GitPython/actions/runs/12582057016/job/35066997765?pr=1987
build (ubuntu-22.04, 3.7, false) https://github.com/gitpython-developers/GitPython/actions/runs/12582057016/job/35066997962?pr=1987
build (windows-latest, 3.7, false) https://github.com/gitpython-developers/GitPython/actions/runs/12582057016/job/35066998149?pr=1987
CodeQL https://github.com/gitpython-developers/GitPython/pull/1987/checks?check_run_id=35067020800
https://github.com/gitpython-developers/GitPython/pull/1987/checks#annotation:26:15
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.