Skip to content

chore: benchmarks compare.py documentation fixes - #24505

Merged
adriangb merged 2 commits into
apache:mainfrom
adamreeve:compare-fix
Aug 20, 2026
Merged

adriangb merged 2 commits into
apache:mainfrom
adamreeve:compare-fix

Conversation

@adamreeve

@adamreeve adamreeve commented Aug 20, 2026 •

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

No issue, this is a minor change and not user-facing.

Rationale for this change

Help developers run benchmarks without getting distracted by errors and trying commands that no longer work.

What changes are included in this PR?

Updates documentation for compare.py to account for the switch to uv (#20414) and fixes a crash when getting the help output (running with --help).

Are these changes tested?

Yes, I've run the script.

Are there any user-facing changes?

No.

Comment thread benchmarks/compare.py
type=float,
default=0.05,
help="The threshold for statistically insignificant results (+/- %5).",
help="The threshold for statistically insignificant results (+/- 5%%).",

@adamreeve adamreeve Aug 20, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See https://docs.python.org/3/library/argparse.html#help

The help text supports %-formatting so the % needs to be escaped.

Without this, running with --help gives:

ValueError: unsupported format character ')' (0x29) at index 6

Also, the % should come after the 5.

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.27%. Comparing base (5e4f3cc) to head (1f120e2).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #24505      +/-   ##
==========================================
- Coverage   81.27%   81.27%   -0.01%     
==========================================
  Files        1114     1115       +1     
  Lines      393606   394817    +1211     
  Branches   393606   394817    +1211     
==========================================
+ Hits       319920   320877     +957     
- Misses      54946    55144     +198     
- Partials    18740    18796      +56     

☔ View full report in Codecov by Harness.
📢 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@adamreeve

Copy link
Copy Markdown
Contributor Author

Hi @adriangb, could you please review this?

@adriangb adriangb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@adriangb
adriangb added this pull request to the merge queue Aug 20, 2026
Merged via the queue into apache:main with commit 16ec8e0 Aug 20, 2026
37 checks passed
@adamreeve
adamreeve deleted the compare-fix branch August 20, 2026 06:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants