Skip to content

Fix utils/download-unpublished-toolchains.py URL parsing #81939

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
merged 2 commits into from
Jun 4, 2025

Conversation

MaxDesiatov
Copy link
Contributor

@MaxDesiatov MaxDesiatov commented Jun 3, 2025

Current .removeprefix invocation is not resilient against any input preceding the Toolchain: pattern, which means logs that include timestamps (IIUC all of them) can't be parsed.

Additionally, for easier testing this script now supports a new --dry-run flag that infers toolchain URL, but doesn't download it.

Current `.removeprefix` invocation is not resilient against any input preceding the `Toolchain: ` pattern, which in the logs currently includes timestamps.

Additionally, for easier testing this script now supports a new `--dry-run` flag that infers toolchain URL, but doesn't download it.
@MaxDesiatov MaxDesiatov added python Flag: Python source code utils Area: the build system and other accessory scripts under the "utils" directory labels Jun 3, 2025
@MaxDesiatov
Copy link
Contributor Author

@swift-ci smoke test

@MaxDesiatov
Copy link
Contributor Author

@swift-ci test macos

@edymtt edymtt requested a review from shahmishal June 3, 2025 17:27
@MaxDesiatov
Copy link
Contributor Author

@swift-ci test macos

@MaxDesiatov MaxDesiatov enabled auto-merge (squash) June 4, 2025 09:04
@MaxDesiatov
Copy link
Contributor Author

@swift-ci smoke test macos

@MaxDesiatov MaxDesiatov merged commit 2fad5aa into main Jun 4, 2025
3 of 4 checks passed
@MaxDesiatov MaxDesiatov deleted the maxd/fix-unpublished-toolchains branch June 4, 2025 20:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
python Flag: Python source code utils Area: the build system and other accessory scripts under the "utils" directory
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants