Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Either don't fail or retry publishing checks results #308

Closed
timja opened this issue Oct 7, 2021 · 0 comments · Fixed by #387
Closed

Either don't fail or retry publishing checks results #308

timja opened this issue Oct 7, 2021 · 0 comments · Fixed by #387
Labels

Comments

@timja
Copy link
Member

timja commented Oct 7, 2021

Saw today:

[2021-10-07T11:29:57.037Z] Could not fetch revision from repository: org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator::https://api.github.com::HMCTS::document-management-store-app and branch: PR-1138

java.lang.IllegalStateException: Could not fetch revision from repository: org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator::https://api.github.com::HMCTS::document-management-store-app and branch: PR-1138

While publishing to GitHub checks

Full stacktrace:

12:29:59  hudson.remoting.ProxyException: java.io.FileNotFoundException: https://api.github.com/repos/hmcts/document-management-store-app/pulls/1138
12:29:59  	at org.kohsuke.github.extras.okhttp3.ObsoleteUrlFactory$OkHttpURLConnection.getInputStream(ObsoleteUrlFactory.java:490)
12:29:59  	at org.kohsuke.github.extras.okhttp3.ObsoleteUrlFactory$DelegatingHttpsURLConnection.getInputStream(ObsoleteUrlFactory.java:1204)
12:29:59  	at org.kohsuke.github.GitHubHttpUrlConnectionClient$HttpURLConnectionResponseInfo.bodyStream(GitHubHttpUrlConnectionClient.java:196)
12:29:59  	at org.kohsuke.github.GitHubResponse$ResponseInfo.getBodyAsString(GitHubResponse.java:314)
12:29:59  	at org.kohsuke.github.GitHubResponse.parseBody(GitHubResponse.java:92)
12:29:59  	at org.kohsuke.github.Requester.lambda$fetch$1(Requester.java:76)
12:29:59  	at org.kohsuke.github.GitHubClient.createResponse(GitHubClient.java:455)
12:29:59  	at org.kohsuke.github.GitHubClient.sendRequest(GitHubClient.java:406)
12:29:59  Caused: hudson.remoting.ProxyException: org.kohsuke.github.GHFileNotFoundException: https://api.github.com/repos/hmcts/document-management-store-app/pulls/1138 {"message":"Not Found","documentation_url":"https://docs.github.com/rest/reference/pulls#get-a-pull-request"}
12:29:59  	at org.kohsuke.github.GitHubClient.interpretApiError(GitHubClient.java:486)
12:29:59  	at org.kohsuke.github.GitHubClient.sendRequest(GitHubClient.java:414)
12:29:59  	at org.kohsuke.github.GitHubClient.sendRequest(GitHubClient.java:358)
12:29:59  	at org.kohsuke.github.Requester.fetch(Requester.java:76)
12:29:59  	at org.kohsuke.github.GHRepository.getPullRequest(GHRepository.java:1406)
12:29:59  	at org.jenkinsci.plugins.github_branch_source.GitHubSCMSource.retrieve(GitHubSCMSource.java:1626)
12:29:59  	at jenkins.scm.api.SCMSource.fetch(SCMSource.java:582)
12:29:59  	at io.jenkins.plugins.checks.github.SCMFacade.findRevision(SCMFacade.java:156)
12:29:59  Caused: hudson.remoting.ProxyException: java.lang.IllegalStateException: Could not fetch revision from repository: org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator::https://api.github.com::HMCTS::document-management-store-app and branch: PR-1138
12:29:59  	at io.jenkins.plugins.checks.github.SCMFacade.findRevision(SCMFacade.java:159)
12:29:59  	at io.jenkins.plugins.checks.github.GitHubSCMSourceChecksContext.resolveHeadSha(GitHubSCMSourceChecksContext.java:131)
12:29:59  	at io.jenkins.plugins.checks.github.GitHubSCMSourceChecksContext.<init>(GitHubSCMSourceChecksContext.java:46)
12:29:59  	at io.jenkins.plugins.checks.github.GitHubSCMSourceChecksContext.fromRun(GitHubSCMSourceChecksContext.java:24)
12:29:59  	at io.jenkins.plugins.checks.github.GitHubChecksPublisherFactory.createPublisher(GitHubChecksPublisherFactory.java:42)
12:29:59  	at io.jenkins.plugins.checks.api.ChecksPublisherFactory.lambda$fromRun$0(ChecksPublisherFactory.java:89)
12:29:59  	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195)
12:29:59  	at java.base/java.util.Spliterators$IteratorSpliterator.tryAdvance(Spliterators.java:1812)
12:29:59  	at java.base/java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:127)
12:29:59  	at java.base/java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:502)
12:29:59  	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:488)
12:29:59  	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
12:29:59  	at java.base/java.util.stream.FindOps$FindOp.evaluateSequential(FindOps.java:150)
12:29:59  	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
12:29:59  	at java.base/java.util.stream.ReferencePipeline.findFirst(ReferencePipeline.java:543)
12:29:59  	at io.jenkins.plugins.checks.api.ChecksPublisherFactory.fromRun(ChecksPublisherFactory.java:92)
12:29:59  	at io.jenkins.plugins.checks.api.ChecksPublisherFactory.fromRun(ChecksPublisherFactory.java:69)
12:29:59  	at io.jenkins.plugins.junit.checks.JUnitChecksPublisher.publishChecks(JUnitChecksPublisher.java:41)
12:29:59  	at hudson.tasks.junit.JUnitResultArchiver.parseAndSummarize(JUnitResultArchiver.java:303)
12:29:59  	at hudson.tasks.junit.pipeline.JUnitResultsStepExecution.run(JUnitResultsStepExecution.java:63)
12:29:59  	at hudson.tasks.junit.pipeline.JUnitResultsStepExecution.run(JUnitResultsStepExecution.java:29)
12:29:59  	at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
12:29:59  	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
12:29:59  	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
12:29:59  	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
12:29:59  	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
12:29:59  	at java.base/java.lang.Thread.run(Thread.java:834)

cc @XiongKezhi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant