Testing comparisons

Testing a PR head vs. testing the merge result

Find out which revision a green PR check covers. Distinguish a head commit from a candidate merge and repeat the right run when the target branch changes.

Which revision does a green check actually cover after the target branch moves?

Test the PR head when a developer needs fast feedback on the exact commit they pushed. Test the candidate merge when release confidence depends on how the change works with the target branch. Record the checked-out commit in the run. A green result stays useful only for the combination it actually exercised.

Two green branches can disagree when combined

Suppose the base branch renames a currency configuration key while a PR introduces an invoice reader using the old name. Each branch can pass its own tests if it does not exercise the other change. A check that creates an invoice on the combined revision can reveal the incompatibility. Save the PR head, base and tested merge revision with the finding.

Testing a PR head vs. testing the merge result
DecisionPR-head testMerge-result test
Developer reproduces a failing changeUse the exact pushed commit SHA.Also capture the base and combined SHA.
Shared configuration movedShows compatibility with the head’s own context.Exercises the candidate with the changed base.
Main branch advances after successHead result remains tied to its original commit.Refresh the combination and run required checks again.
Release owner signs offLink any head-specific diagnostic findings.Confirm the accepted candidate matches the one tested.

Check what CI really checked out

On GitHub Actions, a pull_request workflow commonly checks out the synthetic merge commit unless its checkout configuration selects the head explicitly. Merge queues can use merge_group events for their own candidate revisions. Inspect your workflow configuration and log the actual commit. If the base advances, rerun the affected gate against the new candidate.

Primary documentation

Your next release starts here

Keep building.
Put testing to work.

Give Cue April your next testing challenge. Let your AI quality lead coordinate the checks, so your team can focus on what comes next.

Create account

Create your account, connect a repository and review your proposed setup before approving a run.