Skip to content

Block on emitting parseable-output messages in executeJob. #517

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 2, 2021

Conversation

artemcm
Copy link
Contributor

@artemcm artemcm commented Mar 2, 2021

executeJob itself runs in a concurrent context.
Adding further asynchrony in emitting parseable-output here isn't worth the trouble it can cause because the performance implications of waiting for these messages to be emitted are likely negligible.

Blocking on calls to jobStarted and jobFinished defines away various possibilities for error states, for example - the executor concluding its workload and returning before all parseable-output messages have been emitted, potentially confusing the build system in the process.

Resolves rdar://74058113

`executeJob` itself runs in a concurrent context.
Adding further asynchrnony in emitting parseable-output here isn't worth the trouble it can cause because the performance implications of waiting for these messages to be emitted are likely negligible.
Blocking on calls to `jobStarted` and `jobFinished` defines away various possibilities for trouble, for example - the executor concluding its workload and returning before all parseable-output messages have been emitted, potentially confusing the build system in the process.

Resolves rdar://74058113
@artemcm
Copy link
Contributor Author

artemcm commented Mar 2, 2021

@swift-ci please test

@nkcsgexi nkcsgexi merged commit 694d93a into swiftlang:main Mar 2, 2021
@davidungar
Copy link
Contributor

Looks OK.

Copy link
Contributor

@davidungar davidungar left a comment

Choose a reason for hiding this comment

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

Looks OK.

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.

3 participants