Skip to content

Conversation

@webknjaz
Copy link
Member

@webknjaz webknjaz commented Feb 14, 2025

❓ What kind of change does this PR introduce?

  • 🐞 bug fix
  • 🐣 feature
  • πŸ“‹ docs update
  • πŸ“‹ tests/coverage improvement
  • πŸ“‹ refactoring
  • πŸ’₯ other

πŸ“‹ What is the related issue number (starting with #)

N/A

❓ What is the current behavior? (You can also link to an open issue here)

Cache in actions/setup-python is buggy on Windows.

❓ What is the new behavior (if this is a feature change)?

This attempts to work around the problem by managing it manually through in-tree composite actions.

πŸ“‹ Other information:

Ref: actions/setup-python#1034

πŸ“‹ Contribution checklist:

(If you're a first-timer, check out
this guide on making great pull requests)

  • I wrote descriptive pull request text above
  • I think the code is well written
  • I wrote good commit messages
  • I have squashed related commits together after
    the changes have been approved
  • Unit tests for the changes exist
  • Integration tests for the changes exist (if applicable)
  • I used the same coding conventions as the rest of the project
  • The new code doesn't generate linter offenses
  • Documentation reflects the changes
  • The PR relates to only one subject with a clear title
    and description in grammatically correct, complete sentences

This change is Reviewable

@webknjaz webknjaz self-assigned this Feb 14, 2025
@webknjaz webknjaz force-pushed the maintenance/in-house-pip-deps-gha-cache-control branch 6 times, most recently from 86e80f3 to 1b675f4 Compare February 15, 2025 01:10
The upstream `actions/setup-python` has rudimentary support for cache
management but it's rather limited. It also has bugs in caching [[1]].

Having own reusable cache computation bit gives us better level of
control, letting us make cache depend on specific Python runtime
features.

[1]: actions/setup-python#1034
@webknjaz webknjaz force-pushed the maintenance/in-house-pip-deps-gha-cache-control branch from 1b675f4 to a299b23 Compare February 15, 2025 01:56
@webknjaz webknjaz merged commit 792ab88 into cherrypy:main Feb 15, 2025
22 of 28 checks passed
webknjaz added a commit to webknjaz/ansible--awx-plugins that referenced this pull request Feb 26, 2025
This action generalizes a piece of code for ABI-sensitive cache
management that we were copying around. It also handles corner cases
better than `actions/setup-python`.

Refs:
* https://github.com/marketplace/actions/cache-python-deps
* https://github.com/re-actors/cache-python-deps
* aio-libs/frozenlist#622
* aio-libs/frozenlist#633
* actions/setup-python#1034
* cherrypy/cheroot#739
webknjaz added a commit to sphinx-contrib/sphinxcontrib-towncrier that referenced this pull request Feb 27, 2025
This action generalizes a piece of code for ABI-sensitive cache
management that we were copying around. It also handles corner cases
better than `actions/setup-python`.

Refs:
* https://github.com/marketplace/actions/cache-python-deps
* https://github.com/re-actors/cache-python-deps
* aio-libs/frozenlist#622
* aio-libs/frozenlist#633
* actions/setup-python#1034
* cherrypy/cheroot#739
webknjaz added a commit to ansible/awx_plugins.interfaces that referenced this pull request Mar 4, 2025
This action generalizes a piece of code for ABI-sensitive cache
management that we were copying around. It also handles corner cases
better than `actions/setup-python`.

Refs:
* https://github.com/marketplace/actions/cache-python-deps
* https://github.com/re-actors/cache-python-deps
* aio-libs/frozenlist#622
* aio-libs/frozenlist#633
* actions/setup-python#1034
* cherrypy/cheroot#739
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant