report and record the actual booted kernel with test results

Bug #1491865 reported by Andy Whitcroft
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
autopkgtest (Ubuntu)
Fix Released
High
Martin Pitt

Bug Description

As we often have 2 or more kernels installed when testing the package list is not sufficient to tell us which kernel we intended to run. Nor indeed does having the intended kernel installed tell us we actually running it after the reboot. It would be nice to:

1) report the kernel version uname -rv style as the first action following a reboot, allowing us to confirm the actual version booted each time.

2) perhaps report the kernel version and other information in the results.tar, say in a sysinfo.yaml.

If we chose a .yaml for this info we could expand it later to include filesystem info for example.

Related branches

Martin Pitt (pitti)
Changed in autopkgtest (Ubuntu):
status: New → In Progress
importance: Undecided → High
assignee: nobody → Martin Pitt (pitti)
Revision history for this message
Martin Pitt (pitti) wrote :

As discussed on IRC, we want something like this for 2:

>>> print(json.dumps({'kernel_version': '1.2', 'test_kernel_versions': [('test2', 'reboot_to_backport', '1.3~utopic')]}, indent=2))
{
  "kernel_version": "1.2",
  "test_kernel_versions": [
    [
      "test2",
      "reboot_to_backport",
      "1.3~utopic"
    ]
  ]
}

kernel_version is the version right after the initial testbed setup/dist-upgrade/reboot. Any test which triggers a reboot which ends up in a kernel != kernel_version will get an entry in that test_kernel_versions list. Any test/reboot which is not there can be assumed to use kernel_version. IOW, for pretty much all expected cases test_kernel_versions should be completely absent.

We use json instead of yaml as the latter requires an external Python module.

Revision history for this message
Martin Pitt (pitti) wrote :

test_kernel_versions → kernel_version_changes

Revision history for this message
Martin Pitt (pitti) wrote :

Also add the test triggers into that json file.

Martin Pitt (pitti)
Changed in autopkgtest (Ubuntu):
milestone: none → ubuntu-15.09
Revision history for this message
Martin Pitt (pitti) wrote :
Revision history for this message
Martin Pitt (pitti) wrote :

This is implemented in http://anonscm.debian.org/cgit/autopkgtest/autopkgtest.git/commit/?id=f5e719a4 now.
This needs some additional changes in autopkgtest-cloud to put the new file into result.tar.

Changed in autopkgtest (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Martin Pitt (pitti) wrote :
Revision history for this message
Martin Pitt (pitti) wrote :
Changed in autopkgtest (Ubuntu):
status: Fix Committed → In Progress
Revision history for this message
Martin Pitt (pitti) wrote :
Changed in autopkgtest (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Martin Pitt (pitti) wrote :

With http://anonscm.debian.org/cgit/autopkgtest/autopkgtest.git/commit/?id=b5963450b the triggers are now exposed in testinfo.json. As autopkgtest itself doesn't have a concept of "test trigger" this isn't a separate key, but it will be an ADT_TEST_TRIGGERS=srcpkgname entry in the "custom_environment" entry of testinfo.json.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package autopkgtest - 3.17.1

---------------
autopkgtest (3.17.1) unstable; urgency=medium

  * Add new private python modules to Makefile, to actually ship them.
  * tests/adt-run: Fix test regression when $ADT_TEST* are not set.

 -- Martin Pitt <email address hidden> Tue, 15 Sep 2015 08:38:54 +0200

Changed in autopkgtest (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.