canonical / checkbox

Checkbox is a testing framework used to validate device compatibility with Ubuntu Linux. It’s the testing tool developed for the purposes of the Ubuntu Certification program.
https://checkbox.readthedocs.io
GNU General Public License v3.0
33 stars 49 forks source link

cpu/clocktest should not run on s390x #422

Open bladernr opened 1 year ago

bladernr commented 1 year ago

Bug Description

The clocktest script doesn't work on Z due to issues with sched_setaffinity. Having talked with Frank before we don't think this is really necessary as a test case on IBM Z anyway so it's safe to just skip it on s390x arch systems.

To Reproduce

Run cpu_clocktest on an LPAR or zVM guest on the Z

Environment

IBM Z running Lunar (has been seen on other releases too, test is inconsequential on Z and can be skipped)

Relevant log output

sched_setaffinity: Invalid argument
Testing for clock jitter on 282 cpus

Additional context

No response

pieqq commented 1 year ago

The job in question is in the base provider:

https://github.com/canonical/checkbox/blob/main/providers/base/units/cpu/jobs.pxu#L126-L135

It is currently executed for any architecture, but this can be tailored using the requires field of the job unit and the cpuinfo resource job, similar to the cpu/cstates job for instance.