-
Notifications
You must be signed in to change notification settings - Fork 10.6k
[update-checkout] refactor to use pathlib.Path instead of os.path #85277
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
[update-checkout] refactor to use pathlib.Path instead of os.path #85277
Conversation
d7a52fd to
4f72ffa
Compare
|
@swift-ci please smoke test |
1 similar comment
|
@swift-ci please smoke test |
4f72ffa to
9307640
Compare
|
@swift-ci please smoke test |
|
|
||
| def call_quietly(*args, **kwargs): | ||
| kwargs["stderr"] = subprocess.STDOUT | ||
| kwargs["encoding"] = "utf-8" |
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.
why is this part of "delete unused test"?
utils/update_checkout/README.md
Outdated
| ./swift/utils/update-checkout --clone --scheme release/6.2 | ||
| ``` | ||
|
|
||
| The command above will use `HTTP` to clone the repositories. Use `--clone-with-ssh` to clone with `SSH` instead: |
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.
HTTPS?
|
Individually these all look good, but this should have really been three separate PRs. |
|
Are you sure you want to use Pathlib? From my experience it is really slow compared to os.path. I did not have any problems with os.path either. |
9307640 to
1d9d003
Compare
I ended up splitting the changes into separate PRs instead to simplify failure tracking (if we see failures in CI). This PR is now only converting |
The overall goal is to improve Regarding the slowness concerns, |
|
@swift-ci please smoke test |
|
@swift-ci please test windows |
1 similar comment
|
@swift-ci please test windows |
Refactor the uses of
os.pathinupdate-checkoutby thepathlib.Pathclass to avoid string manipulation. This is part of an effort to improve the reliability of `update-checkout on Windows.