Summary: | JIPP for jta | ||
---|---|---|---|
Product: | Community | Reporter: | Tom Jenkinson <tom.jenkinson> |
Component: | CI-Jenkins | Assignee: | CI Admin Inbox <ci.admin-inbox> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | blocker | ||
Priority: | P1 | CC: | dmitry.kornilov, frederic.gurr, mikael.barbero, webmaster |
Version: | unspecified | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Windows 10 | ||
Whiteboard: |
Description
Tom Jenkinson
2018-09-05 06:33:41 EDT
Webmasters, please address this issue. It was submitted 6 days ago and there is still no progress. It's blocking us. We had to address some issues that kept us from provisioning JIPPs on the new infra. This issues are now resolved, and we will work trough the backlog of JIPP requests. Thanks for your patience. (In reply to Frederic Gurr from comment #2) > We had to address some issues that kept us from provisioning JIPPs on the > new infra. This issues are now resolved, and we will work trough the backlog > of JIPP requests. > > Thanks for your patience. Thanks for quick reply, Frederic! As per https://github.com/eclipse-ee4j/jsonp/wiki/JSONP-release-job I would also like to request: * OSSRH space for project and access permissions * GPG plugin setup Frederic, please give priority to this issue. We will provision a JIPP for jta early next week. Regarding plugins, I believe I need at least SSH agent one so that the key for the github repo can be injected so that it can tag and push to GitHub please. And I would like the following additional plugin please: * GitHub Pull Request Builder Provisioning is in progress... The jta JIPP is now setup at https://jenkins.eclipse.org/jta/ Committers should now be able to login and create jobs. Please note that you will need to login with your _email_ address as your username. GitHub PullRequest builder and SSH agent have been installed. If you require additional plugins feel free to comment on this bug and list them. Next up (next week according to our schedule https://docs.google.com/spreadsheets/d/1O2NA6YddYQy34riTabQd_lkNwwFzKq1HevxCJYNXrv4/edit?usp=sharing): - GPG signing - OSSRH setup - GitHub write access Thanks! I managed to create a job but it failed with an error saying: ERROR: Maven Home /opt/tools/apache-maven/latest doesnt exist https://jenkins.eclipse.org/jta/job/eclipse-ee4j_jta-api/1/console I assumed Maven would be available by default but it seems not so please may I request the following: * Maven * JDK Hopefully the latest supported of each should be OK. Another issue I am having is that when using the GitHub Pull Request Builder it seems it doesn't have credentials to add a comment: https://jenkins.eclipse.org/jta/job/eclipse-ee4j_jta-api/3/console (In reply to Tom Jenkinson from comment #11) > Thanks! > I managed to create a job but it failed with an error saying: > > ERROR: Maven Home /opt/tools/apache-maven/latest doesnt exist > > https://jenkins.eclipse.org/jta/job/eclipse-ee4j_jta-api/1/console > > I assumed Maven would be available by default but it seems not so please may > I request the following: > * Maven > * JDK > > Hopefully the latest supported of each should be OK. We're on it. (In reply to Tom Jenkinson from comment #12) > Another issue I am having is that when using the GitHub Pull Request Builder > it seems it doesn't have credentials to add a comment: > https://jenkins.eclipse.org/jta/job/eclipse-ee4j_jta-api/3/console GitHub write access is not setup yet. It's scheduled to be set up next week (see comment 10). (In reply to Frederic Gurr from comment #14) > (In reply to Tom Jenkinson from comment #12) > > Another issue I am having is that when using the GitHub Pull Request Builder > > it seems it doesn't have credentials to add a comment: > > https://jenkins.eclipse.org/jta/job/eclipse-ee4j_jta-api/3/console > GitHub write access is not setup yet. It's scheduled to be set up next week > (see comment 10). Sorry, I hadn't fully appreciated that the "commenter" - needed that but understood now thanks. (In reply to Tom Jenkinson from comment #11) > Thanks! > I managed to create a job but it failed with an error saying: > > ERROR: Maven Home /opt/tools/apache-maven/latest doesnt exist > > https://jenkins.eclipse.org/jta/job/eclipse-ee4j_jta-api/1/console > > I assumed Maven would be available by default but it seems not so please may > I request the following: > * Maven > * JDK > > Hopefully the latest supported of each should be OK. The default configuration was wrong, sorry about that. It should be fixed now. Please try again. Thanks, the maven is working now. Which Maven groupId(s?) this project is(are?) using? javax.transaction? (In reply to Mikaël Barbero from comment #18) > Which Maven groupId(s?) this project is(are?) using? javax.transaction? There is a requirement to change the groupId as per: https://github.com/eclipse-ee4j/jta-api/pull/7/files So it should be: <groupId>jakarta.transaction</groupId> <artifactId>jakarta.transaction-api</artifactId> I've triggered the creation of your OSSRH repositories https://issues.sonatype.org/browse/OSSRH-42899 Thanks, I see the OSSRH is resolved so I assume I have to do some maven settings to be able to do the deploy? Also is GitHub provisioning and GPG is still on target for this week? Thanks for your help so far! I still have to do some configuration for both github and ossrh. The target is still this week. Thanks for your patience. https://issues.sonatype.org/browse/OSSRH-42899 is now resolved. I've configured you JIPP to let it sign artifacts with GGP and publish to Maven central. Note to do that, you will need to follow instructions over here https://wiki.eclipse.org/EE4J_Build Next up: GitHub write access. Your JIPP is now fully configured. Credentials for writing to GitHub have been added to your JIPP instance. The GitHub Pull Request Builder seems to only have the option to have "Anonymous connection" and so it isn't commenting on the pull. Also, I have just started getting: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile) on project jakarta.transaction-api: Fatal error compiling: tools.jar not found: /opt/java/openjdk/jre/../lib/tools.jar e.g. https://jenkins.eclipse.org/jta/job/eclipse-ee4j_jta-api/13/console I managed to solve the tools.jar issue but I still can't get the bot to comment on the PRs (In reply to Tom Jenkinson from comment #27) > I managed to solve the tools.jar issue For my own education what did you do? > but I still can't get the bot to > comment on the PRs I'm having a look. (In reply to Mikaël Barbero from comment #28) > (In reply to Tom Jenkinson from comment #27) > > I managed to solve the tools.jar issue > > For my own education what did you do? It was the fact that I was using the "system" version of the JDK rather than a specific one. I think there could have been some kind of a change in the infrastructure there (maybe as part of a JDK 11 upgrade?) anyway I fixed on JDK 8 now. > > > but I still can't get the bot to > > comment on the PRs > > I'm having a look. Thanks - I have a slighly different message when I use SSH agent: https://jenkins.eclipse.org/jta/job/eclipse-ee4j_jta-api-pulls/17/consoleFull Actually - it might not be different but it is an error message - thanks for looking. My bad, I forgot to configure the credentials for the GitHub Pull Request builder plugin. Please try again. (In reply to Mikaël Barbero from comment #31) > My bad, I forgot to configure the credentials for the GitHub Pull Request > builder plugin. Please try again. https://jenkins.eclipse.org/jta/job/eclipse-ee4j_jta-api-pulls/20/console it didn't seem to make a difference sorry :( did you try with removing your username from the "Admin list"? I (In reply to Mikaël Barbero from comment #33) > did you try with removing your username from the "Admin list"? I didn't yet - do you think that will help? I have removed by user name from the list but the build has not triggered yet. But doesn't it seem to be more something like the bot hasn't got the write permission? GitHub pull request #8 of commit 146d0e3f6f0ce9be3a83b9e31ee2bebbd3bfb445, no merge conflicts. Setting status of 146d0e3f6f0ce9be3a83b9e31ee2bebbd3bfb445 to PENDING with url https://jenkins.eclipse.org/jta/job/eclipse-ee4j_jta-api-pulls/21/ and message: 'Build started for merge commit.' FileNotFoundException means that the credentials Jenkins is using is probably wrong. Or the user account does not have write access to the repo. org.kohsuke.github.GHFileNotFoundException: {"message":"Not Found","documentation_url":"https://developer.github.com/v3/repos/statuses/#create-a-status"} at org.kohsuke.github.Requester.handleApiError(Requester.java:686) at org.kohsuke.github.Requester._to(Requester.java:293) at org.kohsuke.github.Requester.to(Requester.java:234) at org.kohsuke.github.GHRepository.createCommitStatus(GHRepository.java:1075) at org.jenkinsci.plugins.ghprb.extensions.status.GhprbSimpleStatus.createCommitStatus(GhprbSimpleStatus.java:283) at org.jenkinsci.plugins.ghprb.extensions.status.GhprbSimpleStatus.onBuildStart(GhprbSimpleStatus.java:195) at org.jenkinsci.plugins.ghprb.GhprbBuilds.onStarted(GhprbBuilds.java:144) at org.jenkinsci.plugins.ghprb.GhprbBuildListener.onStarted(GhprbBuildListener.java:20) at hudson.model.listeners.RunListener.fireStarted(RunListener.java:240) at hudson.model.Run.execute(Run.java:1811) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:429) Caused by: java.io.FileNotFoundException: https://api.github.com/repos/eclipse-ee4j/jta-api/statuses/<SHA> at sun.reflect.GeneratedConstructorAccessor226.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1944) at sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1939) at java.security.AccessController.doPrivileged(Native Method) at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1938) at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1508) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1492) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:263) at org.kohsuke.github.Requester.parse(Requester.java:612) at org.kohsuke.github.Requester.parse(Requester.java:594) at org.kohsuke.github.Requester._to(Requester.java:272) ... 11 more Caused by: java.io.FileNotFoundException: https://api.github.com/repos/eclipse-ee4j/jta-api/statuses/<SHA> at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1890) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1492) at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:347) at org.kohsuke.github.Requester.parse(Requester.java:602) ... 13 more I did find this: https://stackoverflow.com/questions/28481771/github-pull-request-builder-fails-due-to-java-io-filenotfoundexception (In reply to Tom Jenkinson from comment #34) > I (In reply to Mikaël Barbero from comment #33) > > did you try with removing your username from the "Admin list"? > > I didn't yet - do you think that will help? I have removed by user name from > the list but the build has not triggered yet. > > But doesn't it seem to be more something like the bot hasn't got the write > permission? > I triple check that the bot is part of the JTA GitHub team, and the team has write permission on the repo. So it should not be an issue. I will investigate more tomorrow. Thanks for your patience. (In reply to Mikaël Barbero from comment #35) > (In reply to Tom Jenkinson from comment #34) > > I (In reply to Mikaël Barbero from comment #33) > > > did you try with removing your username from the "Admin list"? > > > > I didn't yet - do you think that will help? I have removed by user name from > > the list but the build has not triggered yet. > > > > But doesn't it seem to be more something like the bot hasn't got the write > > permission? > > > > I triple check that the bot is part of the JTA GitHub team, and the team has > write permission on the repo. So it should not be an issue. I will > investigate more tomorrow. Thanks for your patience. Interestingly removing my name from the list of admins and adding into the white list instead seems to have made it work - I can't understand it but it must be something to do with the plugin. Thanks! the configuration of the plugin is far from intuitive. You could also try to grant access to all people in organization eclipse-ee4j. |