Skip to content

Fix parallel_map::execute_cancellation test #637

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 1 commit into from
Dec 23, 2024

Conversation

Veykril
Copy link
Member

@Veykril Veykril commented Dec 23, 2024

As discovered in #635, the test here is racy. After resolving the wait_for it never actually executes cancellable work and so it might just finish computation without cancelling (the only place where it was able to cancel was when calling the input.field(db) call. This brings the test more in line with how parallel_execute does it.

@Veykril
Copy link
Member Author

Veykril commented Dec 23, 2024

r? @davidbarsky

Copy link

netlify bot commented Dec 23, 2024

Deploy Preview for salsa-rs canceled.

Name Link
🔨 Latest commit 87fdc13
🔍 Latest deploy log https://app.netlify.com/sites/salsa-rs/deploys/67698bc688a8ad0008dd2e01

@Veykril Veykril force-pushed the veykril/push-pqxwpkxprotm branch from a7fb825 to 87fdc13 Compare December 23, 2024 16:11
Copy link

codspeed-hq bot commented Dec 23, 2024

CodSpeed Performance Report

Merging #637 will not alter performance

Comparing Veykril:veykril/push-pqxwpkxprotm (87fdc13) with master (c8d47cc)

Summary

✅ 9 untouched benchmarks

Copy link
Contributor

@davidbarsky davidbarsky left a comment

Choose a reason for hiding this comment

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

oh, that'll do it. thanks for noticing and fixing this!

@davidbarsky davidbarsky added this pull request to the merge queue Dec 23, 2024
Merged via the queue into salsa-rs:master with commit 88a1d77 Dec 23, 2024
10 checks passed
@Veykril Veykril deleted the veykril/push-pqxwpkxprotm branch December 23, 2024 16:28
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