Giter Club home page Giter Club logo

Comments (12)

lavalamp avatar lavalamp commented on June 18, 2024

In the logs:

E1002 00:38:55.882184       1 github.go:611] Failed to create merge comment: PUT https://api.github.com/repos/kubernetes/kubernetes/pulls/14761/merge: 405 Base branch was modified. Review and try the merge again. []
E1002 00:38:55.882298       1 submit-queue.go:159] Error running e2e test: PUT https://api.github.com/repos/kubernetes/kubernetes/pulls/14761/merge: 405 Base branch was modified. Review and try the merge again. []

from contrib.

lavalamp avatar lavalamp commented on June 18, 2024

Probably it just needs to re-ask for the mergability data in this case?

from contrib.

brendandburns avatar brendandburns commented on June 18, 2024

Yeah, those are github errors that happen when master is merged in the
middle of a attempt to merge a different PR. I think this only happens
if we manually merge things...

--brendan

On Fri, Oct 2, 2015 at 11:01 AM, Daniel Smith [email protected]
wrote:

In the logs:

E1002 00:38:55.882184 1 github.go:611] Failed to create merge comment: PUT https://api.github.com/repos/kubernetes/kubernetes/pulls/14761/merge: 405 Base branch was modified. Review and try the merge again. []
E1002 00:38:55.882298 1 submit-queue.go:159] Error running e2e test: PUT https://api.github.com/repos/kubernetes/kubernetes/pulls/14761/merge: 405 Base branch was modified. Review and try the merge again. []


Reply to this email directly or view it on GitHub
#140 (comment).

from contrib.

eparis avatar eparis commented on June 18, 2024

Anyone know what commit of submit-queue is running?

from contrib.

brendandburns avatar brendandburns commented on June 18, 2024

It doesn't have your latest, it was built ~ last friday?

On Fri, Oct 2, 2015 at 11:54 AM, Eric Paris [email protected]
wrote:

Anyone know what commit of submit-queue is running?


Reply to this email directly or view it on GitHub
#140 (comment).

from contrib.

eparis avatar eparis commented on June 18, 2024

https://developer.github.com/v3/pulls/#merge-a-pull-request-merge-button

I'll dig a little, I bet the go-github api is grabbing the merge HEAD sha and providing that in PUT request to the github api. In reality we don't want to provide that at all, instead of, as @lavalamp suggested, updating the mergability...

from contrib.

eparis avatar eparis commented on June 18, 2024

nope... looks like the github API won't even take that SHA.... https://github.com/google/go-github/blob/master/github/pulls.go#L257

from contrib.

lavalamp avatar lavalamp commented on June 18, 2024

There's code in there that updates the mergability if it's not present,
right? Can we just rerun whatever that does if we get this error?

On Fri, Oct 2, 2015 at 12:05 PM, Eric Paris [email protected]
wrote:

nope... looks like the github API won't even take that SHA....
https://github.com/google/go-github/blob/master/github/pulls.go#L257


Reply to this email directly or view it on GitHub
#140 (comment).

from contrib.

eparis avatar eparis commented on June 18, 2024

The 'mergeability' information isn't used at all here, updating it would do nothing (other than add a delay which might actually fix the problem). According to their docs we shouldn't get this message since we aren't passing a SHA in the merge request.

So I have no real/good idea...

from contrib.

eparis avatar eparis commented on June 18, 2024

My only guess is that this happens if we try to merge at the same instant that the 'mergeability' call would have returned nil. So we can either just wait 2 seconds and try again here, or we can use the IsMergeable() call. The former seems more 'correct' but the later seems easier :)

I'll code the later.

from contrib.

lavalamp avatar lavalamp commented on June 18, 2024

I see. SGTM

On Fri, Oct 2, 2015 at 12:17 PM, Eric Paris [email protected]
wrote:

My only guess is that this happens if we try to merge at the same instant
that the 'mergeability' call would have returned nil. So we can either just
wait 2 seconds and try again here, or we can use the IsMergeable() call.
The former seems more 'correct' but the later seems easier :)

I'll code the later.


Reply to this email directly or view it on GitHub
#140 (comment).

from contrib.

mohammedri avatar mohammedri commented on June 18, 2024

Was there ever a solution posted for this @eparis ?

from contrib.

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.