Kengo Seki created CAMEL-18826:
----------------------------------

             Summary: camel-kudu - Install libtinfo on CI to execute all Kudu's 
unit tests
                 Key: CAMEL-18826
                 URL: https://issues.apache.org/jira/browse/CAMEL-18826
             Project: Camel
          Issue Type: Improvement
          Components: camel-kudu
            Reporter: Kengo Seki


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:

{code}
[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
{code}

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.

{code}
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
{code}




--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to