Skip to content

a PR build should merge with the master branch first - #37881

Merged
arnej27959 merged 1 commit into
masterfrom
arnej/merge-before-pr-builds
Sep 18, 2026
Merged

arnej27959 merged 1 commit into
masterfrom
arnej/merge-before-pr-builds

Conversation

@arnej27959

Copy link
Copy Markdown
Member

Previously the "pr" build target ran basic-search-test directly against the PR branch's tip, so it never caught cases where the PR's changes conflict with, or are incompatible with, what's currently on master. Merging master into the branch before running the test suite makes the PR build validate the same integrated state that would exist after the PR is merged, catching integration issues earlier.

Fetch origin/master explicitly before merging, since the checkout used for a build may not have an up-to-date (or any) local master branch.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The merge may fail without Git identity/editor settings, and the fetch may leave origin/master stale.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Updates the Buildkite PR build to test the branch after integrating the latest master.

Changes:

  • Fetches master before testing.
  • Merges master before running basic-search-test.
File summaries
File Description
.buildkite/Makefile Adds master fetch and merge steps to the PR build.
Review details

Suppressed comments (1)

.buildkite/Makefile:47

  • git fetch origin master fetches the requested branch into FETCH_HEAD; it does not refresh the origin/master remote-tracking ref used on the next line. If this checkout already has a stale origin/master, the build will merge and test the wrong master revision, defeating the purpose of this target. Merge FETCH_HEAD here, or give the fetch an explicit destination such as master:refs/remotes/origin/master.
	git merge origin/master
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread .buildkite/Makefile Outdated
esolitos
esolitos previously approved these changes Sep 17, 2026
esolitos
esolitos previously approved these changes Sep 17, 2026
Comment thread .buildkite/Makefile Outdated
Previously the "pr" build target ran basic-search-test directly against
the PR branch's tip, so it never caught cases where the PR's changes
conflict with, or are incompatible with, what's currently on master.
Merging master into the branch before running the test suite makes the
PR build validate the same integrated state that would exist after the
PR is merged, catching integration issues earlier.

Fetch origin/master explicitly before merging, since the checkout used
for a build may not have an up-to-date (or any) local master branch.
@arnej27959
arnej27959 force-pushed the arnej/merge-before-pr-builds branch from dd05870 to d2b35f8 Compare September 17, 2026 18:33
@arnej27959
arnej27959 requested a review from esolitos September 17, 2026 18:55
Comment thread .buildkite/Makefile
git fetch origin master:refs/remotes/origin/master && \
git -c user.name=buildkite -c user.email=buildkite@vespa.ai merge --no-edit origin/master && \
git tag v$${VESPA_VERSION} && \
$(MAKE) VESPA_VERSION=$${VESPA_VERSION} -f .buildkite/Makefile basic-search-test

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

😅 That's not entirely correct, we're building Vespa X.Y.Z+1, right?
Any implications at setting the VESPA_VERSION?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

😅 That's not entirely correct, we're building Vespa X.Y.Z+1, right? Any implications at setting the VESPA_VERSION?

since it's a PR build it doesn't really matter, but it's probably best if it's a version number that can't possibly be a "real" version. We have some things looking at version number (protocol negotiation stuff) but nothing that looks at "Z" (last change was with 8.310).

@arnej27959
arnej27959 merged commit 3ef04e7 into master Sep 18, 2026
4 checks passed
@arnej27959
arnej27959 deleted the arnej/merge-before-pr-builds branch September 18, 2026 07:32
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.

3 participants