Commit 5b092b2
[Crane: crane-migration-python-to-go-full-apm-cli-rewrite] Iteration 71: fix benchmark gate (deps Console width under TERM=dumb) (#112)
* fix(deps): pass height=24 to Console to bypass Rich TERM=dumb width fallback
Rich's Console.size property only honours an explicit width when both
_width and _height are set. When only width is passed, it falls through
to is_dumb_terminal and returns 80 columns, truncating long package names
in the `deps list` table (e.g. 'microsoft/apm-package-alpha' -> 'microsof...').
Fix: supply height=24 alongside the explicit width so the fast path is
taken regardless of the TERM environment variable.
Also add COLUMNS=10000 to the benchmark subprocess env as a belt-and-
suspenders guard for future Rich version changes.
Verification: all 13 migration gates now pass (migration_score=1.0).
Run: https://github.com/githubnext/apm/actions/runs/27041238237
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* ci: trigger checks
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>1 parent 101f162 commit 5b092b2
2 files changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
543 | 543 | | |
544 | 544 | | |
545 | 545 | | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
546 | 549 | | |
547 | 550 | | |
548 | 551 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
405 | 405 | | |
406 | 406 | | |
407 | 407 | | |
408 | | - | |
| 408 | + | |
409 | 409 | | |
410 | 410 | | |
411 | 411 | | |
| |||
0 commit comments