Skip to content

checkbox remote needs a way to resume a test session #22

@beliaev-maksim

Description

@beliaev-maksim

This issue was migrated from https://bugs.launchpad.net/checkbox-ng/+bug/1936477

Summary

Status Created on Heat Importance Security related
Confirmed 2021-07-16 08:29:07 28 Critical False

Description

It is far too easy for the CDTS master to lose connection with the SUT. When this happens, you end up back at the main selection screen, and the previous test session is completely lost.

Even trying to select tests to rerun them can cause the session to be lost.

Running Checkbox on the SUT locally can detect interrupted sessions and allow you to resume.

Steps to reproduce

  1. Install checkbox on the host and the device under test (DUT).
  2. Make sure the checkbox service is launched on the DUT:

systemctl status checkbox-ng.service
● checkbox-ng.service - Checkbox Remote Service
     Loaded: loaded (/lib/systemd/system/checkbox-ng.service; enabled; vendor preset: enabled)
     Active: active (running) since Wed 2021-11-10 10:01:37 CST; 5 days ago
   Main PID: 1455 (checkbox-cli)
      Tasks: 1 (limit: 19051)
     Memory: 28.1M
     CGroup: /system.slice/checkbox-ng.service
             └─1455 /usr/bin/python3 /usr/bin/checkbox-cli service

(Please note: the service name might be different if you use CDTS or Checkbox as a snap. For CDTS for instance, it's snap.cdts.service.service)

  1. On the host, connect to the DUT:

$ checkbox-cli remote <DUT_IP>

  1. Select a test plan and start the test run (for instance, an automated test plan or a stress test plan such as client-cert-iot-server-20-04-[automated|stress]).

  2. While testing is ongoing, restart your host computer.

  3. After restart, try connecting back to the DUT:

$ checkbox-cli remote <DUT_IP>

Expected result

Checkbox prompts to ask if you want to resume the session.

Actual result

Checkbox starts afresh, showing you the list of available test plans in order to start a new test run.

Attachments

sessions.tar.xz
202110-29555-sessions.tar.gz

Tags:
['checkbox', 'checkbox-session-resume']

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions