Repository navigation
Keep report URLs on one line in narrow consoles - #596
Merged
Merged
Conversation
WaleedMahamid
requested review from
avishaiamiel and
omer-roth
as code owners
November 18, 2026 14:42
omer-roth
reviewed
Nov 18, 2026
omer-roth
reviewed
Nov 18, 2026
WaleedMahamid
force-pushed
the
fix/report-url-wrapping
branch
from
November 18, 2026 14:45
9dac6b9 to
ff93890
Compare
Without a terminal (CI logs such as Jenkins) rich falls back to an 80-column console and wraps the report URL. EU report URLs are 83 characters long, so the last three characters of the aggregation ID moved to the next line and the link shown in the log returned 404. Print report URLs with soft_wrap so they are never wrapped, and cover the single and multiple URL cases with an 80-column console. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
WaleedMahamid
force-pushed
the
fix/report-url-wrapping
branch
from
November 18, 2026 14:48
ff93890 to
8d8e61f
Compare
omer-roth
approved these changes
Nov 18, 2026
omer-roth
self-requested a review
November 18, 2026 14:56
omer-roth
approved these changes
Nov 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
When the CLI runs without a terminal (CI logs such as Jenkins), rich falls back to an 80-column console and wraps the
Report URLline. Report URLs for EU tenants are 83 characters long, so the last three characters of the aggregation ID move to the next line:The CI log viewer turns only the first line into a link, so the link is cut short and the report page returns 404. US report URLs are exactly 80 characters and happen to fit, which is why this shows up for EU tenants.
Fix
Print report URLs with
soft_wrap=Trueso they are never wrapped, in both the single-URL and multiple-URL branches ofTextPrinter.print_report_urls. The table and rich printers delegate to the same method.Tests
Two new tests in
tests/cli/printers/test_text_printer.pyprint an 83-character URL through an 80-column console and assert it stays on one line (single URL and multiple URLs). Both fail without the fix.Full suite locally: 1563 passed, 1 skipped.
🤖 Generated with Claude Code