-
Notifications
You must be signed in to change notification settings - Fork 7k
[ci] write test progress message to stderr #58019
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
Conversation
otherwise, the ordering or messages looks strange on windows. Signed-off-by: Lonnie Liu <lonnie@anyscale.com>
|
testing with windows core test: https://buildkite.com/ray-project/postmerge/builds/13952 |
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.
Code Review
This pull request correctly fixes a message ordering issue on Windows CI builds by redirecting progress messages to stderr. The changes are straightforward and effective. I have one suggestion regarding the repeated use of print(..., file=sys.stderr) for these CI messages. To improve maintainability, it would be beneficial to abstract this into a dedicated helper function. This would make the code cleaner and the intent of these special print statements more explicit.
| print("--- No tests to run", file=sys.stderr) | ||
| sys.exit(0) | ||
|
|
||
| print(f"+++ Running {len(test_targets)} tests") | ||
| print(f"+++ Running {len(test_targets)} tests", file=sys.stderr) |
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.
These changes correctly redirect CI progress messages to stderr. Since this pattern is now used on line 260 as well, consider abstracting it into a helper function to improve maintainability and clarify that these are special CI-related outputs. For example:
def _log_ci_status(message: str) -> None:
"""Prints a status message to stderr for CI visibility."""
print(message, file=sys.stderr)This would centralize the logic and make the code easier to read and maintain.
otherwise, the ordering or messages looks strange on windows. Signed-off-by: Lonnie Liu <lonnie@anyscale.com> Signed-off-by: xgui <xgui@anyscale.com>
otherwise, the ordering or messages looks strange on windows. Signed-off-by: Lonnie Liu <lonnie@anyscale.com>
otherwise, the ordering or messages looks strange on windows. Signed-off-by: Lonnie Liu <lonnie@anyscale.com> Signed-off-by: Aydin Abiar <aydin@anyscale.com>
otherwise, the ordering or messages looks strange on windows.