Uploaded image for project: 'EJBCA'
  1. EJBCA
  2. ECA-9049

Investigate CRL-related test failures in Jenkins

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: EJBCA 7.4.0
    • Component/s: None
    • Labels:
    • Issue discovered during:
      Jenkins
    • Sprint:
      EJBCA Team Alice - 2020 w13, EJBCA Team Alice - 2020 w16, EJBCA Team Alice - 2020 w20

      Description

      We currently have 6 test failures in Jenkins.

      See https://magnum-ci.primekey.com/job/EJBCA/view/TRUNK/job/EE_COS7_OpenJDK8_WF10_NOHSM_OracleDB11G/441/testReport/

      Summary of failures:
      org.ejbca.core.ejb.crl.PartitionedCrlSystemTest.downloadViaCertDistServlet
      org.ejbca.core.ejb.crl.PartitionedCrlSystemTest.generateAndPublishPartitionedCrl
      org.ejbca.core.ejb.crl.PartitionedCrlSystemTest.downloadViaGetCrlServlet
      org.ejbca.ui.web.protocol.CrlStoreServletTest.testCRLStoreWithPartitions

      Caused by: java.lang.ClassNotFoundException: oracle.jdbc.OracleDatabaseException
      

      org.ejbca.va.publisher.VaEnterpriseValidationAuthorityPublisherTest.publishCrlWithPartition

      Caused by: java.lang.ClassNotFoundException: org.hibernate.exception.ConstraintViolationException
      

      Analysis: Probably caused by ECA-8680.

      org.ejbca.core.ejb.crl.PartitionedCrlSystemTest.generatePartitionedCrlViaWorker

      junit.framework.AssertionFailedError: Wrong CRL Number expected:<1> but was:<2>
          at org.ejbca.core.ejb.crl.PartitionedCrlSystemTest.getLatestCrl(PartitionedCrlSystemTest.java:517)
          at org.ejbca.core.ejb.crl.PartitionedCrlSystemTest.assertCertificatePresenceInCrl(PartitionedCrlSystemTest.java:310)
          at org.ejbca.core.ejb.crl.PartitionedCrlSystemTest.generatePartitionedCrlViaWorker(PartitionedCrlSystemTest.java:381)
      

      Analysis: This test case is probably flaky because it passes locally (although to be fair, not using Oracle DB). Are we running multiple test cases in parallel? There could also be something wrong with the database locally on Jenkins, preventing EJBCA from removing the CRLs correctly.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              bastianf Bastian Fredriksson
              Reporter:
              bastianf Bastian Fredriksson
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 1 day
                  1d
                  Remaining:
                  Time Spent - 1 hour, 30 minutes Remaining Estimate - 6 hours, 30 minutes
                  6h 30m
                  Logged:
                  Time Spent - 1 hour, 30 minutes Remaining Estimate - 6 hours, 30 minutes
                  1h 30m