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

cancellation-related cleanup #1985

Merged
merged 2 commits into from
Dec 15, 2024
Merged

cancellation-related cleanup #1985

merged 2 commits into from
Dec 15, 2024

Conversation

sunshowers
Copy link
Member

The request channel with the dispatcher provides a principled way to do cancellation-related cleanup.

We've changed things such that the executor always checks in with the
dispatcher before starting a unit. This makes the bool unnecessary.

The cancel receiver is currently necessary for the
handle_delay_between_attempts step, which should cancel the run no matter what.
We'll remove this shortly by moving this functionality into req_rx.
This functionality is now provided by the dispatcher via the request channel.
Copy link

codecov bot commented Dec 15, 2024

Codecov Report

Attention: Patch coverage is 35.29412% with 11 lines in your changes missing coverage. Please review.

Project coverage is 80.59%. Comparing base (b6b7077) to head (c25dcaf).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
nextest-runner/src/runner/executor.rs 0.00% 5 Missing ⚠️
nextest-runner/src/runner/unix.rs 0.00% 4 Missing ⚠️
nextest-runner/src/runner/dispatcher.rs 75.00% 1 Missing ⚠️
nextest-runner/src/runner/internal_events.rs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1985      +/-   ##
==========================================
- Coverage   80.61%   80.59%   -0.03%     
==========================================
  Files          95       95              
  Lines       23094    23062      -32     
==========================================
- Hits        18617    18586      -31     
+ Misses       4477     4476       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sunshowers sunshowers merged commit be10886 into main Dec 15, 2024
19 checks passed
@sunshowers sunshowers deleted the cancel-cleanup branch December 15, 2024 02:08
Copy link

trunk-io bot commented Dec 15, 2024

Static BadgeStatic BadgeStatic BadgeStatic Badge

View Full Report ↗︎Docs

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.

1 participant