[ODLPARENT-148] SingleFeatureTest (SFT) karaf.log should be kept outside the temporary PAX Exam to be preserved for analysis Created: 10/Apr/18  Updated: 13/Apr/18  Resolved: 13/Apr/18

Status: Resolved
Project: odlparent
Component/s: SFT
Affects Version/s: None
Fix Version/s: 3.0.4, 3.1.2, 4.0.0

Type: Improvement Priority: Medium
Reporter: Michael Vorburger Assignee: Michael Vorburger
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

During today's Kernel Projects call, when I inquired how we could make progress on the latest "Build timed out (after 120 minutes). Marking the build as failed." in integration/distribution's odl-integration-all, e.g. here, for (c/70354), rovarga pointed out that the main problem is that we have no visibility in the karaf.log in case of such failures.

skitt had tried to keep the Pax Exam output, but that blew up disk usage.

We could try to make SFT log somewhere else in /target that is kept in builds.



 Comments   
Comment by Michael Vorburger [ 12/Apr/18 ]

https://git.opendaylight.org/gerrit/#/c/70853/ does the following:

$ cd odlparent/features-test
$ mvn clean install

$ cd ../features/odl-guava-23
$ mvn clean install
$ less ./target/SFT/karaf.log
2018-04-12T15:57:35,410 | INFO  | pool-1-thread-2  | FeaturesServiceImpl              | 8 - org.apache.karaf.features.core - 4.1.5 | Adding features: 0e616d6f-571e-4c77-aa43-9d8a6cd053e1/[0,0.0.0], exam/[4.11.0,4.11.0], test-dependencies/[0,0.0.0]
2018-04-12T15:57:36,511 | INFO  | features-1-thread-1 | FeaturesServiceImpl              | 8 - org.apache.karaf.features.core - 4.1.5 | Changes to perform:
2018-04-12T15:57:36,516 | INFO  | features-1-thread-1 | FeaturesServiceImpl              | 8 - org.apache.karaf.features.core - 4.1.5 |   Region: root
2
(...)

$ mvn -Dkaraf.keep.unpack=true clean package
$ less ./target/pax/*/data/log/karaf.log
Apr 12, 2018 3:57:30 PM org.apache.karaf.main.Main launch
INFO: Installing and starting initial bundles
Apr 12, 2018 3:57:30 PM org.apache.karaf.main.Main launch
INFO: All initial bundles installed and set to start
Apr 12, 2018 3:57:31 PM org.apache.karaf.main.lock.SimpleFileLock lock
INFO: Trying to lock /home/vorburger/dev/ODL/git/odlparent/features/odl-guava-23/target/pax/f91bbf9a-ff6d-47e7-b398-b8014edb1125/lock
Apr 12, 2018 3:57:31 PM org.apache.karaf.main.lock.SimpleFileLock lock
INFO: Lock acquired
Apr 12, 2018 3:57:31 PM org.apache.karaf.main.Main$KarafLockCallback lockAquired
INFO: Lock acquired. Setting startlevel to 100

so basically now data/log/karaf.log (which is deleted, unless you -Dkaraf.keep.unpack=true) contains a few first lines, and the rest is now in target/SFT/karaf.log.

Generated at Wed Feb 07 20:27:46 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.