Skip to content

Disable GitHub Actions Caching Across CI Workflows#337

Merged
harryswift01 merged 1 commit into
mainfrom
313-disable-cache
May 12, 2026
Merged

Disable GitHub Actions Caching Across CI Workflows#337
harryswift01 merged 1 commit into
mainfrom
313-disable-cache

Conversation

@harryswift01
Copy link
Copy Markdown
Member

@harryswift01 harryswift01 commented May 12, 2026

Summary

This PR will disable all explicit caching in the GitHub Actions workflows to ensure every CI and regression run executes in a completely fresh environment.

Changes

Remove pip caching from setup-python

  • Removed cache: pip from all actions/setup-python steps.
  • Ensures Python dependencies are freshly installed on every workflow run.
  • Prevents reuse of cached wheels and virtual environment artifacts between runs.

Remove regression test data caching

  • Removed the actions/cache@v4 step for .testdata.
  • Ensures regression test data is regenerated or freshly downloaded every run.
  • Prevents stale regression data from persisting between CI executions.

Impact

  • CI runs will take longer due to fresh dependency installation.
  • Regression workflows will no longer reuse cached .testdata.
  • Workflow behaviour becomes more deterministic and reproducible.
  • Eliminates potential issues caused by stale or corrupted caches.

@harryswift01 harryswift01 marked this pull request as ready for review May 12, 2026 08:53
@harryswift01 harryswift01 requested a review from jimboid May 12, 2026 08:54
@harryswift01 harryswift01 self-assigned this May 12, 2026
@harryswift01 harryswift01 added bug Something isn't working CI Failure labels May 12, 2026
Copy link
Copy Markdown
Member

@jimboid jimboid left a comment

Choose a reason for hiding this comment

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

Removing the caching is potentially a fix for the random test failure behaviour seen with previous CI runs. Although the pip caching was probably safe and the cause origin being the test/data caching, this is a great first pass at solving the intermittent issue of tests failing on github but not locally.

@harryswift01 harryswift01 merged commit 7a398e0 into main May 12, 2026
84 of 89 checks passed
@harryswift01 harryswift01 deleted the 313-disable-cache branch May 12, 2026 11:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working CI Failure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants