[JIRA] (JENKINS-58242) Look into Failed Junit Test on Ubuntu

12 views
Skip to first unread message

natasha.stopa@gmail.com (JIRA)

unread,
Jun 27, 2019, 4:59:02 PM6/27/19
to jenkinsc...@googlegroups.com
Natasha Stopa created an issue
 
Jenkins / Task JENKINS-58242
Look into Failed Junit Test on Ubuntu
Issue Type: Task Task
Assignee: Natasha Stopa
Components: plugin-installation-manager-tool
Created: 2019-06-27 20:58
Labels: gsoc-2019 plugin-manager
Priority: Minor Minor
Reporter: Natasha Stopa

The junit test for bundled plugins is failing on Ubuntu but didn't on Mac. The following error was thrown. 

java.lang.reflect.InaccessibleObjectException: Unable to make boolean jdk.nio.zipfs.ZipFileSystem.isDirectory(byte[]) throws java.io.IOException accessible: module jdk.zipfs does not "opens jdk.nio.zipfs"

This might be due to differences in jdks. We might want to add a note in the documentation about what jdks the tool is compatible with. 

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

o.v.nenashev@gmail.com (JIRA)

unread,
Jul 30, 2019, 3:29:26 AM7/30/19
to jenkinsc...@googlegroups.com
Oleg Nenashev updated an issue
Change By: Oleg Nenashev
Sprint: GSoC 2019. Coding Phase 2 , GSoC 2019. Coding Phase 3

kwhetstone@cloudbees.com (JIRA)

unread,
Aug 27, 2019, 3:08:02 PM8/27/19
to jenkinsc...@googlegroups.com
Kristin Whetstone commented on Task JENKINS-58242
 
Re: Look into Failed Junit Test on Ubuntu

I don't think that we're hitting this anymore? I think we can close.

natasha.stopa@gmail.com (JIRA)

unread,
Aug 27, 2019, 5:01:02 PM8/27/19
to jenkinsc...@googlegroups.com

Actually, I don't think I've tested on Linux since then. I can also add re-testing it to my TODO list for this week.

kwhetstone@cloudbees.com (JIRA)

unread,
Aug 28, 2019, 2:55:03 PM8/28/19
to jenkinsc...@googlegroups.com

The tests with `buildPlugin` should cover this as it tests on linux and windows. I think this is safe to close.

natasha.stopa@gmail.com (JIRA)

unread,
Sep 1, 2019, 4:01:01 PM9/1/19
to jenkinsc...@googlegroups.com

After looking into this a little more, it seems that I was using Java 11 on my Ubuntu vm, and by default buildPlugins only tests for Java 8 (https://github.com/jenkins-infra/pipeline-library).  I don't really fully understand the error yet, but it seems to be caused by a change introduced in Java 11. I'll close this ticket and open a separate one about adding compatibility with Java 11. 

natasha.stopa@gmail.com (JIRA)

unread,
Sep 1, 2019, 4:02:02 PM9/1/19
to jenkinsc...@googlegroups.com

natasha.stopa@gmail.com (JIRA)

unread,
Sep 1, 2019, 4:02:02 PM9/1/19
to jenkinsc...@googlegroups.com
Natasha Stopa started work on Task JENKINS-58242
 
Change By: Natasha Stopa
Status: Open In Progress

natasha.stopa@gmail.com (JIRA)

unread,
Sep 1, 2019, 4:07:01 PM9/1/19
to jenkinsc...@googlegroups.com
 

Closing this since investigation into what was causing the issue was completed. Opened a separate ticket for actually resolving the issue:

https://issues.jenkins-ci.org/browse/JENKINS-59173

Change By: Natasha Stopa
Status: In Review Resolved
Resolution: Fixed
Reply all
Reply to author
Forward
0 new messages