.\" Man page generated from reStructuredText. . .TH "CHECKBOX_NG" "1" "May 13, 2014" "0.1" "CheckBoxNG" .SH NAME checkbox_ng \- CheckBoxNG Documentation . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .sp \fICheckBoxNG\fP is a hardware testing tool useful for certifying laptops, desktops and servers with Ubuntu. It is a new version of \fICheckBox\fP that is built directly on top of \fIPlainBox\fP .sp CheckBoxNG \fIreplaces\fP CheckBox, where applicable. .sp \fBWARNING:\fP .INDENT 0.0 .INDENT 3.5 Documentation is under development. Some things are wrong, inaccurate or describe development goals rather than current state. .UNINDENT .UNINDENT .SH INSTALLATION .sp CheckBoxNG can be installed from a PPA (recommended) or pypi on Ubuntu Precise (12.04) or newer. .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C $ sudo add\-apt\-repository ppa:checkbox\-dev/ppa && sudo apt\-get update && sudo apt\-get install checkbox\-ng .ft P .fi .UNINDENT .UNINDENT .SH RUNNING STABLE RELEASE UPDATE TESTS .sp CheckBoxNG has special support for running stable release updates tests in an automated manner. This runs all the jobs from the \fIsru.whitelist\fP and sends the results to the certification website. .sp To run SRU tests you will need to know the so\-called \fISecure ID\fP of the device you are testing. Once you know that all you need to do is run: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C $ checkbox sru $secure_id submission.xml .ft P .fi .UNINDENT .UNINDENT .sp The second argument, submission.xml, is a name of the fallback file that is only created when sending the data to the certification website fails to work for any reason. .SH TEST SCRIPTS .sp Test \(aqscripts\(aq are small programs which are used to aid in implementing tests. .SS brightness_test .sp This script tests the brightness of the systems backlight can be changed by using the kernel interfaces in /sys/class/backlight. There may be more than one interface to choose from, so the correct interface to use is selected by using the heuristic prescribed in \fI\%https://www.kernel.org/doc/Documentation/ABI/stable/sysfs\-class\-backlight\fP\&. The brightness is manipulated by updating the brightness file of the interface and the actual_brightness file is checked to see if the value was modified to the brightness selected. .SH CHECKBOX RELEASE PROCESS .sp This page describes the necessary steps for releasing versions of CheckBox and CheckBox Certification to the stable PPA belonging to the Hardware Certification team, on a regular basis. Throughout this document the term \(aqCheckBox\(aq is used as a catch\-all term to cover all versions of CheckBox owned by the Hardware Certification team, currently CheckBox itself and the CheckBox Certification extensions. .SS Overview .sp Currently the process runs on a bi\-weekly cadence, with a new release of Checkbox every two weeks. This covers ten working days, and the tasks carried out on each day or group of days is described below: .INDENT 0.0 .IP \(bu 2 Days 1\-4: Time allowed for new changes to be introduced into trunk. .IP \(bu 2 Day 5: Changes are merged from the trunk of \fBlp:checkbox\fP and \fBlp:checkbox\-certification\fP to their respective release branches. The changelogs for both are \fIbumped\fP at this point and revisions are tagged. At this stage it may also be necessary to copy the package \(aqfwts\(aq from the \fI\%FWTS Stable PPA\fP to the \fI\%Checkbox Release Testing PPA\fP\&. .IP \(bu 2 Days 6\-9: Testing is performed by the release manager for the Hardware Certification team, and a representative of the CE QA team (the main customer for CheckBox within Canonical) .IP \(bu 2 Day 9: A release meeting is held between the release manager for the Hardware Certification team and the representative of the CE QA team. Potential issues with the release are identified and plans made to address them. .IP \(bu 2 Day 10: The tested version of CheckBox is copied to the stable PPA. .UNINDENT .SS Launchpad Branches .sp The release process requires separate branches in Launchpad containing a semi\-frozen version of the code that was in trunk on day 5 of the process. This is so that development can continue on trunk without jeopardising the stability of the to\-be released version of CheckBox. The relationship between all branches involved in the process is as shown below: .INDENT 0.0 .IP \(bu 2 \fIlp:checkbox/release\fP <\- \fIlp:checkbox\fP .IP \(bu 2 \fIlp:checkbox\-certification/release\fP <\- \fIlp:checkbox\-certification\fP .IP \(bu 2 \fIlp:~checkbox\-dev/checkbox/checkbox\-packaging\-release\fP <\- \fIlp:~checkbox\-dev/checkbox/checkbox\-packaging\fP .UNINDENT .SS Auditing milestoned bugs .sp Prior to creating the release candidate the release manager should review the list of bugs milestoned for the next release of CheckBox. They should visit \fI\%checkbox milestones\fP and locate the milestone dated with the release date. .INDENT 0.0 .IP \(bu 2 For bugs that are set to In Progress with a branch associated \- liase with the branch owner to see if the merge can be completed before the deadline. .IP \(bu 2 For bugs that are in any other non\-closed status (except \fIFix Commited\fP) \- re\-milestone them to the following milestone. .UNINDENT .SS Cutting the release .sp In order to cut the release, we have to merge the changes from trunk into the release branch, commit them with a suitable message and update the changelog in trunk so that future changes go under the correct version. For each combination of branches shown above, do the following (the example uses \fBlp:checkbox\fP and \fBlp:checkbox/release\fP): .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C bzr branch lp:checkbox/release checkbox\-release bzr branch lp:checkbox checkbox\-trunk cd checkbox\-release current_stable=\(gahead \-n1 $(find . \-name \(aqchangelog\(aq) | grep \-oP \(aq(?<=\e().*(?=\e))\(aq\(ga bzr merge lp:checkbox .ft P .fi .UNINDENT .UNINDENT .sp at this point if no changes (other than one to \fBdebian/changelog\fP) get merged in then we do not perform a release of the package in question. In practice this often happens with \fBcheckbox\-certification\fP but never with \fBcheckbox\fP: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C bzr commit \-m "Merged in changes from rev$(bzr revno \-r tag:$current_stable lp:checkbox) to rev$(bzr revno lp:checkbox) from lp:checkbox" bzr push lp:checkbox/release cd \(gafind . \-name \(aqdebian\(aq\(ga; cd .. bzr tag \(gahead \-n1 debian/changelog | grep \-oP \(aq(?<=\e().*(?=\e))\(aq\(ga dch \-r (save modified changelog) dch \-i \-U \(aqIncremented changelog\(aq debcommit bzr push lp:checkbox .ft P .fi .UNINDENT .UNINDENT .sp The last step in the process is to perform a build of the packages in the \fBppa:checkbox\-dev/testing PPA\fP\&. To do this we need to go to the recipe pages for the \fBcheckbox\fP and/or \fBcheckbox\-certification\fP release branches. .INDENT 0.0 .INDENT 3.5 .INDENT 0.0 .IP \(bu 2 \fI\%checkbox\-testing recipe\fP .IP \(bu 2 \fI\%checkbox\-certification\-testing recipe\fP .UNINDENT .UNINDENT .UNINDENT .sp The \fBBuild Now\fP option should be available on the page. Click it to start a build. .SS Copying Firmware Test Suite to the Testing PPA .sp The Firmware Test Suite tool is a test tool for system firmware that is naturally heavily utilised by Checkbox. To make sure the latest version which contains fixes and new tests/features needed by Checkbox is available and also doesn\(aqt break anything in Checkbox, we need to release it alongside Checkbox. After cutting the release if the Firmware Testing team have notified that a new version is available and that this version should be used for certification, we need to copy it to the Testing PPA. To do this we need to go to the \fI\%Copy packages view of the Firmware Test Suite (Stable) PPA\fP and select the \(aqfwts\(aq packages for all releases back to Precise. We need to set the \(aqDestination PPA\(aq as \(aqCheckbox Release Testing [~checkbox\-dev/testing]\(aq and the \(aqCopy options\(aq field to \(aqCopy existing binaries\(aq, then click \(aqCopy packages\(aq. This step then needs to be repeated but set the \(aqDestination PPA\(aq field to \(aqPPA for Checkbox Developers [~checkbox\-dev/ppa]\(aq. .SS Next Release of Checkbox e\-mail .sp So that everyone has the opportunity to perform whatever testing is required in a timely manner, after the PPA builds have been completed an email should be sent to the following mailing lists: .INDENT 0.0 .IP \(bu 2 \fI\%hardware\-certification\-team@lists.canonical.com\fP .IP \(bu 2 \fI\%commercial\-engineering@lists.canonical.com\fP .UNINDENT .sp The content is typically something like this: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C Subject: Next Release of CheckBox (18/11/2013) Hi, The next release of CheckBox is available in the https://code.launchpad.net/~checkbox\-dev/+archive/testing PPA. Please test it at your convenience. CheckBox is based on revision 2484 of lp:checkbox and CheckBox Certification is based on revision 586 of lp:checkbox\-certification. Thanks, .ft P .fi .UNINDENT .UNINDENT .sp If one or the other of CheckBox and CheckBox Certification have not been updated then there is no need to mention that package .SS Testing the release .sp Now that the release has been cut, testing should take place prior to the release meeting. From the point of view of the certification team, what needs to be tested is \fBcheckbox\-certification\-client\fP and \fBcheckbox\-certification\-server\fP which form the basis for CE QAs OEM specific versions of CheckBox. CheckBox certification server is tested in the CI loop CheckBox certification client needs to be tested manually. .SS Release Meeting .sp On the Thursday before the release is made, a meeting is held between a representative of the Certification team and a representative of the \fBCommercial Engineering QA\fP team. The meeting is held at 7:30 UTC as shown in this \fI\%calendar invite\fP\&. An agenda for the meeting is included in the invite. .SS Publishing the release .sp To publish the release we simply need to copy a number of packages from the \fI\%Checkbox Release Testing PPA\fP to the \fI\%Hardware Certification Public PPA\fP\&. To do this we go to the \fI\%Copy packages view of the Checkbox Release Testing PPA\fP and select all versions of the following list of packages: \fBcheckbox, checkbox\-certification, fwts\fP\&. Make sure that the \(aqDestination PPA\(aq field is set to \(aqPublic PPA for Hardware Certification [~hardware\-certification/public]\(aq and that the \(aqCopy options\(aq field is set to \(aqCopy existing binaries\(aq, then click \(aqCopy Packages\(aq. .sp After that is done an announcement email should be sent to \fI\%commercial\-engineering@lists.canonical.com\fP\&. A template for the announcement in included below: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C Hi, A new release of checkbox has been uploaded to the Hardware Certification Public PPA (https://launchpad.net/~hardware\-certification/+archive/public). The release is based on revision 2294 of lp:checkbox Thanks, .ft P .fi .UNINDENT .UNINDENT .sp Please attach the most recent part of the changelog as release notes .INDENT 0.0 .IP \(bu 2 \fIgenindex\fP .IP \(bu 2 \fImodindex\fP .IP \(bu 2 \fIsearch\fP .UNINDENT .SH AUTHOR Zygmunt Krynicki .SH COPYRIGHT 2013, Zygmunt Krynicki .\" Generated by docutils manpage writer. .