fix(plugins/ray): remove terminal-only noise from Ray logs - #7890
Conversation
|
This PR was flagged by our automated quality checks. If you're a genuine We appreciate your contribution and apologize if this is a false positive! |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #7890 +/- ##
=======================================
Coverage 57.24% 57.24%
=======================================
Files 931 931
Lines 58269 58279 +10
=======================================
+ Hits 33354 33364 +10
Misses 21856 21856
Partials 3059 3059
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Ray colorizes its log prefixes with ANSI escapes and renders Ray Data progress bars as repeated redraws. Both target an interactive terminal; a Ray task's output is collected from a pod, so the escapes render as literal noise and the progress bar repaints bloat the log. Set RAY_COLOR_PREFIX=0 and RAY_DATA_DISABLE_PROGRESS_BARS=1 on the head and worker containers so the collected logs stay readable. Backport of flyteorg#7504, which landed on the v2 branch only. Both branches ship the same Ray plugin. Signed-off-by: 1fanwang <1fannnw@gmail.com>
c750569 to
d9753c1
Compare
|
This PR was flagged by our automated quality checks. If you're a genuine We appreciate your contribution and apologize if this is a false positive! |
|
This backports #7504 to the v1 Ray plugin. The current body includes the red/green |
| { | ||
| Name: "RAY_COLOR_PREFIX", | ||
| Value: "0", | ||
| }, | ||
| { | ||
| Name: "RAY_DATA_DISABLE_PROGRESS_BARS", | ||
| Value: "1", | ||
| }, |
Tracking issue
Related to #7504
Why are the changes needed?
Ray formats logs for an interactive terminal. In collected pod logs, ANSI escapes
appear as literal characters and progress-bar redraws become repeated lines.
Before this change, v1 Ray task output is buried in that noise. After this change,
head and worker logs are plain text without progress-bar redraws, matching v2.
What changes were proposed in this pull request?
Set Ray's existing environment switches on both containers:
RAY_COLOR_PREFIX=0andRAY_DATA_DISABLE_PROGRESS_BARS=1.How was this patch tested?
The resource builder creates the RayJob and checks both variables on the head and
worker containers. A live pod-log comparison has not been run.
Labels
fixed
Setup process
No live cluster. The test drives the plugin's resource builder.
Check all the applicable boxes
Related PRs