Skip to content

[4.2] [BatchMode] <rdar://39981525> Emit parseable output for each job, using quasi-PIDs. #16546

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

graydon
Copy link
Contributor

@graydon graydon commented May 11, 2018

Cherry-pick of #16492 to swift-4.2-branch. Original description follows:

Due to a variety of suboptimal UI in Xcode it's better to emit parseable output from a batch mode job that pretends to be the sequence of constituent jobs in the batch, rather than a single message for the entire batch. In order to do this without breaking things, the "pid" field in messages needs to get its semantics very slightly bent to accept negative made-up values (I'm calling them "quasi-PIDs" here) in place of real PIDs.

I've tested this on Xcode and it behaves a fair bit better than before, in terms of relating diagnostics to the correct file and displaying meaningful output and so forth. Not exactly thrilled with it but the alternatives seem worse.

rdar://40166873

@graydon graydon changed the title [4.2] <rdar://39981525> Emit parseable output for each job, using quasi-PIDs. [4.2] [BatchMode] <rdar://39981525> Emit parseable output for each job, using quasi-PIDs. May 11, 2018
@graydon
Copy link
Contributor Author

graydon commented May 11, 2018

@swift-ci please test

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