Bug Description
On a recent Power 10 test, I discovered a test had been skipped because the cpu.platform constraint was not met. This was incorrect as it SHOULD have matched and triggered the test to run.:
job cannot be started: resource expression 'cpuinfo.platform in ("ppc64el")' evaluates to false
Looking at the code this is used as a constraint a few times. According to this: https://www.reddit.com/r/qemu_kvm/comments/b6d91v/ppc64el_vs_ppc64le/
they are the same, but it's a debianism to use ppc64el, while it appears IBM has gone with ppc64le on Power systems. I think, in the past on older Power Hardware, ppc64le worked. So to be sure, lets just use both.
This raises the question, can constraints be substring matched? in otherwords, instead of:
cpu.platofrm in ["ppc64el", "ppc64le"]
can we use
cpu.platform = "ppc64*"
to match either of the two?
To Reproduce
- review this job failure to see the constraint is not met
https://certification.canonical.com/hardware/202312-32378/submission/347345/test/76846/result/38196711/
- review the platform info to see that the CPU platform is not the one we've used.
https://certification.canonical.com/hardware/202312-32378/
Environment
Power 10 LPAR is needed. will have to work with Patricia Domingues in PE to test the fixes.
Relevant log output
No response
Additional context
No response
Bug Description
On a recent Power 10 test, I discovered a test had been skipped because the cpu.platform constraint was not met. This was incorrect as it SHOULD have matched and triggered the test to run.:
job cannot be started: resource expression 'cpuinfo.platform in ("ppc64el")' evaluates to falseLooking at the code this is used as a constraint a few times. According to this: https://www.reddit.com/r/qemu_kvm/comments/b6d91v/ppc64el_vs_ppc64le/
they are the same, but it's a debianism to use ppc64el, while it appears IBM has gone with ppc64le on Power systems. I think, in the past on older Power Hardware, ppc64le worked. So to be sure, lets just use both.
This raises the question, can constraints be substring matched? in otherwords, instead of:
cpu.platofrm in ["ppc64el", "ppc64le"]can we use
cpu.platform = "ppc64*"to match either of the two?
To Reproduce
https://certification.canonical.com/hardware/202312-32378/submission/347345/test/76846/result/38196711/
https://certification.canonical.com/hardware/202312-32378/
Environment
Power 10 LPAR is needed. will have to work with Patricia Domingues in PE to test the fixes.
Relevant log output
No response
Additional context
No response