Dev-iL commented on code in PR #69251:
URL: https://github.com/apache/airflow/pull/69251#discussion_r4664599631
##########
dev/breeze/tests/test_shim_version_check.py:
##########
@@ -41,6 +41,7 @@
def wide_console(monkeypatch):
# Rich wraps at the detected width, which splits the messages asserted
below when
# tmp_path is long and CI's fixed console width is not in effect.
+ monkeypatch.setenv("TERM", "xterm")
Review Comment:
Another unrelated flakiness fix:
**`TERM=xterm` makes the shim warning tests honor their existing
`COLUMNS=250` setting.** With `TERM=dumb` or `TERM=unknown`, Rich falls back to
80 columns. At certain temporary path lengths, it wraps `needs to be upgraded`
across two lines, causing three substring assertions to fail even though Breeze
emitted the correct warning.
**Verified with Rich 15.0.0.** With an incoming `TERM=dumb`, the old fixture
failed three tests and the revised fixture passed all 34. The old fixture also
passed all 34 when the environment already supplied `TERM=xterm`. This is a
test-only fix that can land independently of PostgreSQL 19.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]