Skip to content

Implement benchmark diff commit fallback #18152

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

Closed
wants to merge 1 commit into from

Conversation

iluuu1994
Copy link
Member

@iluuu1994 iluuu1994 commented Mar 26, 2025

When the base commit is not benchmarked (yet), iterate first parents of the commit until we find one that is.

Fixes GH-18094

When the base commit is not benchmarked (yet), iterate first parents of
the commit until we find one.

Fixes phpGH-18094
@iluuu1994 iluuu1994 requested a review from nielsdos March 26, 2025 21:10
@iluuu1994 iluuu1994 closed this in f994c2f Mar 26, 2025
if (file_exists($summaryFile)) {
break;
}
$commitHash = trim(runCommand(['git', 'rev-parse', $commitHash . '^'], dirname(__DIR__))->stdout);
Copy link
Contributor

Choose a reason for hiding this comment

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

This must not print anything to the console - https://github.com/php/php-src/actions/runs/14118010354

Copy link
Member Author

Choose a reason for hiding this comment

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

Good catch! I'll fix this later tonight.

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.

Make benchmark comparison search for last benchmarked commit
3 participants