[ODLPARENT-88] Testing of one karaf4 feature may take more than 10 minutes Created: 28/Apr/17 Updated: 06/Sep/21 Resolved: 06/Sep/21 |
|
| Status: | Resolved |
| Project: | odlparent |
| Component/s: | General |
| Affects Version/s: | 2.0.5 |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Miroslav Kovac | Assignee: | Unassigned |
| Resolution: | Cannot Reproduce | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| Issue Links: |
|
||||||||
| External issue ID: | 8333 | ||||||||
| Description |
|
A good examples of this bug would be [1],[2]. Basicly singleFeatureTest somethimes failes just with - Build timed out (after 360 minutes). Marking the build as failed - which is timeout for whole build. Maximum time for one feature should be 10 minutes, But in those two examples you can see that time exceeds this 10 mins by far more. [1] https://jenkins.opendaylight.org/releng/job/netconf-verify-carbon-mvn33-openjdk8/1685/console |
| Comments |
| Comment by Robert Varga [ 04/May/17 ] |
|
This looks like the test itself failed in ~10 minutes: 2017-04-28 08:23:59,907 | ERROR | ime-limited test | SingleFeatureTest | 73 - PAXEXAM-PROBE-5faad4d3-3ec4-47f8-b247-0e475d126ba5 - 0.0.0 | installFeature() failed after which the container started stopping, but it seems the shutdown process hung on: 2017-04-28 08:24:01,019 | INFO | Framework stop | Activator | 330 - org.ops4j.pax.web.pax-web-extender-war - 4.3.0 | Destroying extension for bundle org.opendaylight.aaa.idmlight |
| Comment by Robert Varga [ 04/May/17 ] |
|
On odlparent side, we probably should instruct pax-exam to hard-kill the container after a installFeature() timeout. Furthermore we should dump the bundle status to identify who is holding up the startup. |
| Comment by Michael Vorburger [ 04/May/17 ] |
|
> On odlparent side, we probably should instruct pax-exam to Hm, is there a ready-made option for this? I don't recall seeing one.. This may be more than 3' of work and require contributing to PAX? > Furthermore we should dump the bundle status to Following https://git.opendaylight.org/gerrit/#/c/51908/, normally this should already happen? It won't dump the status just when it times out, but normally should have just before? (Using Awaitility, I'm not sure we can do the dump just before the timeout; we may have to make a contribution to Awaitility [or justwrite the spin loop ourselves]; or perhaps we can catch InterruptedException and dump there. But having it just a little earlier in the log as is already may be sufficient?) |
| Comment by Robert Varga [ 06/Sep/21 ] |
|
Most SFTs finish in under a minute. There really is not much we can do on testing side to speed things up. |