Skip to content

report: remove trailing newlines from traceback#559

Open
bdrung wants to merge 1 commit intocanonical:mainfrom
bdrung:strip-traceback
Open

report: remove trailing newlines from traceback#559
bdrung wants to merge 1 commit intocanonical:mainfrom
bdrung:strip-traceback

Conversation

@bdrung
Copy link
Copy Markdown
Member

@bdrung bdrung commented Mar 24, 2026

In case add_info fails, the hook error will be added to the report. This traceback has a trailing newline which can break the report file. So strip leading and trailing whitespaces from the traceback.

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 24, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.42%. Comparing base (1c787b1) to head (72f422b).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #559   +/-   ##
=======================================
  Coverage   84.41%   84.42%           
=======================================
  Files         104      104           
  Lines       20910    20910           
  Branches     3275     3275           
=======================================
+ Hits        17651    17653    +2     
+ Misses       2819     2817    -2     
  Partials      440      440           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@bdrung bdrung force-pushed the strip-traceback branch 2 times, most recently from 618d041 to 270ad66 Compare March 25, 2026 17:42
In case `add_info` fails, the hook error will be added to the report.
This traceback has a trailing newline which can break the report file.
So strip leading and trailing whitespaces from the traceback.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant