-
Notifications
You must be signed in to change notification settings - Fork 125
Fix detection of which tests to run when "quick" tests are requested. #539
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
Conversation
✅ Integration test succeeded!Requested by @jonsimantov on commit 26054b4 |
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.
LGTM.
Thanks for the explanation.
Merging anyway, as it's a flake. Failure log: |
Previously, the code was attempting to auto-diff with ${{github.event.pull_request.base.sha}}.
As it turns out, this is incorrect - the base sha in this case points to the current head of main, not the head of main when the branch was created (which is closer to what we want).
Instead, we now do the actual correct thing: query git to find the common ancestor commit of origin/main and origin/[pr branch name], and diff the PR's branch (again from origin) against that common ancestor.
This makes it much more robust to detect which files were actually edited by a PR, even if the base main branch has since been modified (and even if those modifications were partially merged into this branch).
Also in this PR: change to print_matrix_configuration to allow us to treat certain files as being within a given subdirectory when looking through the file list in auto-diff mode. For example, cmake/external/firestore.cmake should be considered under the "firestore" directory.