Skip to content

Update SF-0007 Subprocess to version 8 #1208

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
Mar 24, 2025

Conversation

iCharlesHu
Copy link
Contributor

@iCharlesHu iCharlesHu commented Mar 13, 2025

v8: Removing ManagedInputProtocol and ManagedOutputProtocol

  • Revise InputProtocol and OutputProtocol to not expose FileDescriptor directly
  • Added SubprocessSpan trait
  • Removed the opaque Pipe
  • Introduce a cross platform TeardownStep.gracefulShutDown(alloweDurationToNextStep:) and add Windows support

@iCharlesHu iCharlesHu requested a review from itingliu March 13, 2025 05:56
@iCharlesHu iCharlesHu added the proposal This PR is for a proposal label Mar 13, 2025
@iCharlesHu iCharlesHu force-pushed the charles/subprocess-proposal-v8 branch from 2f11c4d to 56d57fb Compare March 13, 2025 17:54
#if SubprocessSpan
extension OutputProtocol {
// Default implementation provided
public func output(from buffer: some Sequence<UInt8>) throws -> OutputType { ... }
Copy link
Contributor

Choose a reason for hiding this comment

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

Styling nit: unnecessary trailing {...}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I added this specially to mean this is a "default implementation" instead of protocol requirement since the requirement itself is declared above 😅

@iCharlesHu
Copy link
Contributor Author

@swift-ci please test

@itingliu itingliu merged commit 0c91fa1 into swiftlang:main Mar 24, 2025
3 checks passed
@iCharlesHu iCharlesHu deleted the charles/subprocess-proposal-v8 branch April 1, 2025 23:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
proposal This PR is for a proposal
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants