-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[Diag] Create a serialized format for Localized Diagnostics #33022
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
[Diag] Create a serialized format for Localized Diagnostics #33022
Conversation
cc @xedin |
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.
Direction looks good! I have left some comments in line.
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.
Getting closer! I've left some more comments inline.
tools/swift-serialize-diagnostics/swift-serialize-diagnostics.cpp
Outdated
Show resolved
Hide resolved
tools/swift-serialize-diagnostics/swift-serialize-diagnostics.cpp
Outdated
Show resolved
Hide resolved
tools/swift-serialize-diagnostics/swift-serialize-diagnostics.cpp
Outdated
Show resolved
Hide resolved
09c6450
to
677b09d
Compare
tools/swift-serialize-diagnostics/swift-serialize-diagnostics.cpp
Outdated
Show resolved
Hide resolved
64393f2
to
3c8fdb6
Compare
3c8fdb6
to
bc4ff41
Compare
@swift-ci please build toolchain |
macOS Toolchain Install command |
@swift-ci please build toolchain |
1 similar comment
@swift-ci please build toolchain |
@swift-ci please build toolchain macOS platform |
@xedin why did the build fail? https://ci.swift.org/job/swift-PR-toolchain-osx/lastBuild/console |
CI issue, let's try again. |
@swift-ci please build toolchain macOS platform |
1 similar comment
@swift-ci please build toolchain macOS platform |
@shahmishal Looks like there is a problem with github auth on one of the machines. |
Should be fixed, please try again |
@swift-ci please build toolchain macOS platform |
@shahmishal Thanks, looks like it worked! |
macOS Toolchain Install command |
Great! Looks like we got |
87d2d15
to
d0f2b73
Compare
@swift-ci please clean build toolchain |
@swift-ci please build toolchain |
d0f2b73
to
6a30f18
Compare
@swift-ci please build toolchain |
…l for serialization
Add more usages of `offset_type` where appropriate and change buffer type to `const unsigned char *`.
…chain Building of the diagnostic database to be done in three steps: - Copy YAMLs from <source>/localization/diagnostics to <build>/share/swift/diagnostics - Serialize English into <build>/share/swift/diagnostics - Install everything (YAML and `.db`) from <build>/share/swift/diagnostics to share/swift/diagnostics in toolchain
6a30f18
to
5e13a53
Compare
@swift-ci please test |
@swift-ci please build toolchain |
@swift-ci please asan test |
@swift-ci please ASAN test |
@shahmishal Both toolchain builds were successful but none updated their state :/ |
Ok, both toolchains look good now. Let's wait for the tests to run and we'll be good to go with this. |
ASAN failure is in GSB and is unrelated to these changes. |
Introduces a serialized file format and create a tool for converting the diagnostic file from
.yaml
to.db