Run test before merge PR

Maxime Ball's Avatar

Maxime Ball

23 Jul, 2019 09:41 AM

We have sometime the following situation:
We have two branches with impact on the tests from each other. Both test sequences in PR passed successfully.
The first PR is merged, no problem. The second one is merged, some tests fail because the results are not the same anymore. Nothing was indicated since there was no conflicts. Therefore, we had to create a new PR or fix the tests in develop.

It would be helpful if it was possible to build and run tests before actually merging a pull request instead of the other way on merge action, so we could make the changes in the same PR. Is it possible to do that?

  1. 1 Posted by Owen McDonnell on 23 Jul, 2019 02:40 PM

    Owen McDonnell's Avatar

    If i understand correctly, you want to trigger a build from within a build, correct?
    If so, you could make an API call from on_success: config section.

  2. 2 Posted by Maxime Ball on 23 Jul, 2019 02:58 PM

    Maxime Ball's Avatar

    That’s not really what I want to do, sorry for the lack of clarity.
    After starting a merge of a PR on GitHub, I want to abort the merge if the tests have failed.

  3. 3 Posted by Owen McDonnell on 25 Jul, 2019 03:42 PM

    Owen McDonnell's Avatar

    After the first branch is merged you can go to the other branches "virtual merge" build and hit RE-BUILD PR button. This will expose any new test errors due to previous merge.

  4. Ilya Finkelshteyn closed this discussion on 24 Sep, 2019 09:01 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

07 Jul, 2020 06:21 PM
07 Jul, 2020 03:15 PM
05 Jul, 2020 02:33 AM
03 Jul, 2020 07:29 PM
03 Jul, 2020 03:53 AM


02 Jul, 2020 09:09 PM
02 Jul, 2020 03:24 PM
01 Jul, 2020 01:12 PM
30 Jun, 2020 04:26 PM
25 Jun, 2020 05:54 PM
24 Jun, 2020 08:11 AM