Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Never restore stale tox environment caches in GitHub workflows #2605

Merged
merged 1 commit into from Mar 31, 2023

Conversation

lunkwill42
Copy link
Member

The installed dependencies in tox environments are no longer automatically synced using pip-tools, which means they do not update if they are stale.

We should therefore never use prefix matching for the cache Action for the tox environments, or we will end up restoring a stale environment every time the requirements files change.

This ensures we only restore tox environments when the cache key matches exactly - meaning that all the tox environments should be rebuilt if any of the requirements files changed.

The installed dependencies in tox environments are no longer
automatically synced using pip-tools, which means they do not update if
they are stale.

We should therefore never use prefix matching for the cache Action for
the tox environments, or we will end up restoring a stale environment
every time the requirements files change.

This ensures we only restore tox environments when the cache key matches
exactly - meaning that all the tox environments should be rebuilt if any
of the requirements files changed.
@sonarcloud
Copy link

sonarcloud bot commented Mar 31, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@codecov
Copy link

codecov bot commented Mar 31, 2023

Codecov Report

Merging #2605 (0241a24) into master (b5597a9) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #2605   +/-   ##
=======================================
  Coverage   54.20%   54.20%           
=======================================
  Files         558      558           
  Lines       40627    40627           
=======================================
  Hits        22020    22020           
  Misses      18607    18607           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@johannaengland johannaengland merged commit e544ba1 into Uninett:master Mar 31, 2023
13 checks passed
@lunkwill42 lunkwill42 deleted the test/exact-tox-cache-key branch March 31, 2023 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants