-
Notifications
You must be signed in to change notification settings - Fork 129
improve process state management #209
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
Conversation
brings back #203 |
@compnerd I tried to code up the windows part but have no way to test, could you ptal and help get over the finish line |
534a4e0
to
ce44b82
Compare
@swift-ci please test |
@swift-ci please test |
This definitely doesn't seem to build on Windows:
|
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.
The waitUntilExit
is also something that will need to be updated for your structural changes.
This unifies the platforms to Foundation for the process handling. This simplifies the logic and gives a single codepath which can possibly serve as an alternate path to swiftlang#209.
@swift-ci please test |
This builds on Windows, but SPM no longer runs. |
This unifies the platforms to Foundation for the process handling. This simplifies the logic and gives a single codepath which can possibly serve as an alternate path to swiftlang#209.
motivation: reports on hang process (mostly tests) changes: * refactor Process to use a state machine to track the process execution state * replace use of DispatchQueue with Locks to protect state rdar://76087764
6c61c24
to
e7fbf88
Compare
Co-authored-by: Saleem Abdulrasool <[email protected]>
@compnerd given our work on this, is this ready now in your opinion? |
@swift-ci please test |
@swift-ci please test linux |
@compnerd can you verify this is good to go? |
@tomerd yeah, given our work on this, I think that this is okay to merge. I've been running with it locally for ~1 week, and I think that the only "downside" to it is that it is a slight bit slower on the startup. |
motivation: reports on hang process (mostly tests)
changes:
rdar://76087764