| Summary: | improve bitbake-selftest network tests | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] BitBake | Reporter: | Zach Welch <zach> |
| Component: | bitbake | Assignee: | Richard Purdie <richard.purdie> |
| Status: | RESOLVED WORKSFORME | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | Low | CC: | mark.asselstine, poky.bs.watcher, poky.watcher, randy.macleod |
| Version: | 5.99 | ||
| Target Milestone: | Future | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | No (bug/feature does not impact docs) | |
|
Description
Zach Welch
2022-05-26 18:06:43 UTC
Running them locally took about 11 minutes and the autobuilder is running them in 7 mins. The difference is neither I nor the autobuilder have nodejs available. I suspect is could be the nodejs tests which are taking a lot of the time. We have designed the tests to be pretty efficient/minimal where we can... Can you confirm you had nodejs available? Ideally a test run that or with the npm tests disabled would be interesting too, just to confirm my guess about where the time is being spent is correct. I did not have nodejs available on the host machine. After installing npm (and its plethora of dependencies), the selftest took 15 minutes. Twice as fast as my previous results, but still not as fast as your results. I then went ahead and purged npm and re-ran the test; it took the same 15 minutes. I am not sure why my test runs the other day were taking so long, but I suspect there was a transient confounding factor with my network connection. Zack or someone can make a proposal about how to deal with the potentially slow network parts of the tests. I suggest this one be closed. Running tests today $ bitbake-selftest Ran 472 tests in 509.452s OK $ BB_SKIP_NETTESTS=yes bitbake-selftest Ran 472 tests in 279.613s OK (skipped=75) Running each of the tests which use networking (marked by the presence of skipIfNoNetwork()) does not show any outliers. The longest is $ bitbake-selftest bb.tests.fetch.FetcherNetworkTest Ran 25 tests in 101.075s OK And NPM is negligeable $ bitbake-selftest bb.tests.fetch.NPMTest Ran 25 tests in 28.721s OK So yes networking tests add time to the tests but nothing I would call unexpected. We could look at doing more shallow or single branch clones or the likes to cut down some traffic without removing the items being tested. What are your thoughts Richard, Zach? No further comments so closing as I'm not sure what we'd do to change things. |