Skip to content

fix: Use changed_at revision when updating fields#778

Merged
Veykril merged 1 commit intosalsa-rs:masterfrom
Veykril:veykril/push-koslsspqvosw
Mar 25, 2025
Merged

fix: Use changed_at revision when updating fields#778
Veykril merged 1 commit intosalsa-rs:masterfrom
Veykril:veykril/push-koslsspqvosw

Conversation

@Veykril
Copy link
Member

@Veykril Veykril commented Mar 25, 2025

Setting the field's revision to current_revision when updating is not technically wrong, but its pessimizing. If all previous reads only observed a change of up to changed_at, then it's fine for us to do the same as nothing we derive from has read from current_revision.

Setting the field's revision to `current_revision` when updating is not technically wrong, but its pessimizing.
If all previous reads only observed a change of up to `changed_at`, then it's fine for us to do the same as nothing
we derive from has read from `current_revision`.
@netlify
Copy link

netlify bot commented Mar 25, 2025

Deploy Preview for salsa-rs canceled.

Name Link
🔨 Latest commit c85e300
🔍 Latest deploy log https://app.netlify.com/sites/salsa-rs/deploys/67e24b82381276000870e9e7

@codspeed-hq
Copy link

codspeed-hq bot commented Mar 25, 2025

CodSpeed Performance Report

Merging #778 will not alter performance

Comparing Veykril:veykril/push-koslsspqvosw (c85e300) with master (5ee3bdd)

Summary

✅ 12 untouched benchmarks

@Veykril
Copy link
Member Author

Veykril commented Mar 25, 2025

Looks like one of my parallel tests are flaky (note I don't think there is a bug in salsa, but a race in our testing signal infra)

Comment on lines +571 to 572
data.revisions = C::new_revisions(current_deps.changed_at);
data.created_at = current_revision;
Copy link
Contributor

Choose a reason for hiding this comment

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

It might be a bit surprising that crated_at can now be larger than changed_at

Copy link
Member Author

Choose a reason for hiding this comment

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

That is already the case when we allocate the struct

@Veykril Veykril added this pull request to the merge queue Mar 25, 2025
Merged via the queue into salsa-rs:master with commit 20a347e Mar 25, 2025
10 of 11 checks passed
@Veykril Veykril deleted the veykril/push-koslsspqvosw branch March 25, 2025 11:55
@github-actions github-actions bot mentioned this pull request Mar 25, 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.

2 participants