Skip to content

Flush Utilities/bootstrap script logging output #8141

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 1 commit into from
Dec 2, 2024

Conversation

MaxDesiatov
Copy link
Contributor

Motivation:

As Utilities/helpers.py output of print is not immediately flushed, it makes debugging of Utilities/bootstrap script very hard, since logging messages are not guaranteed to be printed in correct order.

Modifications:

All calls to print in Utilities/helpers.py have flush=True passed as arguments.

Result:

Messages logged in the bootstrap script are always printed in the correct order.

As `Utilities/helpers.py` output of `print` is not immediately flushed, it makes debugging of this script very hard, since logging messages are not guaranteed to be printed in correct order.
@MaxDesiatov
Copy link
Contributor Author

@swift-ci test

@MaxDesiatov MaxDesiatov enabled auto-merge (squash) November 27, 2024 17:04
@MaxDesiatov
Copy link
Contributor Author

@swift-ci test windows

2 similar comments
@MaxDesiatov
Copy link
Contributor Author

@swift-ci test windows

@MaxDesiatov
Copy link
Contributor Author

@swift-ci test windows

@MaxDesiatov MaxDesiatov disabled auto-merge December 2, 2024 11:28
@MaxDesiatov MaxDesiatov merged commit b4486a8 into main Dec 2, 2024
5 checks passed
@MaxDesiatov MaxDesiatov deleted the maxd/flush-bootstrap-output branch December 2, 2024 11:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bootstrap Bootstrapping script & swift-bootstrap bug logging
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants