#122 Can't merge fix from PR
Closed by bgoncalv. Opened by bgoncalv.

When pipeline code is changed the automation to merge the PR doesn't work

PR[GHPullRequest@5eaa0092[base=org.kohsuke.github.GHCommitPointer@2f5f87a6,head=org.kohsuke.github.GHCommitPointer@2bf474ad,additions=2,commits=1,merged=false,mergeable=true,deletions=2,assignee=<null>,assignees={},state=open,number=236,comments=3,labels=[],title=fix parse specfile when Source contains local files,milestone=<null>,locked=false,responseHeaderFields={null=[HTTP/1.1 200 OK], X-Accepted-OAuth-Scopes=[], Server=[GitHub.com], Access-Control-Allow-Origin=[*], Last-Modified=[Tue, 30 Jun 2020 12:32:46 GMT], Referrer-Policy=[origin-when-cross-origin, strict-origin-when-cross-origin], X-Frame-Options=[deny], Strict-Transport-Security=[max-age=31536000; includeSubdomains; preload], Access-Control-Expose-Headers=[ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, Deprecation, Sunset], X-RateLimit-Remaining=[4966], X-GitHub-Media-Type=[unknown, github.v3], Content-Security-Policy=[default-src 'none'], Content-Encoding=[gzip], X-XSS-Protection=[1; mode=block], X-GitHub-Request-Id=[A13A:7FE9:662EB3:E9F68A:5EFB3158], Content-Type=[application/json; charset=utf-8], Status=[200 OK], Transfer-Encoding=[chunked], X-Content-Type-Options=[nosniff], X-RateLimit-Reset=[1593522784], Date=[Tue, 30 Jun 2020 12:34:32 GMT], Cache-Control=[private, max-age=60, s-maxage=60], ETag=[W/"785b956f29a3732183f9ff79b16863ef"], Vary=[Accept-Encoding, Accept, X-Requested-With, Accept, Authorization, Cookie, X-GitHub-OTP], X-RateLimit-Limit=[5000], X-OAuth-Scopes=[admin:repo_hook, notifications, repo]},url=https://api.github.com/repos/CentOS-PaaS-SIG/upstream-fedora-pipeline/pulls/236,id=441917273]] is anonymous: false
[Pipeline] }
Lock released on resource [merge-lock]
[Pipeline] // lock
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // container
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // node
[Pipeline] }
[Pipeline] // podTemplate
[Pipeline] End of Pipeline
Setting status of 09e7f7ff39ea088918cf9d2993898219c97dcc57 to FAILURE with url https://jenkins-continuous-infra.apps.ci.centos.org/job/fedora-stage-pipeline-merge/136/ and message: 'Build finished. '
Using context: Merge PR
java.io.IOException: Server returned HTTP response code: 403 for URL: https://api.github.com/repos/CentOS-PaaS-SIG/upstream-fedora-pipeline/pulls/236/merge
    at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1919)
    at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1515)
    at java.base/java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:527)
    at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:334)
    at org.kohsuke.github.Requester.parse(Requester.java:615)
Caused: java.io.IOException: Server returned HTTP response code: 403 for URL: https://api.github.com/repos/CentOS-PaaS-SIG/upstream-fedora-pipeline/pulls/236/merge
    at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
    at java.base/sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1969)
    at java.base/sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1964)
    at java.base/java.security.AccessController.doPrivileged(Native Method)
    at java.base/sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1963)
    at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1531)
    at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1515)
    at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:250)
    at org.kohsuke.github.Requester.parse(Requester.java:625)
Caused: org.kohsuke.github.HttpException: Server returned HTTP response code: 403, message: 'Forbidden' for URL: https://api.github.com/repos/CentOS-PaaS-SIG/upstream-fedora-pipeline/pulls/236/merge
    at org.kohsuke.github.Requester.parse(Requester.java:646)
    at org.kohsuke.github.Requester.parse(Requester.java:607)
    at org.kohsuke.github.Requester._to(Requester.java:285)
Caused: org.kohsuke.github.HttpException: {"message":"At least one email address must be verified to do that.","documentation_url":"https://help.github.com/articles/adding-an-email-address-to-your-github-account"}
    at org.kohsuke.github.Requester.handleApiError(Requester.java:703)
    at org.kohsuke.github.Requester._to(Requester.java:306)
    at org.kohsuke.github.Requester.to(Requester.java:247)
    at org.kohsuke.github.Requester.to(Requester.java:235)
    at org.kohsuke.github.GHPullRequest.merge(GHPullRequest.java:406)
    at org.kohsuke.github.GHPullRequest.merge(GHPullRequest.java:388)
    at org.kohsuke.github.GHPullRequest.merge(GHPullRequest.java:374)
    at org.jenkinsci.plugins.ghprb.GhprbPullRequestMerge.perform(GhprbPullRequestMerge.java:213)
    at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:80)
    at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:67)
    at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
    at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
    at java.base/java.lang.Thread.run(Thread.java:834)
Finished: FAILURE

https://jenkins-continuous-infra.apps.ci.centos.org/job/fedora-stage-pipeline-merge/136/console

@jbieren do you know what can be causing this? It seems a recent issue, could be that our token expired?

@bgoncalv Something is going on with the paas-bot github account. Others have noticed too. I will try to get more info

Caused: org.kohsuke.github.HttpException: {"message":"At least one email address must be verified to do that.","documentation_url":"https://help.github.com/articles/adding-an-email-address-to-your-github-account"}

Ari left Red Hat and is email account was disabled, which is the email paas-bot used. We are working on getting a new email address on the account. That should fix this

https://github.com/CentOS-PaaS-SIG/upstream-fedora-pipeline/pull/237

Also changed it in the Jenkins main configuration to use cp-paas-bot for ghprb plugin connections

PR 237 merged successfully with the automation. This issue is fixed now I believe

thanks, closing this ticket.

Metadata Update from @bgoncalv:
- Issue status updated to: Closed (was: Open)

Metadata