-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
get_unit_test_report.py: no longer running correctly #30
Comments
@geissonator get_unit_test_report.py is unable to generate the UT report due to the below error. Hence all the repo's which are not skipped or archived are reported as "ERROR".
|
Thanks for taking a look @adathatri . That script, build-unit-test-docker, is utilized by our CI job out at https://jenkins.openbmc.org/job/ci-repository/ and in a number of other areas so I think your error may be more your system setup. Maybe a downlevel docker version? |
It sounds like a version of Python that is old enough that it doesn't support type identifiers? You probably need 3.6 or higher if I had to guess for that script to work. |
@geissonator I assume that the existing docker image on Jenkins node has an older version of Python and this is preventing the execution of build-unit-test-docker in order to build a new image. get_unit_test_report.py uses run-unit-test-docker.sh to build docker image and run unit tests which in turn uses build-unit-test-docker to build the image. |
@geissonator Oh. This job is restricted to |
(I would think we would use the same Jenkins tag we use for CI jobs.) |
Some of the build machines didn't even have python installed (or had even older versions). We should probably move this script to a docker container. I updated the job to use one of the new nodes, lets see if that helps. |
I had to update the jenkins job to call the script using "python3" since our new nodes only have python3. We hit this though:
Probably a python3 nuance that needs updating in the script? |
Yes. This would need to updated as per python3 coding guidelines |
The script itself turns around and runs Docker. I don't think we support Docker-in-Docker do we? (That is hard to set up and introduces security issues, so most people don't do it). |
Yeah, good point. Probably best to just get this script working with python3 and I'll make a new "python3" label in jenkins that we can put on the nodes that support it. |
Got this one working by just hard coding the job to use builder_fb_c0. Keep this issue open to make this a bit more dynamic. |
Did adding the tag not work? |
https://jenkins.openbmc.org/job/latest-unit-test-coverage/ is still running but the data is not valid anymore. Everything is either ERROR or SKIPPED for the most part.
The unit test and coverage works fine when
run-unit-test-docker.sh
is run so my guess is something changed in the output of the unit test framework that is not handled by get_unit_test_report.pyHere's the output under a build/meson-logs/ dir:
@lkammath is this something you could help look into?
The text was updated successfully, but these errors were encountered: