Skip to content

Conversation

@AA-Turner
Copy link
Member

@AA-Turner AA-Turner commented Oct 5, 2025

This removes the config.cache and ccache caches from GitHub Actions. Note that we still install and use ccache via posix-deps-apt.sh, so we will get the benefit from that still (if any), but we will no longer save it to the GHA cache.

A

@AA-Turner AA-Turner requested a review from mhsmith October 5, 2025 18:56
@AA-Turner AA-Turner changed the title GH-139596: Cease caching config.cache in GH Actions GH-139596: Cease caching config.cache & ccache in GH Actions Oct 5, 2025
@mhsmith
Copy link
Member

mhsmith commented Oct 6, 2025

For future reference:

with:
path: config.cache
# Include env.pythonLocation in key to avoid changes in environment when setup-python updates Python
key: ${{ github.job }}-${{ env.IMAGE_OS_VERSION }}-${{ needs.build-context.outputs.config-hash }}-${{ env.pythonLocation }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we also remove config-hash from reusable-context.yml?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, and the config_hash input for some other reusables. Will open a followup.

@gpshead gpshead added needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes labels Nov 11, 2025
@gpshead gpshead merged commit c744ccb into python:main Nov 11, 2025
52 checks passed
@miss-islington-app
Copy link

Thanks @AA-Turner for the PR, and @gpshead for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

@miss-islington-app
Copy link

Sorry, @AA-Turner and @gpshead, I could not cleanly backport this to 3.14 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker c744ccb2c92746bc7be6316ab478dbc13e176e97 3.14

@miss-islington-app
Copy link

Sorry, @AA-Turner and @gpshead, I could not cleanly backport this to 3.13 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker c744ccb2c92746bc7be6316ab478dbc13e176e97 3.13

@gpshead
Copy link
Member

gpshead commented Nov 11, 2025

the backport labels were opportunistic checks - actions configs have been rearranged since

gpshead added a commit to gpshead/cpython that referenced this pull request Nov 11, 2025
path: ${{ env.CROSS_BUILD_WASI }}/config.cache
# Should be kept in sync with the other config.cache step above.
key: ${{ github.job }}-${{ env.IMAGE_OS_VERSION }}-${{ env.WASI_SDK_VERSION }}-${{ env.WASMTIME_VERSION }}-${{ inputs.config_hash }}-${{ hashFiles('Tools/wasm/wasi/__main__.py') }}-${{ env.pythonLocation }}
run: python3 Tools/wasm/wasi.py make-build-python
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a merge misfire:

Suggested change
run: python3 Tools/wasm/wasi.py make-build-python
run: python3 Tools/wasm/wasi make-build-python

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, will include this in the followup too.

@hugovk
Copy link
Member

hugovk commented Nov 12, 2025

Followup: #141451

@hugovk hugovk removed needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes labels Nov 14, 2025
StanFromIreland pushed a commit to StanFromIreland/cpython that referenced this pull request Dec 6, 2025
…ythonGH-139623)

* Cease caching config.cache in GH Actions\
* Remove ccache action
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants