Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-18826

camel-kudu - Install libtinfo on CI to execute all Kudu's unit tests

    XMLWordPrintableJSON

Details

    • Unknown

    Description

      Currently, Kudu's unit tests are not completely executed on CI. For example, the following test seems to be successful at first glance.
      https://github.com/apache/camel/actions/runs/3612434723/jobs/6087540407#step:7:27

      But we can see five tests out of seven were skipped in components-camel-kudu.log, which is downloadable as a part of test-logs, as follows:

      [INFO] -------------------------------------------------------
      [INFO]  T E S T S
      [INFO] -------------------------------------------------------
      [INFO] Running org.apache.camel.component.kudu.KuduComponentConfigurationTest
      [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.789 s - in org.apache.camel.component.kudu.KuduComponentConfigurationTest
      [INFO] Running org.apache.camel.component.kudu.KuduProducerTest
      
      ...
      
      [WARNING] Tests run: 3, Failures: 0, Errors: 0, Skipped: 3, Time elapsed: 2.133 s - in org.apache.camel.component.kudu.KuduProducerTest
      [INFO] Running org.apache.camel.component.kudu.KuduScanTest
      [WARNING] Tests run: 2, Failures: 0, Errors: 0, Skipped: 2, Time elapsed: 1.032 s - in org.apache.camel.component.kudu.KuduScanTest
      [INFO] 
      [INFO] Results:
      [INFO] 
      [WARNING] Tests run: 7, Failures: 0, Errors: 0, Skipped: 5
      

      Its root cause is recorded in camel-kudu-test.log, which is also a part of test-logs. Starting MiniKuduCluster failed due to the lack of libtinfo, so we have to install it first to execute all tests.

      2022-12-04 09:18:30,428 [ stderr printer] INFO  MiniKuduCluster                - /tmp/kudu-binary-jar16011888995816483654/kudu-binary-1.15.0-linux-x86_64/bin/kudu: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
      
      ...
      
      2022-12-04 09:18:30,569 [main           ] INFO  MiniKuduCluster                - Caught exception while closing minicluster stdin
      java.io.IOException: Stream closed
      

      Attachments

        Issue Links

          Activity

            People

              sekikn Kengo Seki
              sekikn Kengo Seki
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: