[JIRA] (JENKINS-57430) Getting issue when using github

0 views
Skip to first unread message

vmartin@devicebits.com (JIRA)

unread,
May 13, 2019, 8:46:03 AM5/13/19
to jenkinsc...@googlegroups.com
Valerian Martin created an issue
 
Jenkins / Bug JENKINS-57430
Getting issue when using github
Issue Type: Bug Bug
Assignee: Kirill Merkushev
Components: github-api-plugin, github-branch-source-plugin, github-plugin
Created: 2019-05-13 12:45
Priority: Blocker Blocker
Reporter: Valerian Martin

Getting the next error when scanning an organization:

java.lang.IllegalArgumentException: No enum constant org.kohsuke.github.GHEvent.CHECK_RUN
 at java.lang.Enum.valueOf(Enum.java:238)
 at org.kohsuke.github.GHHook.getEvents(GHHook.java:32)
 at org.jenkinsci.plugins.github.webhook.WebhookManager$7.applyNullSafe(WebhookManager.java:284)
 at org.jenkinsci.plugins.github.webhook.WebhookManager$7.applyNullSafe(WebhookManager.java:281)
 at org.jenkinsci.plugins.github.util.misc.NullSafeFunction.apply(NullSafeFunction.java:18)
 at com.google.common.collect.Iterators$8.next(Iterators.java:812)
 at com.google.common.collect.Iterables$3.next(Iterables.java:508)
 at com.google.common.collect.Iterables$3.next(Iterables.java:501)
 at com.google.common.collect.Iterators$5.hasNext(Iterators.java:544)
 at com.google.common.collect.Lists.newArrayList(Lists.java:138)
 at com.google.common.collect.ImmutableSet.copyOf(ImmutableSet.java:286)
 at com.google.common.collect.ImmutableSet.copyOf(ImmutableSet.java:271)
 at org.jenkinsci.plugins.github.util.FluentIterableWrapper.toSet(FluentIterableWrapper.java:155)
 at org.jenkinsci.plugins.github.webhook.WebhookManager$2.applyNullSafe(WebhookManager.java:191)
 at org.jenkinsci.plugins.github.webhook.WebhookManager$2.applyNullSafe(WebhookManager.java:175)
 at org.jenkinsci.plugins.github.util.misc.NullSafeFunction.apply(NullSafeFunction.java:18)
 at com.google.common.collect.Iterators$8.next(Iterators.java:812)
 at com.google.common.collect.Iterators$7.computeNext(Iterators.java:648)
 at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:143)
 at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:138)
 at com.google.common.collect.Iterators$7.computeNext(Iterators.java:647)
 at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:143)
 at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:138)
 at com.google.common.collect.Lists.newArrayList(Lists.java:138)
 at com.google.common.collect.Lists.newArrayList(Lists.java:119)
 at org.jenkinsci.plugins.github.util.FluentIterableWrapper.toList(FluentIterableWrapper.java:147)
 at org.jenkinsci.plugins.github.webhook.WebhookManager$1.run(WebhookManager.java:127)
 at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:119)
 at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
 at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:59)
 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
 at java.util.concurrent.FutureTask.run(FutureTask.java:266)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
 at java.lang.Thread.run(Thread.java:748)

Also this doesn't allow to build Pull Requests automatically. This is happening on the most recent version of Jenkins - 2.164.3, github plugin version 1.29.4, github-branch-source plugin version 2.5.2

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

bitwiseman@gmail.com (JIRA)

unread,
May 14, 2019, 1:38:03 PM5/14/19
to jenkinsc...@googlegroups.com
Liam Newman assigned an issue to Liam Newman
Change By: Liam Newman
Assignee: Kirill Merkushev Liam Newman

bitwiseman@gmail.com (JIRA)

unread,
May 14, 2019, 2:10:02 PM5/14/19
to jenkinsc...@googlegroups.com
Liam Newman commented on Bug JENKINS-57430
 
Re: Getting issue when using github

Valerian Martin
This is happening when you scan the organization from the Jenkins UI or are you seeing this when webhook fires and starts a scan?

It looks like the underlying issue is that the (external to Jenkins project) GitHub API package doesn't support that webhook event type. We'll need to file an issue with that project: https://github.com/kohsuke/github-api

As a workaround, you should be able to edit the webhooks for that repo (or the org as whole) and set you Jenkins webhook to not include the "check run" or "check suite" events.

https://github.com/organizations/YOUR_ORG/settings/hooks
https://github.com/YOUR_ORG/YOUR_REPO/settings/hooks

bitwiseman@gmail.com (JIRA)

unread,
May 14, 2019, 2:14:02 PM5/14/19
to jenkinsc...@googlegroups.com
Liam Newman edited a comment on Bug JENKINS-57430
[~alphaomega]

This is happening when you scan the organization from the  Jenkins UI or are you seeing this when webhook fires and starts a scan?

It looks like the underlying issue is that the (external to Jenkins project)  GitHub API package doesn't support that webhook event type.  We'll need to file an issue with that project: https://github.com/kohsuke/github-api

As a workaround, you should be able to edit the webhooks for that repo (or the org as whole) and set you Jenkins webhook to not include the "check run" or "check suite" events.

  

In  the links below, edit any Jenkins webhooks to "Let me select individual events".

https://github.com/organizations/YOUR_ORG/settings/hooks
https://github.com/YOUR_ORG/YOUR_REPO/settings/hooks


Please tell me if that works.

bitwiseman@gmail.com (JIRA)

unread,
May 14, 2019, 2:15:02 PM5/14/19
to jenkinsc...@googlegroups.com
Liam Newman edited a comment on Bug JENKINS-57430
[~alphaomega]
This is happening when you scan the organization from the  Jenkins UI or are you seeing this when webhook fires and starts a scan?

It looks like the underlying issue is that the (external to Jenkins project)  GitHub API package doesn't support that webhook event type.  We'll need to file an issue with that project: https://github.com/kohsuke/github-api .  Filed: https://github.com/kohsuke/github-api/issues/519

As a workaround, you should be able to edit the webhooks for that repo (or the org as whole) and set you Jenkins webhook to not include the "check run" or "check suite" events.  

In  the links below, edit any Jenkins webhooks to "Let me select individual events".

https://github.com/organizations/YOUR_ORG/settings/hooks
https://github.com/YOUR_ORG/YOUR_REPO/settings/hooks


Please tell me if that works.

bitwiseman@gmail.com (JIRA)

unread,
May 14, 2019, 2:19:02 PM5/14/19
to jenkinsc...@googlegroups.com
Liam Newman assigned an issue to Kirill Merkushev
 
Change By: Liam Newman
Assignee: Liam Newman Kirill Merkushev

bitwiseman@gmail.com (JIRA)

unread,
May 14, 2019, 2:20:03 PM5/14/19
to jenkinsc...@googlegroups.com
Liam Newman assigned an issue to Liam Newman
Change By: Liam Newman
Assignee: Kirill Merkushev Liam Newman

vmartin@devicebits.com (JIRA)

unread,
May 15, 2019, 5:14:02 AM5/15/19
to jenkinsc...@googlegroups.com
Valerian Martin commented on Bug JENKINS-57430
 
Re: Getting issue when using github

Hi,

I saw this happening when triggered via webhooks.

Ill check the workaround

vmartin@devicebits.com (JIRA)

unread,
May 15, 2019, 5:21:02 AM5/15/19
to jenkinsc...@googlegroups.com

Did as suggested. On Pull Request webhook trigger via push , the pull request tests still didn't start automatically, however didn't get any errors in the jenkins log at the same time.

Will investigate but would be great if you could point into the right direction in case you might know the issue

ataylor@cloudbees.com (JIRA)

unread,
Nov 27, 2019, 3:18:04 PM11/27/19
to jenkinsc...@googlegroups.com

This should be fixed by https://github.com/github-api/github-api/pull/622 for at least the CHECK_RUN event so it will stop this particular bug. There are many other unchecked events though that need to be added. That is a whole other problem

This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

ataylor@cloudbees.com (JIRA)

unread,
Nov 27, 2019, 3:18:05 PM11/27/19
to jenkinsc...@googlegroups.com

ataylor@cloudbees.com (JIRA)

unread,
Nov 27, 2019, 3:18:06 PM11/27/19
to jenkinsc...@googlegroups.com
Alex Taylor started work on Bug JENKINS-57430
 
Change By: Alex Taylor
Status: Open In Progress

ataylor@cloudbees.com (JIRA)

unread,
Nov 27, 2019, 3:18:06 PM11/27/19
to jenkinsc...@googlegroups.com
Alex Taylor assigned an issue to Alex Taylor
Change By: Alex Taylor
Assignee: Liam Newman Alex Taylor

bitwiseman@gmail.com (JIRA)

unread,
May 5, 2020, 7:20:04 PM5/5/20
to jenkinsc...@googlegroups.com
Change By: Liam Newman
Status: In Review Resolved
Resolution: Fixed
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo

bitwiseman@gmail.com (JIRA)

unread,
May 5, 2020, 7:20:05 PM5/5/20
to jenkinsc...@googlegroups.com
Liam Newman closed an issue as Fixed
Change By: Liam Newman
Status: Resolved Closed
Reply all
Reply to author
Forward
0 new messages