-
Notifications
You must be signed in to change notification settings - Fork 7
Allow for bisecting by pystats #459
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -131,9 +131,9 @@ def run_benchmarks( | |||||||||||
| def collect_pystats( | ||||||||||||
| python: PathLike, | ||||||||||||
| benchmarks: str, | ||||||||||||
| fork: str, | ||||||||||||
| ref: str, | ||||||||||||
| individual: bool, | ||||||||||||
| fork: str | None = None, | ||||||||||||
| ref: str | None = None, | ||||||||||||
| individual: bool = True, | ||||||||||||
| flags: Iterable[str] | None = None, | ||||||||||||
| ) -> None: | ||||||||||||
| pystats_dir = Path("/tmp/py_stats") | ||||||||||||
|
|
@@ -167,7 +167,7 @@ def collect_pystats( | |||||||||||
| except NoBenchmarkError: | ||||||||||||
| pass | ||||||||||||
| else: | ||||||||||||
| if individual: | ||||||||||||
| if individual and fork is not None and ref is not None: | ||||||||||||
|
||||||||||||
| if individual and fork is not None and ref is not None: | |
| # Ensure both fork and ref are set and valid before proceeding. | |
| if individual and isinstance(fork, str) and fork.strip() and isinstance(ref, str) and ref.strip(): | |
| # This ensures that the operation can correctly summarize stats for the given benchmark. | |
| if individual and isinstance(fork, str) and fork.strip() and isinstance(ref, str) and ref.strip(): |
Copilot
AI
Jun 26, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] This check duplicates the condition logic from earlier; consider centralizing the validation of fork and ref to improve maintainability and reduce potential inconsistencies.
Uh oh!
There was an error while loading. Please reload this page.