-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Move core/local/ExecutionScheduler
to execution/Scheduler
#2812
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2812 +/- ##
==========================================
- Coverage 76.88% 76.54% -0.35%
==========================================
Files 218 217 -1
Lines 16650 16664 +14
==========================================
- Hits 12802 12755 -47
- Misses 3041 3092 +51
- Partials 807 817 +10
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
ae83e9c
to
ef18b38
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very good work 👍🏻 I'm glad to see the move to a dedicated execution
package happen 🎉 🦖 I've left a suggestion to maybe find a more suiting name for the Scheduler as we're at it, but I've really no strong opinion on this, and you should feel free to walk past it 🙇🏻
62eb4f9
to
b456ed7
Compare
8e8f1aa
to
947ecb1
Compare
8c360a1
to
4077da3
Compare
947ecb1
to
3b44fa2
Compare
4077da3
to
bcceeb3
Compare
3b44fa2
to
e5b8879
Compare
be3aa5f
to
2955dcc
Compare
e5b8879
to
ef09f1b
Compare
We also remove the lib.ExecutionScheduler interface because it only ever had a single implementation and it's unlikely we'll ever need more than that. Distributed execution will be implemented another way and we should not mock the execution scheduler, we should mock the parts it moves (e.g. the Runner and Executors, if needs be).
ef09f1b
to
a42bdc7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just a minor nitpick
The expanded capabilities will be necessary for changes in upcoming PRs
a42bdc7
to
9f050f7
Compare
...and also move and expand the special context wrapper that
test.abort()
uses to interrupt the test and store the error internally. Its improved capabilities will be required for #1889This is built on top of #2810 and is also the first step towards addressing #1302. There is still a long way to go before we can move all of the execution-related things out of
lib/
, mostly because it will be quite tricky to both have a nice module structure and avoid import loops 😞 Even now, parts ofexecution/
(esp. the tests) still importlib/executor/
, whilelib/executor
imports the parts oflib/
we want to move toexecution/
... 😭 I worked around the issue this time, though that might not always work as well as it did this time.In any case, I just made this change to get the process of cleaning up
lib/
started. Between this PR and the next one to address #1889, it's much easier to remove thecore/
package than it is to cleanly split apartlib/
. Now, we have at least a place for these things, even if we can't move everything quite yet.