Skip to content

Respect timestamp and other cache keys in cached environments#18396

Merged
charliermarsh merged 1 commit intomainfrom
charlie/cache-key-with
Mar 11, 2026
Merged

Respect timestamp and other cache keys in cached environments#18396
charliermarsh merged 1 commit intomainfrom
charlie/cache-key-with

Conversation

@charliermarsh
Copy link
Copy Markdown
Member

Summary

We now take cache keys and timestamps into account when reusing environments via --with, etc.

Closes #16617.

@charliermarsh charliermarsh added the bug Something isn't working label Mar 10, 2026
@charliermarsh charliermarsh force-pushed the charlie/cache-key-with branch from 5362779 to 59867b1 Compare March 10, 2026 19:00
@charliermarsh charliermarsh marked this pull request as ready for review March 10, 2026 19:13
Copy link
Copy Markdown
Member

@konstin konstin left a comment

Choose a reason for hiding this comment

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

Good catch!

Comment on lines +1509 to +1515
.output()?;
assert!(
third.status.success(),
"third run failed:\nstdout:\n{}\nstderr:\n{}",
String::from_utf8_lossy(&third.stdout),
String::from_utf8_lossy(&third.stderr),
);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We get this pre-made from assert_cmd:

Suggested change
.output()?;
assert!(
third.status.success(),
"third run failed:\nstdout:\n{}\nstderr:\n{}",
String::from_utf8_lossy(&third.stdout),
String::from_utf8_lossy(&third.stderr),
);
.assert()
.success()
.get_output();

);

let third_stdout = String::from_utf8_lossy(&third.stdout).trim().to_string();
assert_eq!(
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is there a reason we're not using snapshots like in the other tests?

@charliermarsh charliermarsh force-pushed the charlie/cache-key-with branch from 59867b1 to c2ec8ff Compare March 11, 2026 12:43
@charliermarsh charliermarsh enabled auto-merge (squash) March 11, 2026 12:43
@charliermarsh charliermarsh merged commit 26fed87 into main Mar 11, 2026
52 checks passed
@charliermarsh charliermarsh deleted the charlie/cache-key-with branch March 11, 2026 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Caching wheel files - does not refresh?

2 participants