Merge lp:~bladernr/checkbox/1330998-tickless-idle-not-on-arm into lp:checkbox

Proposed by Jeff Lane 
Status: Merged
Approved by: Daniel Manrique
Approved revision: 3080
Merged at revision: 3081
Proposed branch: lp:~bladernr/checkbox/1330998-tickless-idle-not-on-arm
Merge into: lp:checkbox
Diff against target: 11 lines (+1/-0)
1 file modified
providers/plainbox-provider-checkbox/jobs/power-management.txt.in (+1/-0)
To merge this branch: bzr merge lp:~bladernr/checkbox/1330998-tickless-idle-not-on-arm
Reviewer Review Type Date Requested Status
Daniel Manrique (community) Approve
Zygmunt Krynicki (community) Approve
Review via email: mp+223410@code.launchpad.net

Description of the change

changes power-management/tickless_idle to not run on arm/arm64 systems.

To post a comment you must log in.
Revision history for this message
Daniel Manrique (roadmr) wrote :

Hi Jeff,

I think negative resources (like what you're using, "ELEMENT not in SET") don't work properly in plainbox (nor do they in checkbox, for that matter).

Maybe you'd be OK with changing that to:

requires: cpuinfo.type in ('i386', 'amd64')

I think this makes sense as (can we ask Ashley about this?) I don't think power-based archs will have tickless idle either.

review: Needs Information
Revision history for this message
Zygmunt Krynicki (zyga) wrote :

Curiously enough both will (should) work. If you get any issues I'll try to fix it quickly. The common problem with not in and != is that we have implicit any() around the whole expression and that leads to spurious 'successes' in other iterations of the loop. See: http://plainbox.readthedocs.org/en/latest/dev/resources.html#operator-is-useless

Revision history for this message
Jeff Lane  (bladernr) wrote :

ubuntu@am3:~$ /usr/lib/2013.com.canonical.certification\:plainbox-resources/bin/cpuinfo_resource
count: 8
model: aarch64
platform: aarch64
speed: -2
type: aarch64

ubuntu@am3:~$ grep -a4 -b2 tickless_idle /usr/share/2013.com.canonical.certification\:checkbox/jobs/power-management.txt.in
4482-
4483-plugin: shell
4497:id: power-management/tickless_idle
4532-requires: cpuinfo.type not in ('arm', 'aarch64')
4581-_description: Check to see if CONFIG_NO_HZ is set in the kernel (this is just a simple regression check)

Ran it a few minutes ago and it did work, as Zygmunt says. That said, to avoid spurious issues, I'll change it.

3080. By Jeff Lane 

power-management.txt.in - changed requires for tickelss idle from a 'not in' to an 'in' to avoid issues with matching

Revision history for this message
Jeff Lane  (bladernr) wrote :

Changed it per discussion on IRC

Revision history for this message
Zygmunt Krynicki (zyga) wrote :

+1

review: Approve
Revision history for this message
Daniel Manrique (roadmr) wrote :

+1, thanks

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'providers/plainbox-provider-checkbox/jobs/power-management.txt.in'
2--- providers/plainbox-provider-checkbox/jobs/power-management.txt.in 2014-05-09 16:53:32 +0000
3+++ providers/plainbox-provider-checkbox/jobs/power-management.txt.in 2014-06-17 15:31:45 +0000
4@@ -145,6 +145,7 @@
5
6 plugin: shell
7 id: power-management/tickless_idle
8+requires: cpuinfo.type in ('i386', 'amd64', 'ppc64el')
9 _description: Check to see if CONFIG_NO_HZ is set in the kernel (this is just a simple regression check)
10 command:
11 zgrep 'CONFIG_NO_HZ=y' /boot/config-`uname -r` >/dev/null 2>&1 || ( echo "WARNING: Tickless Idle is NOT set" >&2 && exit 1 )

Subscribers

People subscribed via source and target branches