Giter Site home page Giter Site logo

Comments (10)

janinko avatar janinko commented on June 27, 2024

If the pull request can be merged automatically, the plugin tests the merged state.
If the pull request can't be merged automatically, there is no way how the plugin can test the merged state. But it at least try to test the source branch.

If you want to retest the pull request against updated master (and it's still automatically mergeable), you can comment with retest this please. Testing the PR automatically every time master is updated isn't wise.

from ghprb.

ericbmerritt avatar ericbmerritt commented on June 27, 2024

@janinko I would be really curious to know why it isn't wise. It seems that once master changes then the previous build is no longer valid. At the very least it should remove the 'this is good to merge' not from the pull request because it may very well not be good to merge, the thing it previously tested and built is no longer valid.

It seems strange to me to force a manual ping in a situation where the system can pick the change up automatically and do the right thing.

The only thing I can think of that might be a problem is that you may end up doing a lot of rebuilds. However, if thats an issues, it should simple be an option to disable it the feature.

from ghprb.

janinko avatar janinko commented on June 27, 2024

Yes, you are right. I'll make an option.

from ghprb.

ericbmerritt avatar ericbmerritt commented on June 27, 2024

thanks janinko. Two questions related to that. Will you close this issue when you add this and are you planning on doing a release to the normal plugin release path any time soon? It is still at 1.2 and I think this plugin is now at 1.4

from ghprb.

janinko avatar janinko commented on June 27, 2024
  1. Yes I will.
  2. I released version 1.5.1 9 days ago and it should be in Jenkins Update Center.

from ghprb.

tmbo avatar tmbo commented on June 27, 2024

@janinko whats the status of this issue? Is it fixed?

from ghprb.

vmpj avatar vmpj commented on June 27, 2024

@janinko I also think this is a critical issue. We just had an issue where passing PRs were merged and broke the build, because they were incompatible. Once the first PR has been merged the second one should not have had an "all good" status anymore if the target branch has changed.

@ericbmerritt have you found any other way to handle this case? Thx

from ghprb.

vmpj avatar vmpj commented on June 27, 2024

The work-around I'm using now is to create a separate jenkins job which merges the pull request if the build succeeds. That job is only triggered with at trigger phase like "merge it".
So instead of clicking "Merge pull request" in github, you comment "merge it".
Jenkins/ghprb will try to test the PR merged with the latest target branch and merge it if succeeds.

That way you can never merge a stale PR and break the build.

But I still think ghprb should at least remove the "all good" message if it detects that target branch has changed.

from ghprb.

ehberger avatar ehberger commented on June 27, 2024

Last discussion on this was quite a while ago, but this would still be very useful. Has there been any progress on this issue? We'd also like to re-test PRs when the merge target has changed.

from ghprb.

walliski avatar walliski commented on June 27, 2024

👍 For this one. Although building all pull requests again when something changes in the target branch sounds dumb, it is even dumber having to trigger all builds manually when something changes -_-.

@janinko (Sorry for ping, but really would want this fixed :/ )

from ghprb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.