Skip to content

Fix --modules= parsing in the benchmark entry point - #506

Merged
lkdvos merged 1 commit into
mainfrom
fix/benchmark-modules-parsing
Aug 15, 2026
Merged

Fix --modules= parsing in the benchmark entry point#506
lkdvos merged 1 commit into
mainfrom
fix/benchmark-modules-parsing

Conversation

@lkdvos

@lkdvos lkdvos commented Aug 12, 2026

Copy link
Copy Markdown
Member

Two bugs in benchmark/benchmarks.jl:

  • the pattern captured (\w+), which stops at the first comma, so --modules=linalg,tensornetworks silently loaded only linalg;
  • only(...) was applied to the capture rather than the match, throwing for any module name longer than one character.

🤖 Generated with Claude Code

@codecov

codecov Bot commented Aug 12, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
see 6 files with indirect coverage changes

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

The pattern captured `(\w+)`, which stops at the first comma, so
`--modules=linalg,tensornetworks` silently loaded only `linalg`. On top
of
that, `only(...)` was applied to the capture rather than to the match,
which
threw for any module name longer than one character.

[skip ci]
@lkdvos
lkdvos force-pushed the fix/benchmark-modules-parsing branch from de15c79 to a39c5c4 Compare August 15, 2026 09:57
@lkdvos
lkdvos marked this pull request as ready for review August 15, 2026 09:57
@lkdvos
lkdvos requested a review from kshyatt August 15, 2026 09:57

@kshyatt kshyatt left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It's really abusive to ask me to review a regex

@lkdvos
lkdvos merged commit 3e72027 into main Aug 15, 2026
@lkdvos
lkdvos deleted the fix/benchmark-modules-parsing branch August 15, 2026 10:24
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.

2 participants