-
Notifications
You must be signed in to change notification settings - Fork 10.5k
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
[Inclusive Language][Comments][Documentation] migrate "sanity" checks to "soundness" checks #71167
[Inclusive Language][Comments][Documentation] migrate "sanity" checks to "soundness" checks #71167
Conversation
[Inclusive-Language] change comment with "sanity" to "soundness"
@swift-ci please test |
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.
The changes listed seem to be mechanical and only applicable to comments. Seems good to me.
Thank you for this contribution! About the open questions:
I'm not sure where this check prefix comes from.
This looks like just a comment that can be removed.
These run lines are specifying the prefix to use in the test. These can be changed as long as all of the |
https://ci.swift.org/job/swift-PR-macos/13233/consoleText
@phausler Hmm… it looks like llvm/llvm-project#79531 might be the reason that test build failed… would a new test run pick up that latest change from |
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.
Changes all look safe/correct, thank you
@hborla Hmm… this diff already has some approvals on it… maybe I can try those changes in an independent diff for us to look at and test separately? Thanks! |
@swift-ci please test macOS platform |
1 similar comment
@swift-ci please test macOS platform |
I think you can go ahead and press the button. We can be pretty confident that this change won't break anything! |
I don't have an option to land AFAIK… does anyone with permission want to merge for me? |
@vanvoorden merged. Thanks! |
Background
From the Swift Code of Conduct1:
Our Swift repo still contains legacy and "deprecated" language in many places. Let's migrate those to something more inclusive! We can start with migrating "sanity checks" to "soundness checks". We already have some examples for a head start.23 Let's keep this moving forward and build off this previous work.
Searching through the repo, we see three main categories of changes:
Ranking from "least" to "most" risky to land without causing any bugs or unintended consequences, let's start here with migrating comments and documentation.
Changes
Here are our migrations:
sanity
tosoundness
sane
tosound
insane
tounsound
sanely
tosoundly
Test Plan
https://gist.github.com/vanvoorden/e46bcfd2ac6eb8eb37cf64165b8624ac
I built swift from these changes locally and saw no errors.
Open Questions
A few Swift test files seem to contain comments that look like they might be mapping to symbols:
https://github.com/apple/swift/blob/main/test/DebugInfo/test-foundation.swift
https://github.com/apple/swift/blob/main/test/SILOptimizer/access_marker_verify.swift
https://github.com/apple/swift/blob/main/test/SourceKit/CursorInfo/cursor_usr.swift
Does anyone have more context about these? Are these actually lowkey "symbols" that are defined or referenced somewhere else?
Next Steps
In future diffs, we can begin to migrate the remaining examples of noninclusive language (constant strings and symbols).
Acknowledgments
Thank you to @twostraws, @amartini51, and @Serena748 for beginning this important work!
Footnotes
https://www.swift.org/code-of-conduct/ ↩
https://github.com/apple/swift/pull/34667 ↩
https://github.com/apple/swift/pull/68993 ↩