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

dev-java/pdfbox: additional TEST_EXCLUDES for jdk-17 #21564

Closed
wants to merge 1 commit into from

Conversation

vaukai
Copy link
Contributor

@vaukai vaukai commented Jul 8, 2021

No description provided.

@gentoo-bot
Copy link

Pull Request assignment

Submitter: @vaukai
Areas affected: ebuilds, other files
Packages affected: dev-java/bcmail, dev-java/bcpg, dev-java/bcpkix, dev-java/bcprov, dev-java/bcutil...

dev-java/bcmail: @gentoo/java
dev-java/bcpg: @gentoo/java
dev-java/bcpkix: @gentoo/java
dev-java/bcprov: @gentoo/java
dev-java/bcutil: @gentoo/proxy-maint (new package)
dev-java/fontbox: @gentoo/java
dev-java/jai-imageio-core: @gentoo/proxy-maint (new package)
dev-java/jai-imageio-jpeg2000: @gentoo/proxy-maint (new package)
dev-java/jakarta-activation: @gentoo/proxy-maint (new package)
dev-java/java-diff-utils: @gentoo/proxy-maint (new package)
dev-java/jbig2-imageio: @gentoo/proxy-maint (new package)
dev-java/pdfbox: @gentoo/java

Linked bugs

Bugs linked: 797634, 736633, 738836, 640118, 760729


In order to force reassignment and/or bug reference scan, please append [please reassign] to the pull request title.

Docs: Code of ConductCopyright policy (expl.) ● DevmanualGitHub PRsProxy-maint guide

@gentoo-bot gentoo-bot added new package The PR is adding a new package. assigned PR successfully assigned to the package maintainer(s). bug linked Bug/Closes found in footer, and cross-linked with the PR. security PR that needs to be merged promptly as it addresses security issues labels Jul 8, 2021
@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2021-07-09 20:14 UTC
Newest commit scanned: bc618d3
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/b61b706ac2/output.html

@vaukai vaukai changed the title dev-java/fontbox: bump to 2.0.24 | dev-java/pdfbox: bump to 2.0.24 dev-java/fontbox: bump to 2.0.24 | dev-java/pdfbox: bump to 2.0.24 | BC_SLOT="1.45" removal Jul 21, 2021
@vaukai vaukai marked this pull request as draft July 21, 2021 15:22
@vaukai
Copy link
Contributor Author

vaukai commented Jul 22, 2021

All tests pass for:

  • dev-java/fontbox: bump to 2.0.24
  • dev-java/jbig2-imageio: new package
  • dev-java/jai-imageio-core: new package
  • dev-java/jai-imageio-jpeg2000: new package

Has no tests

  • dev-java/java-diff-utils: new package

Still to resolve: (Tests run: 600, Failures: 17)

@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2021-07-22 18:35 UTC
Newest commit scanned: 4b8ba5c
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/ecf9b8f5d4/output.html

@fordfrog
Copy link
Contributor

@vaukai thanks for the summary, that was really helpful. merged everything except pdfbox. thanks!

@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2021-07-23 06:09 UTC
Newest commit scanned: df7a0bc
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/e619616750/output.html

@vaukai vaukai changed the title dev-java/fontbox: bump to 2.0.24 | dev-java/pdfbox: bump to 2.0.24 | BC_SLOT="1.45" removal dev-java/pdfbox: bump to 2.0.24 | BC_SLOT="1.45" removal Jul 23, 2021
@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2021-07-23 19:04 UTC
Newest commit scanned: 60d91ec
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/caf727c6d5/output.html

@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2021-07-23 20:34 UTC
Newest commit scanned: 3b58fc5
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/8357a0e07e/output.html

@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2021-07-24 08:59 UTC
Newest commit scanned: d339b32
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/58fc687d51/output.html

@vaukai
Copy link
Contributor Author

vaukai commented Jul 24, 2021

JAVA_TEST_EXCLUDES=(
    # excluded according to upstream
    # https://github.com/apache/pdfbox/blob/8876e8e1a0adbf619cef4638cc3cea073e3ca484/pdfbox/pom.xml#L123
    "org.apache.pdfbox.rendering.TestPDFToImage"

    # junit.framework.AssertionFailedError: Cannot instantiate test case: testIsSetDirect (java.lang.InstantiationException
    # junit.framework.AssertionFailedError: Cannot instantiate test case: testAccept (java.lang.InstantiationException
    # junit.framework.AssertionFailedError: Cannot instantiate test case: testGetCOSObject (java.lang.InstantiationException
    "org.apache.pdfbox.cos.TestCOSBase"

    # junit.framework.AssertionFailedError: Cannot instantiate test case: testFloatValue (java.lang.InstantiationException
    # junit.framework.AssertionFailedError: Cannot instantiate test case: testGet (java.lang.InstantiationException
    # junit.framework.AssertionFailedError: Cannot instantiate test case: testInvalidNumber (java.lang.InstantiationException
    # junit.framework.AssertionFailedError: Cannot instantiate test case: testLongValue (java.lang.InstantiationException
    # junit.framework.AssertionFailedError: Cannot instantiate test case: testIntValue (java.lang.InstantiationException
    # junit.framework.AssertionFailedError: Cannot instantiate test case: testLargeNumber (java.lang.InstantiationException
    # junit.framework.AssertionFailedError: Cannot instantiate test case: testDoubleValue (java.lang.InstantiationException
    # junit.framework.AssertionFailedError: Cannot instantiate test case: testIsSetDirect (java.lang.InstantiationException
    # junit.framework.AssertionFailedError: Cannot instantiate test case: testAccept (java.lang.InstantiationException
    # junit.framework.AssertionFailedError: Cannot instantiate test case: testGetCOSObject (java.lang.InstantiationException
    "org.apache.pdfbox.cos.TestCOSNumber"   # Tests run: 10,  Failures: 10

    # following tests need network access, can pass when run by regular user
    "org.apache.pdfbox.pdmodel.font.PDFontTest" # Tests run: 9,  Failures: 2
    "org.apache.pdfbox.pdmodel.interactive.form.PDAcroFormFlattenTest"  # Tests run: 11,  Failures: 11
    "org.apache.pdfbox.pdmodel.interactive.form.PDAcroFormFromAnnotsTest"   # Tests run: 7,  Failures: 7
    "org.apache.pdfbox.pdmodel.interactive.form.PDAcroFormGenerateAppearancesTest"  # Tests run: 3,  Failures: 3
    "org.apache.pdfbox.pdmodel.interactive.form.PDAcroFormTest" # Tests run: 11,  Failures: 4
    "org.apache.pdfbox.pdmodel.interactive.form.PDFieldTreeTest"    # Tests run: 1,  Failures: 1
    "org.apache.pdfbox.pdmodel.interactive.form.TestRadioButtons"   # Tests run: 9,  Failures: 8
)

Edit:
For the missing launcher it seems to need pdfbox-tools, WIP, needs picocli.

@vaukai vaukai marked this pull request as ready for review July 24, 2021 17:01
@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2021-07-24 17:09 UTC
Newest commit scanned: 410b5c4
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/d1162c646f/output.html

@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2021-07-24 19:39 UTC
Newest commit scanned: 02369e6
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/6155767865/output.html

@vaukai
Copy link
Contributor Author

vaukai commented Jul 25, 2021

pdfbox-debugger added which is needed for pdfbox-tools

@vaukai
Copy link
Contributor Author

vaukai commented Aug 2, 2021

Some network tests enabled (would 31 of 584 tests justify this setting?)

PROPERTIES="test_network"
RESTRICT="test"

@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2021-08-02 13:24 UTC
Newest commit scanned: b8cf747
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/dd08cb1a91/output.html

@vaukai
Copy link
Contributor Author

vaukai commented Aug 2, 2021

@vaukai dev-java/picocli merged, thanks! wrt pdfbox, i'd like to review the failing tests before merge.

After setting PROPERTIES="test_network" the only test failures left are

public void testPDFBox3826() throws IOException, URISyntaxException

from "org.apache.pdfbox.pdmodel.font.PDFontTest"
and those strange 10 failures from

"org.apache.pdfbox.cos.TestCOSBase"
"org.apache.pdfbox.cos.TestCOSNumber"

@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2021-08-02 17:54 UTC
Newest commit scanned: bb3b9c7
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/68fb8b8845/output.html

@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2021-10-30 19:02 UTC
Newest commit scanned: 39d2164
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/eaf56be5ca/output.html

@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2021-10-30 19:17 UTC
Newest commit scanned: 85d8fd0
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/09907ddff6/output.html

"target/imgs" || die

java-pkg-simple_src_test
rm -r target/test-classes || die # avaoid to run previous tests again
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a typo in the comment

* @throws IOException
* @throws URISyntaxException
*/
+ @Ignore
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add a comment why it needs to be ignored

@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2021-10-31 08:27 UTC
Newest commit scanned: b1cf18d
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/1f726fe3c7/output.html

@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2021-11-09 18:52 UTC
Newest commit scanned: dd51f9a
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/ec370207ea/output.html

@vaukai
Copy link
Contributor Author

vaukai commented Nov 14, 2021

Excluding one more test only for jdk-17 where it seems to want a newer mockito.

Time: 54.081
There was 1 failure:
1) testIsEmbeddingPermittedMultipleVersions(org.apache.pdfbox.pdmodel.font.TestFontEmbedding)
java.lang.ExceptionInInitializerError
        at org.mockito.cglib.core.KeyFactory$Generator.generateClass(KeyFactory.java:167)
        at org.mockito.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:25)
        at org.mockito.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:217)
        at org.mockito.cglib.core.KeyFactory$Generator.create(KeyFactory.java:145)
        at org.mockito.cglib.core.KeyFactory.create(KeyFactory.java:117)
        at org.mockito.cglib.core.KeyFactory.create(KeyFactory.java:109)
        at org.mockito.cglib.core.KeyFactory.create(KeyFactory.java:105)
        at org.mockito.cglib.proxy.Enhancer.<clinit>(Enhancer.java:71)
        at org.mockito.internal.creation.jmock.ClassImposterizer.createProxyClass(ClassImposterizer.java:85)
        at org.mockito.internal.creation.jmock.ClassImposterizer.imposterise(ClassImposterizer.java:62)
        at org.mockito.internal.creation.jmock.ClassImposterizer.imposterise(ClassImposterizer.java:56)
        at org.mockito.internal.creation.CglibMockMaker.createMock(CglibMockMaker.java:23)
        at org.mockito.internal.util.MockUtil.createMock(MockUtil.java:26)
        at org.mockito.internal.MockitoCore.mock(MockitoCore.java:51)
        at org.mockito.Mockito.mock(Mockito.java:1243)
        at org.mockito.Mockito.mock(Mockito.java:1120)
        at org.apache.pdfbox.pdmodel.font.TestFontEmbedding.testIsEmbeddingPermittedMultipleVersions(TestFontEmbedding.java:350)
        ... 25 trimmed
Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to unnamed module @4dc690>
        at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354)
        at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
        at java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:199)
        at java.base/java.lang.reflect.Method.setAccessible(Method.java:193)
        at org.mockito.cglib.core.ReflectUtils$2.run(ReflectUtils.java:57)
        at java.base/java.security.AccessController.doPrivileged(AccessController.java:318)
        at org.mockito.cglib.core.ReflectUtils.<clinit>(ReflectUtils.java:47)
        ... 43 more

FAILURES!!!
Tests run: 586,  Failures: 1

@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2021-11-14 10:47 UTC
Newest commit scanned: 15a8514
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/0acdda0d3d/output.html

@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2021-11-14 11:25 UTC
Newest commit scanned: d65da9f
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/c48e681c39/output.html

@fordfrog
Copy link
Contributor

what is the status here?

@vaukai
Copy link
Contributor Author

vaukai commented Nov 15, 2021

what is the status here?

From my point of view it's ready to merge except you find additional test failures that didn't occur here.

The JAVA_TEST_EXCLUDES are either excluded upstream
or just warnings like »1) warning(junit.framework.TestSuite$1)«
The test marked @ignore via patch I'd like to keep for later (no other idea how to deal with it).

IUSE="+tools"

PROPERTIES="test_network"
RESTRICT="test"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't this be dropped? i got the impression that the tests are working as you either fixed the tests or excluded them. or did i get it wrong?

Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
@vaukai vaukai changed the title dev-java/pdfbox: bump to 2.0.24 | BC_SLOT="1.45" removal dev-java/pdfbox: additional TEST_EXCLUDES for jdk-17 Nov 16, 2021
@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2021-11-16 09:55 UTC
Newest commit scanned: 22ee8d6
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/c08da78b1c/output.html

@fordfrog
Copy link
Contributor

@vaukai thanks! :-)

@vaukai vaukai deleted the pdfbox branch November 16, 2021 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
assigned PR successfully assigned to the package maintainer(s). bug linked Bug/Closes found in footer, and cross-linked with the PR. new package The PR is adding a new package. security PR that needs to be merged promptly as it addresses security issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants