Skip to content

Don't report stale outputs if there is newer generation in new_outputs #879

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

Merged
merged 2 commits into from
May 27, 2025

Conversation

puuuuh
Copy link
Contributor

@puuuuh puuuuh commented May 25, 2025

Fixes #878

Copy link

netlify bot commented May 25, 2025

Deploy Preview for salsa-rs canceled.

Name Link
🔨 Latest commit aa6d28a
🔍 Latest deploy log https://app.netlify.com/projects/salsa-rs/deploys/683303881211370008adacb3

Copy link

codspeed-hq bot commented May 25, 2025

CodSpeed Performance Report

Merging #879 will not alter performance

Comparing puuuuh:master (aa6d28a) with master (0414d89)

Summary

✅ 12 untouched benchmarks

Copy link
Contributor

@MichaReiser MichaReiser left a comment

Choose a reason for hiding this comment

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

This makes sense to me. @ibraheemdev would you mind taking a look

@@ -25,7 +25,12 @@ where
revisions: &mut QueryRevisions,
) {
// Iterate over the outputs of the `old_memo` and put them into a hashset
Copy link
Contributor

Choose a reason for hiding this comment

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

I would find it useful if we could extend the comment so that it explains why we ignore the generation part.

Copy link
Contributor

@ibraheemdev ibraheemdev left a comment

Choose a reason for hiding this comment

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

This looks good. Values that are reused with a new generation already take care of cleaning up the previous generation's value, so we were effectively calling remove_stale_output twice.

@MichaReiser MichaReiser added this pull request to the merge queue May 27, 2025
Merged via the queue into salsa-rs:master with commit f9a9bb2 May 27, 2025
12 checks passed
@github-actions github-actions bot mentioned this pull request May 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crash with BadHash input and multiple changes
3 participants