Skip to content
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

bazel-diff: Make auto diffbase work #1884

Merged
merged 2 commits into from
Feb 21, 2024

Conversation

meteorcloudy
Copy link
Member

@meteorcloudy meteorcloudy commented Feb 21, 2024

Fix the logic of resolving diffbase when USE_BAZEL_DIFF is one of AUTO_DIFFBASE_VALUES.

  • Reverted the change in Support bazel-diff for GitHub PR presubmit #1883, since we do need to download the diffbase from the original repo instead of the PR repo.
  • First determine the base branch by checking BUILDKITE_PULL_REQUEST_BASE_BRANCH and then BUILDKITE_BRANCH
  • Fetch the base branch from the original repo
  • Run git merge-base HEAD FETCH_HEAD to calculate the diffbase commit.

@meteorcloudy meteorcloudy removed the request for review from Wyverald February 21, 2024 14:15
@meteorcloudy meteorcloudy merged commit 86b979c into bazelbuild:master Feb 21, 2024
1 check passed
fweikert pushed a commit to fweikert/continuous-integration that referenced this pull request Mar 27, 2025
Fix the logic of resolving diffbase when `USE_BAZEL_DIFF` is one of
`AUTO_DIFFBASE_VALUES`.
- Reverted the change in
bazelbuild#1883, since we
do need to download the diffbase from the original repo instead of the
PR repo.
- First determine the base branch by checking
BUILDKITE_PULL_REQUEST_BASE_BRANCH and then BUILDKITE_BRANCH
- Fetch the base branch from the original repo
- Run `git merge-base HEAD FETCH_HEAD` to calculate the diffbase commit.
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.

None yet

2 participants