I have two branches, develop and feature/cool_feature. When I create a PR to merge feature/cool_feature into develop, our Azure Devops will automatically run a pipeline for this PR. My assumption is that the resulting artifacts contain both the feature/cool_feature and the current state of develop. Is this correct?
I've looked at several pages, but I cannot seem to find a definitive answer:
- https://learn.microsoft.com/en-us/azure/devops/repos/git/pull-requests?view=azure-devops&tabs=browser
- https://learn.microsoft.com/en-us/azure/devops/repos/git/about-pull-requests?view=azure-devops
- https://learn.microsoft.com/en-us/azure/devops/pipelines/release/deploy-pull-request-builds?view=azure-devops
The reason I'm doubting is because we're reviewing our test strategy for this project. When determining if we should test the both the PR build and the build of develop after the PR is completed, we got into a discussion on the likelihood that the PR build is different than the "after-merge" develop build (both use the same pipeline). Also considering if we should make a merge of target branch (develop in my example) into the source branch (feature/cool_feature) mandatory before completing the PR. Azure does not seem to enforce this, it just checks for merge conflicts.
EDIT I did find this question: https://developercommunity.visualstudio.com/t/pr-build-fails-but-branch-build-succeeds/1194209 This seems to confirm my assumption.