GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Caching config.cache in GitHub Actions is unsafe · Issue #139596 · python/cpython

Caching config.cache in GitHub Actions is unsafe #139596

New issue
Copy link
New issue
Copy link
Closed
Closed
Caching config.cache in GitHub Actions is unsafe#139596
Copy link
Labels
buildThe build process and cross-buildThe build process and cross-buildinfraCI, GitHub Actions, buildbots, Dependabot, etc.CI, GitHub Actions, buildbots, Dependabot, etc.type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Description

@mhsmith
mhsmith
opened on Oct 5, 2025
Issue body actions

Bug report

Bug description:

This was discovered in #131882 (comment), which involved a configure check that used a header file. The PR changed the header file, but not the configure script. So the build reused a config.cache file from a different branch (probably main), the check wasn't rerun, and the fact that the change broke the build wasn't discovered until much later.

Because the configure script could depend on anything in the repository, I don't think there's any way to make this safe, not even within the scope of a single PR. So I suggest removing the cache action from the workflow.

This is a separate thing from ccache, which is still safe as far as I know.

CPython versions tested on:

CPython main branch

Operating systems tested on:

macOS

Linked PRs

  • GH-139596: Cease caching config.cache & ccache in GH Actions #139623
  • [3.14] GH-139596: Cease caching config.cache & ccache in GH Actions #141429
  • gh-139596: Cease caching config.cache & ccache in GH Actions #141451
  • [3.13] GH-139596: Cease caching config.cache & ccache in GH Actions (GH-141429) #141569

Activity

  1. mhsmith
    added
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    buildThe build process and cross-buildThe build process and cross-build
    on Oct 5, 2025
  2. picnixz
    added
    infraCI, GitHub Actions, buildbots, Dependabot, etc.CI, GitHub Actions, buildbots, Dependabot, etc.
    on Oct 5, 2025
  3. gpshead
    added 2 commits that reference this issue on Nov 11, 2025

    GH-139596: Cease caching config.cache & ccache in GH Actions (GH-139623)

    c744ccb

    [3.14] pythonGH-139596: Cease caching config.cache & ccache in GH Act…

    ce5c716
  4. gpshead commented on Nov 11, 2025

    @gpshead
    gpshead
    on Nov 11, 2025
    Member
    More actions

    thanks! fixed on main - manual backport to 3.14 created as the yml files had changed enough, it could use review.

  5. hugovk
    added 4 commits that reference this issue on Nov 14, 2025

    gh-139596: Cease caching config.cache & ccache in GH Actions (#141451)

    181a2f4

    pythongh-139596: Cease caching config.cache & ccache in GH Actions (p…

    aec35cc

    [3.14] GH-139596: Cease caching config.cache & ccache in GH Actions (#…

    a2442fd

    [3.13] pythonGH-139596: Cease caching config.cache & ccache in GH Act…

    7c80b6a
  6. gpshead
    added a commit that references this issue on Nov 14, 2025

    [3.13] GH-139596: Cease caching config.cache & ccache in GH Actions (G…

    76db223
  7. gpshead commented on Nov 14, 2025

    @gpshead
    gpshead
    on Nov 14, 2025
    Member
    More actions

    thanks!

  8. gpshead
    closed this as completedon Nov 14, 2025
  9. StanFromIreland
    added 2 commits that reference this issue on Dec 6, 2025

    pythonGH-139596: Cease caching config.cache & ccache in GH Actions (p…

    8a2cb87

    pythongh-139596: Cease caching config.cache & ccache in GH Actions (p…

    206ec31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildThe build process and cross-buildThe build process and cross-buildinfraCI, GitHub Actions, buildbots, Dependabot, etc.CI, GitHub Actions, buildbots, Dependabot, etc.type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.