-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[windows] Replace SourceKit cleaning regexes for Python script. #28298
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
[windows] Replace SourceKit cleaning regexes for Python script. #28298
Conversation
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.
I'm always happy to have less shelling out to sed. Since as far as I can tell, the new python regexes match the old sed ones, this looks good to me.
@swift-ci please smoke 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.
1 launch is way better than the piped mess. The matches look equivalent to me. Nice clean up :)
@swift-ci please test Windows platform |
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.
Nice!
@swift-ci please smoke test macOS platform |
It’s failing in the Python linter. I will have a look and fix it when I have time. |
The quoting of the sed commands was creating problems in my Windows installation. I am unsure if the implementation of sed.exe is different or the cmd.exe is different. In order to avoid problems in different machines, replace the piped sed commands into only one python script. This should be multiplatform and should execute the same in any of them. It also remove a lot of the extra quoting and escaping, and avoids 5 processes for only just one.
d468948
to
8470083
Compare
@swift-ci please smoke test |
@swift-ci please test Windows platform [Edit: https://ci-external.swift.org/view/Pull%20Request/job/swift-PR-windows/197/] |
The quoting of the sed commands was creating problems in my Windows
installation. I am unsure if the implementation of sed.exe is different
or the cmd.exe is different.
In order to avoid problems in different machines, replace the piped sed
commands into only one python script. This should be multiplatform and
should execute the same in any of them. It also remove a lot of the
extra quoting and escaping, and avoids 5 processes for only just one.