Skip to content

PathSanitizingFileCheck: improve Python3 compatibility #32653

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

compnerd
Copy link
Member

@compnerd compnerd commented Jul 1, 2020

Adjust the regex match to do a better job of sanitizing the paths. This
improves the test coverage pass rate with Python 3. Furthermore, handle
the unicode conversion properly that breaks with Python 3. This further
improves the Python 3 test coverage pass rate.

Replace this paragraph with a description of your changes and rationale. Provide links to external references/discussions if appropriate.

Resolves SR-NNNN.

@compnerd
Copy link
Member Author

compnerd commented Jul 1, 2020

CC: @drodriguez @tachoknight @drexin

@compnerd
Copy link
Member Author

compnerd commented Jul 1, 2020

@swift-ci please test

@swift-ci
Copy link
Contributor

swift-ci commented Jul 1, 2020

Build failed
Swift Test OS X Platform
Git Sha - e918b4dce1fb29d02720e72d3f9ede130e5e8e43

@swift-ci
Copy link
Contributor

swift-ci commented Jul 1, 2020

Build failed
Swift Test Linux Platform
Git Sha - e918b4dce1fb29d02720e72d3f9ede130e5e8e43

Adjust the regex match to do a better job of sanitizing the paths.  This
improves the test coverage pass rate with Python 3.  Furthermore, handle
the unicode conversion properly that breaks with Python 3.  This further
improves the Python 3 test coverage pass rate.
@compnerd compnerd force-pushed the hand-sanitizer-keeps-the-corona-away branch from e918b4d to 93df7f4 Compare July 1, 2020 20:00
@compnerd
Copy link
Member Author

compnerd commented Jul 1, 2020

@swift-ci please test

@swift-ci
Copy link
Contributor

swift-ci commented Jul 1, 2020

Build failed
Swift Test OS X Platform
Git Sha - e918b4dce1fb29d02720e72d3f9ede130e5e8e43

@swift-ci
Copy link
Contributor

swift-ci commented Jul 1, 2020

Build failed
Swift Test Linux Platform
Git Sha - e918b4dce1fb29d02720e72d3f9ede130e5e8e43

@compnerd
Copy link
Member Author

compnerd commented Jul 1, 2020

@swift-ci please test Linux platform

Copy link
Contributor

@drexin drexin left a comment

Choose a reason for hiding this comment

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

LGTM

@compnerd compnerd merged commit 0f036e5 into swiftlang:master Jul 2, 2020
@compnerd compnerd deleted the hand-sanitizer-keeps-the-corona-away branch July 2, 2020 16:35
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