Skip to content

[Stats] Warn on failure-to-write stats / trace files. #12308

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

Conversation

graydon
Copy link
Contributor

@graydon graydon commented Oct 5, 2017

Given recent wild goose chase caused by a failure-to-write files in certain circumstances, I'd like to upgrade this path from silent to noisy failure (though still permitting the compiler to continue).

Plumbing a diagnostic consumer through to here seems to me like a bit of overkill, given it's not a standard operating mode at all -- user has to ask for this and it's a rare use-case -- and there's no source location to complain about; decided to do what LLVM's own stats-reporting does on stats-file-open failure and just write to stderr. Hopefully this is acceptable?

@graydon graydon requested a review from jrose-apple October 5, 2017 23:27
@graydon
Copy link
Contributor Author

graydon commented Oct 5, 2017

@swift-ci please test

@jrose-apple
Copy link
Contributor

It's not great because it won't show up in Xcode unless you open the build log, but it's better than nothing. Go for it.

@graydon graydon merged commit 4bba972 into swiftlang:master Oct 6, 2017
@graydon graydon deleted the warn-on-failure-to-open-stats-dir-file branch November 17, 2017 18:29
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.

2 participants