lp:~sylvain-pineau/checkbox-support

Owned by Sylvain Pineau
Get this repository:
git clone https://git.launchpad.net/~sylvain-pineau/checkbox-support
Only Sylvain Pineau can upload to this repository. If you are Sylvain Pineau please log in for upload directions.

Branches

Name Last Modified Last Commit
fix-1979028 2022-06-21 20:27:02 UTC
vendor:beacontools: Add BT_CORE_SPEC_5_3 = 12 to HCIVersion Enum

Author: Sylvain Pineau
Author Date: 2022-06-21 20:27:02 UTC

vendor:beacontools: Add BT_CORE_SPEC_5_3 = 12 to HCIVersion Enum

Fixes: lp:1979028

fix-1947114 2021-12-02 10:25:05 UTC
ADD: support for a new displayport profile (Hifi)

Author: Sylvain Pineau
Author Date: 2021-12-02 10:25:05 UTC

ADD: support for a new displayport profile (Hifi)

Fixes: lp:1947114

fix-1927209 2021-05-17 11:22:09 UTC
parsers:tests:udev: Add test & data for lp:1927209

Author: Sylvain Pineau
Author Date: 2021-05-17 11:22:09 UTC

parsers:tests:udev: Add test & data for lp:1927209

fake_usb.ids_unittest 2020-10-15 13:52:15 UTC
parsers:tests:sysfs_usb: Use a amedTemporaryFile to fake usb.ids

Author: Sylvain Pineau
Author Date: 2020-10-15 13:52:15 UTC

parsers:tests:sysfs_usb: Use a amedTemporaryFile to fake usb.ids

dri_video_controller_arm 2020-09-28 07:13:52 UTC
parsers:tests:udev: Add DRI/VIDEO tests for arm devices

Author: Sylvain Pineau
Author Date: 2020-09-28 07:13:52 UTC

parsers:tests:udev: Add DRI/VIDEO tests for arm devices

no_capture_m2m_rpi 2020-09-27 12:43:02 UTC
parsers:udevadm: Add tests for checking no M2M devices are set as CAPTURE on rpi

Author: Sylvain Pineau
Author Date: 2020-09-27 12:43:02 UTC

parsers:udevadm: Add tests for checking no M2M devices are set as CAPTURE on rpi

fix-1837350 2019-11-27 08:56:43 UTC
vendror: Update aioblescan

Author: Sylvain Pineau
Author Date: 2019-11-27 08:56:43 UTC

vendror: Update aioblescan

Fixes: lp:1837350

interactive_cmd_ignore_unicode_errors 2019-11-20 19:46:57 UTC
interactive_cmd.py: ignore unicode errors

Author: Sylvain Pineau
Author Date: 2019-11-20 19:46:57 UTC

interactive_cmd.py: ignore unicode errors

fix-1850660 2019-11-13 11:19:54 UTC
parsers:pactl: revert to pre-2.3.1 results name behavior

Author: Sylvain Pineau
Author Date: 2019-11-13 11:19:54 UTC

parsers:pactl: revert to pre-2.3.1 results name behavior

From https://github.com/pyparsing/pyparsing/blob/master/CHANGES

Version 2.3.1 - January, 2019
-----------------------------
- POSSIBLE API CHANGE: this release fixes a bug when results names were
  attached to a MatchFirst or Or object containing an And object.
  Previously, a results name on an And object within an enclosing MatchFirst
  or Or could return just the first token in the And. Now, all the tokens
  matched by the And are correctly returned. This may result in subtle
  changes in the tokens returned if you have this condition in your pyparsing
  scripts.

Fixes: lp:1850660

fix-1837356 2019-10-19 08:37:13 UTC
parsers:pactl: Correctly handle active port names with prefixes

Author: Sylvain Pineau
Author Date: 2019-10-19 08:37:13 UTC

parsers:pactl: Correctly handle active port names with prefixes

Example:

 Ports:
  [In] Dmic: Digital Micrphone (priority: 100)
 Active Port: [In] Dmic

The active port value must be "Dmic", not "[In] Dmic"

Fixes: lp:1837356

get_lk_bootimg_path 2019-10-13 07:52:32 UTC
snap_utils:system: Add get_lk_bootimg_path()

Author: Sylvain Pineau
Author Date: 2019-10-13 07:52:32 UTC

snap_utils:system: Add get_lk_bootimg_path()

Helper function used in many downstream scripts to get the path
of the booted img partition on system using the little kernel as a bootloader.

Use the kernel_cmdline parser output to pick the parameter snap_kernel=<name>.
The <name> value should be then be used to select the correct booting_matrix
line in snap_boot_selection.

fix-1672415 2019-10-08 19:31:12 UTC
parsers:udev: Discard virtual idrac nic

Author: Sylvain Pineau
Author Date: 2019-10-08 19:31:12 UTC

parsers:udev: Discard virtual idrac nic

Fixes: lp:1672415

fix-1775225 2019-10-08 09:01:20 UTC
parsers:udev: Discard virtual CDROM drives

Author: Sylvain Pineau
Author Date: 2019-10-08 09:01:20 UTC

parsers:udev: Discard virtual CDROM drives

Real drives usually have lots of environment property detailing their capabilities:

E: ID_CDROM=1
E: ID_CDROM_CD=1
E: ID_CDROM_CD_R=1
E: ID_CDROM_CD_RW=1
E: ID_CDROM_DVD=1
E: ID_CDROM_DVD_PLUS_R=1
E: ID_CDROM_DVD_PLUS_RW=1
E: ID_CDROM_DVD_PLUS_R_DL=1
E: ID_CDROM_DVD_R=1
E: ID_CDROM_DVD_RAM=1
E: ID_CDROM_DVD_RW=1
E: ID_CDROM_MRW=1
E: ID_CDROM_MRW_W=1

Virtual drives on the other hand only report:

E: ID_CDROM=1

Fixes: lp:1775225

fix-1830146 2019-09-28 08:41:48 UTC
parsers:udevadm: Improve Metadata Capture device node detection

Author: Sylvain Pineau
Author Date: 2019-09-28 08:41:05 UTC

parsers:udevadm: Improve Metadata Capture device node detection

using v4l ids

Fixes: lp:1830146

snapd_poll_change_timeout_param 2019-05-13 09:25:13 UTC
snap_utils:snapd: Add task_timeout and poll_interval init parameters

Author: Sylvain Pineau
Author Date: 2019-05-13 08:37:51 UTC

snap_utils:snapd: Add task_timeout and poll_interval init parameters

30s may not be enough on slow platforms

fix-1827826 2019-05-07 10:15:09 UTC
parsers:tests:pactl: Update unit tests

Author: Sylvain Pineau
Author Date: 2019-05-07 10:15:09 UTC

parsers:tests:pactl: Update unit tests

run_watcher_mediacard 2018-12-21 08:23:50 UTC
scripts:run_watcher: Add support for mediacard events

Author: Sylvain Pineau
Author Date: 2018-12-21 08:23:50 UTC

scripts:run_watcher: Add support for mediacard events

fixes 2018-11-25 17:11:58 UTC
parsers:udevadm: Add tests for NVDIMM devices

Author: Sylvain Pineau
Author Date: 2018-11-25 17:11:58 UTC

parsers:udevadm: Add tests for NVDIMM devices

fixes2 2018-11-25 16:38:51 UTC
parsers:udev: Set pid/vid in base16 for canbus and v4l devices (for consistency)

Author: Sylvain Pineau
Author Date: 2018-11-25 16:38:51 UTC

parsers:udev: Set pid/vid in base16 for canbus and v4l devices (for consistency)

eddystone_scanner_poweron_bluetoothctl 2018-10-10 18:19:27 UTC
scripts:eddystone_scanner: power on the adapter via bluetoothctl

Author: Sylvain Pineau
Author Date: 2018-10-10 18:19:27 UTC

scripts:eddystone_scanner: power on the adapter via bluetoothctl

Using 'hciconfig hciX up' does not work on all platforms running UC.
See https://bugs.launchpad.net/snappy-hwe-snaps/+bug/1706649

eddystone_scanner_python3.4_bis 2018-10-09 08:39:13 UTC
scripts:eddystone_scanner: Use logging

Author: Sylvain Pineau
Author Date: 2018-10-09 08:39:13 UTC

scripts:eddystone_scanner: Use logging

eddystone_scanner_python3.4 2018-10-09 08:39:13 UTC
scripts:eddystone_scanner: Use logging

Author: Sylvain Pineau
Author Date: 2018-10-09 08:39:13 UTC

scripts:eddystone_scanner: Use logging

add_bt_hci_interface 2018-10-08 11:03:43 UTC
parsers:udevadm: Add interface (hciX) info to BLUETOOTH devices

Author: Sylvain Pineau
Author Date: 2018-10-08 11:03:43 UTC

parsers:udevadm: Add interface (hciX) info to BLUETOOTH devices

eddystone-scanner 2018-10-08 09:26:09 UTC
scripts:eddystone_scanner: New beacon scanner

Author: Sylvain Pineau
Author Date: 2018-10-07 18:00:31 UTC

scripts:eddystone_scanner: New beacon scanner

Scanner for BT LE Eddystone URL advertisements

v4l_capture 2018-09-25 06:48:28 UTC
parsers:udevadm: Identify CAPTURE devices using the V4L subsystem only

Author: Sylvain Pineau
Author Date: 2018-09-25 06:48:28 UTC

parsers:udevadm: Identify CAPTURE devices using the V4L subsystem only

Doing so preserves the /dev/videoX path in the name property that can be
later used in template jobs.

fwts_test_no_syslog_v4 2018-09-18 16:04:23 UTC
scripts:fwts_test: Take into account SKIPPED and WARNING exit summmary

Author: Sylvain Pineau
Author Date: 2018-09-18 16:04:23 UTC

scripts:fwts_test: Take into account SKIPPED and WARNING exit summmary

fwts_test_no_syslog_v3 2018-09-13 15:37:25 UTC
scripts:fwts_test: Fix summary parsing to only fail after the last check

Author: Sylvain Pineau
Author Date: 2018-09-13 15:37:25 UTC

scripts:fwts_test: Fix summary parsing to only fail after the last check

fwts_test_no_syslog_v2 2018-09-13 10:39:10 UTC
scripts:fwts_test: set suspend/resume timings to N/A when not found in logs

Author: Sylvain Pineau
Author Date: 2018-09-13 10:39:10 UTC

scripts:fwts_test: set suspend/resume timings to N/A when not found in logs

fwts_test_no_syslog 2018-09-12 15:32:04 UTC
scripts:fwts_test: open logs using "error='ignore'"

Author: Sylvain Pineau
Author Date: 2018-09-12 15:32:04 UTC

scripts:fwts_test: open logs using "error='ignore'"

hidraw_category 2018-09-04 06:28:56 UTC
Merge branch 'master' of git+ssh://git.launchpad.net/checkbox-support

Author: Sylvain Pineau
Author Date: 2018-09-04 06:28:56 UTC

Merge branch 'master' of git+ssh://git.launchpad.net/checkbox-support

run_watcher_systemd 2018-08-24 08:42:42 UTC
Full rewrite of run_watcher script to monitor systemd journal instead of syslog

Author: Sylvain Pineau
Author Date: 2018-08-22 10:54:24 UTC

Full rewrite of run_watcher script to monitor systemd journal instead of syslog

Since systemd-python is packaged for ubuntu since xenial only, no setup.py
changes.
Applications/snaps wanting this script will need python3-systemd in stage
packages.

patcl-parser-1.11-empty-property-support 2018-05-16 06:11:00 UTC
parsers:pactl: test update with pactl 1.11 sample

Author: Sylvain Pineau
Author Date: 2018-05-16 06:11:00 UTC

parsers:pactl: test update with pactl 1.11 sample

md_devices_support 2018-04-27 07:12:47 UTC
parsers:udevadm: Updated unit tests (software raid created using mdadm)

Author: Sylvain Pineau
Author Date: 2018-04-27 07:12:47 UTC

parsers:udevadm: Updated unit tests (software raid created using mdadm)

mtd_disks 2018-03-19 14:36:28 UTC
paser:udevadm: Add unit test for MTD disks

Author: Sylvain Pineau
Author Date: 2018-03-19 14:36:28 UTC

paser:udevadm: Add unit test for MTD disks

usb_scripts_low_mem 2018-03-12 13:07:13 UTC
scripts:usb_read_write: Only create 20 MiB of random data on low-memory devices

Author: Sylvain Pineau
Author Date: 2018-03-12 13:07:13 UTC

scripts:usb_read_write: Only create 20 MiB of random data on low-memory devices

- Only create a 20 MiB random file on devices with less than 1 GiB of RAM
- Run dd with bs=1M and oflag=sync
- Log on stdout too

canbus_classic 2017-12-15 10:37:56 UTC
udev parser: Use product name to detect CANBUS on classic

Author: Sylvain Pineau
Author Date: 2017-12-15 10:37:56 UTC

udev parser: Use product name to detect CANBUS on classic

udev_infiniband 2017-11-20 16:15:04 UTC
udev parser: Add the new INFINIBAND category (pci subclass 07)

Author: Sylvain Pineau
Author Date: 2017-11-20 16:15:04 UTC

udev parser: Add the new INFINIBAND category (pci subclass 07)

xml-removal 2017-10-31 16:53:04 UTC
Remove the XML submission parser and dependency on lxml

Author: Sylvain Pineau
Author Date: 2017-10-31 16:53:04 UTC

Remove the XML submission parser and dependency on lxml

unixsocket_python35 2017-10-25 08:23:28 UTC
Requires requests_unixsocket only for python >= 3.5

Author: Sylvain Pineau
Author Date: 2017-10-25 08:23:28 UTC

Requires requests_unixsocket only for python >= 3.5

Which corresponds to all releases but Trusty

fwts_critical_only 2017-09-11 15:09:40 UTC
scripts:fwts_test: Set the default FWTS failure level to critical

Author: Sylvain Pineau
Author Date: 2017-09-11 15:09:40 UTC

scripts:fwts_test: Set the default FWTS failure level to critical

usb_partion_hub_version 2017-07-21 09:26:31 UTC
parsers:udevadm: Report the current usb hub version using the bus property (P...

Author: Sylvain Pineau
Author Date: 2017-07-21 09:26:31 UTC

parsers:udevadm: Report the current usb hub version using the bus property (PARTITION only)

smo8800 2017-07-07 08:23:18 UTC
report devices with smo8800 driver as ACCELEROMETER

Author: Sylvain Pineau
Author Date: 2017-07-07 08:23:18 UTC

report devices with smo8800 driver as ACCELEROMETER

cleanup_duplicates 2017-06-29 13:34:19 UTC
Move the bt_helper.py module to the checkbox-support package

Author: Sylvain Pineau
Author Date: 2017-06-29 13:34:19 UTC

Move the bt_helper.py module to the checkbox-support package

usb_read_write 2017-06-09 10:04:22 UTC
New console_scripts entry point for usb_read_write

Author: Sylvain Pineau
Author Date: 2017-06-09 10:04:22 UTC

New console_scripts entry point for usb_read_write

list-removable-partitions 2017-05-23 12:43:52 UTC
parsers:udevadm: Leverage the device parser to report removable partitions

Author: Sylvain Pineau
Author Date: 2017-05-23 12:43:52 UTC

parsers:udevadm: Leverage the device parser to report removable partitions

Without udisks2 to list disks/partitions in the removable storage script in
checkbox, the udev parser can come to the rescue.

A new category "PARTITION" is then reported to identify removable partitions
(e.g: usb/mmc).

Such "devices" are not reported by default and callers such as the udev_resource
script from the resource provider have to create the factory UdevadmDevice
with list_partitions=True.

Partition types can be distinguished using the bus property (usb or mmc).

nvme_controllers_misc 2017-04-04 15:13:20 UTC
parsers:udevadm: Report nvme controllers with subsystem set to 'misc'

Author: Sylvain Pineau
Author Date: 2017-04-04 15:13:20 UTC

parsers:udevadm: Report nvme controllers with subsystem set to 'misc'

Example:

P: /devices/pci0000:40/0000:40:03.0/0000:44:00.0/0000:45:04.0/0000:46:00.0/misc/nvme0
N: nvme0
E: DEVNAME=/dev/nvme0
E: DEVPATH=/devices/pci0000:40/0000:40:03.0/0000:44:00.0/0000:45:04.0/0000:46:00.0/misc/nvme0
E: MAJOR=10
E: MINOR=57
E: SUBSYSTEM=misc

fix-1467521 2017-04-03 15:36:33 UTC
parsers:udevadm: Fake a product name for /dev/mapper devices

Author: Sylvain Pineau
Author Date: 2017-04-03 15:36:33 UTC

parsers:udevadm: Fake a product name for /dev/mapper devices

udevadm_export_list_only 2017-04-03 07:30:37 UTC
parsers:udevadm: Record only the list of devices when exporting to json

Author: Sylvain Pineau
Author Date: 2017-04-03 07:30:37 UTC

parsers:udevadm: Record only the list of devices when exporting to json

Previous: {"devices": []}
New: []

fix-pidvid-wireless-without-iface 2017-03-30 12:56:58 UTC
parsers:udevadm: Avoid overriding devide pid/vid with parent data when unnece...

Author: Sylvain Pineau
Author Date: 2017-03-30 12:56:58 UTC

parsers:udevadm: Avoid overriding devide pid/vid with parent data when unnecessary

For wireless devices without known interfaces don't look at parent in the udev
stack for pid/vid as in that case we're often getting the pci hub ids.

fix-1677167 2017-03-29 12:03:41 UTC
parsers:udev: Detect missing NVME DISK devices

Author: Sylvain Pineau
Author Date: 2017-03-29 12:03:41 UTC

parsers:udev: Detect missing NVME DISK devices

Previous parsing was able to report NVME disks with paths like this:
P: /devices/pci0000:40/0000:40:03.0/0000:44:00.0/0000:45:04.0/0000:46:00.0/block/nvme0n1

Sometimes NVME disk devices can also be reported as follow:
P: /devices/pci0000:00/0000:00:1d.0/0000:3e:00.0/nvme/nvme0/nvme0n1

In that case we can see both /dev/nvme0 and /dev/nvme0n1 but only nvme0n1 is
the disk we need to report.
It means having to look 2 level up in the stack to find driver/bus/pid/vid information.

Fixes LP: #1677167

wwan_category 2017-03-28 17:02:06 UTC
parsers:udevadm: Create the WWAN category

Author: Sylvain Pineau
Author Date: 2017-03-28 17:02:06 UTC

parsers:udevadm: Create the WWAN category

Many jobs use the device category NETWORK and expect to run tests on Ethernet ports.
But wwan devices were reported as NETWORK making device filters unreliable.

Using the DEVTYPE=wwan rule, we can now create the WWAN category and then
keep NETWORK for ethernet devices.

Signed-off-by: Sylvain Pineau <sylvain.pineau@canonical.com>

master 2017-02-03 10:40:49 UTC
Merge #316315 from checkbox-support:release

Author: PMR
Author Date: 2017-02-03 10:40:49 UTC

Merge #316315 from checkbox-support:release

Release_2017_Week5

discard_usb_disks 2017-01-31 09:01:06 UTC
parsers:udevadm: Add tests for the CANBUS category

Author: Sylvain Pineau
Author Date: 2017-01-31 09:01:06 UTC

parsers:udevadm: Add tests for the CANBUS category

canbus_udev 2017-01-27 09:17:16 UTC
parsers:udevadm: Add support for CANBUS devices

Author: Sylvain Pineau
Author Date: 2017-01-27 09:17:16 UTC

parsers:udevadm: Add support for CANBUS devices

Using the DEVLINKS property, the udev parser can now detect CANBUS devices:

- /dev/hidraw-canbus
- /dev/serial-port-canbus

Example:

        {
            "bus": "hidraw",
            "category": "CANBUS",
            "driver": "hid-generic",
            "name": "hidraw0",
            "path": "/devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4.3/1-4.3:1.0/0003:04D8:003F.0001/hidraw/hidraw0",
            "product": "CANBus HID Device Demo",
            "product_id": "003f",
            "product_slug": "CANBus_HID_Device_Demo",
            "vendor": "Microchip Technology Inc.",
            "vendor_id": "04d8",
            "vendor_slug": "Microchip_Technology_Inc."
        },

keep_bt_devices_without_product_id 2017-01-13 09:23:04 UTC
parsers:udevadm: Keep BT devices even w/o vendor/product info

Author: Sylvain Pineau
Author Date: 2017-01-13 09:23:04 UTC

parsers:udevadm: Keep BT devices even w/o vendor/product info

To avoid ending up with multiple detected devices for the same udev path,
if another BLUETOOTH device is detected in the descendant stack this parent
is ignored.

fix-1647670 2016-12-06 12:22:10 UTC
parsers:submission: Add confinement, revision, and channel to SnapPackage

Author: Sylvain Pineau
Author Date: 2016-12-06 12:22:10 UTC

parsers:submission: Add confinement, revision, and channel to SnapPackage

And also fix date field name to be install-date.
Fixes lp:1647670

mac_property 2016-11-24 12:52:55 UTC
parsers:udevadm: Ensure lsblk output are strings not bytes

Author: Sylvain Pineau
Author Date: 2016-11-24 09:03:09 UTC

parsers:udevadm: Ensure lsblk output are strings not bytes

run_lsblk_from_udev_parser_entry_point 2016-10-31 10:38:41 UTC
parsers:udevadm: Run lsblk from parse_udevadm_output

Author: Sylvain Pineau
Author Date: 2016-10-31 10:38:41 UTC

parsers:udevadm: Run lsblk from parse_udevadm_output

If the parse_udevadm_output lsblk argument is None then run the `lsblk` command
in a subprocess.

This is required since we use plainbox dev parser udevadm to attach the outout
as a json blob in the sumission report.

To be still compliant with the way unit tests are written, tests will pass
an empty string instead of None.

new_json_exporter 2016-10-18 16:30:26 UTC
rename the udevadm result main key, "device_list" -> "devices"

Author: Sylvain Pineau
Author Date: 2016-10-18 16:30:26 UTC

rename the udevadm result main key, "device_list" -> "devices"

This way we can use plainbox dev parse udevadm to create the new json report
and still be compatible with the lp:hexr checkbox parser.

159 of 59 results
This repository contains Public information 
Everyone can see this information.

Subscribers