Comments (8)
You are right, there should be a certain number of retries before moving on. The null check is actually waiting for github to finish deciding if the pr can be merged or not.
Have you seen an instance where it hangs forever?
from ghprb-plugin.
Yes, this is happening frequently on our instance after we upgraded. You should be able to get it by triggering a build, and merging the PR while it is in the queue.
from ghprb-plugin.
Incidentally, relating to the commented out check below that: if the PR was previously mergeable and now is not, then there's a good chance that github will have removed the ref that it uses to mark the merge commit, and so things won't work. In that case, it may be best to just abort the build.
from ghprb-plugin.
I was thinking that same thing, about aborting the build, but it is possible that the build won't be relying on the merged version anyways.
I will get a patch out today that limits to one minute of waiting for github to settle. However, if you merge the PR while it is in the queue that will cause other kinds of issues. I will have it check for isMerged also for failing.
from ghprb-plugin.
Well, unfortunately we have a busy instance, so it's very common for developers to add commits or even merge or close PRs while a build is still in the queue. It would be nice if that didn't cause problems, but as it is we have workarounds for most things.
This one we can't work around, however, as it never progresses past the start of the build!
from ghprb-plugin.
I am going to punt on aborting the build, and just rely on comments to notify the user what is going on when a build fails for strange reasons
from ghprb-plugin.
It would be significantly preferable for us if the build were to abort rather than failing. Failures usually mean the build or tests failed, which means it needs attention from the developers. This sort of failure is just github and the builder getting out of sync, and can safely be ignored. So it's a pain if it's a "failure", because it means people start ignoring failures.
As a reference point, our current PR builder setup uses its first build step to check exactly what you're checking here - has the PR merge status changed, has the head commit changed? If so, we abort the build, because it's either going to fail or be uninteresting.
Since it sounds like you're considering doing that here, I'd just like to put in a vote for aborting if things look wrong!
from ghprb-plugin.
I would do that, but there are users that don't really care if the PR is open or closed, or that there is a merge sha or not. That kind of functionality belongs in an extension or config setting instead so users can decide for themselves what should happen. You are welcome to open a PR that does so, or write up another issue as an enhancement request for said functionality.
from ghprb-plugin.
Related Issues (20)
- Unable to connect to GitHub HOT 2
- Worker nodes aren't started when pipeline requests to run parallel parts on same node
- Log4j in ghprb? HOT 1
- Trigger based on directories HOT 1
- Pull request approval without fetch
- usage of org-list may incur github rate limit
- Publish multiple github-statuses from the same pipeline job HOT 1
- ${ghprbActualCommit} does not pick up current commit from hook if an additional branch is specified. HOT 2
- Create new pull request with a comments,but not be triggered. Comment a gain and reopen the pull request,then be triggered
- Restrict Specific branch for Pull request
- What kind of "actions" does the Pull request Webhook of the Github pull request builder support?
- What kind of "actions" does the Pull request Webhook of the Github pull request builder support? HOT 1
- Plug-in Question
- Changing the status context (name) in the config while a job is running leaves the old status in pending forever
- Changing(rotating) plugin credentials take no effect until Jenkins is restarted due to cached repo object
- Is this plugin is not maintained anymore? if so, is there any alternative plugin for it ? HOT 1
- Can Help WIth Plugin Upgrade
- Warning: The currently installed plugin version may not be safe to use. Please review the following security notices:
- Not able to trigger jenkins job by adding specific labels
- When A PR is not mergeable the Github status check does not get updated
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ghprb-plugin.