~sylvain-pineau/checkbox-ng:remote_resume_after_reboot_V2

Last commit made on 2019-02-08
Get this branch:
git clone -b remote_resume_after_reboot_V2 https://git.launchpad.net/~sylvain-pineau/checkbox-ng
Only Sylvain Pineau can upload to this branch. If you are Sylvain Pineau please log in for upload directions.

Branch merges

Branch information

Name:
remote_resume_after_reboot_V2
Repository:
lp:~sylvain-pineau/checkbox-ng

Recent commits

ec339fa... by Sylvain Pineau

session:remote_assistant: Bump API version (4->5)

af67a3e... by Sylvain Pineau

remote: Add urwid screen when slave is resuming a session

A 10s delay lets the user to press CTRL-C and open the cancellation menu.
Useful to break a potential reboot loop.

eb5ea30... by Sylvain Pineau

remote: Enhance run_jobs with resumed_session_info data

When the slave is about to resume a session (e.g after a sut reboot),
run_jobs is called with a non empty resumed_session_info that contains
the id of the last run job.
The only ui change is the display of the resumed job id and its outcome.

When silent ui type is used a 20s delay allows the tester to manually interrupt
the auto-resume.

53b40f1... by Sylvain Pineau

session:remote_assistant: Add the get_job_result method

2865cb0... by Sylvain Pineau

session:remote_assistant: Save the launcher in the session app_blob

The easiest way to reload launcher settings when resuming sessions.

c18bd94... by Sylvain Pineau

session:remote_assistant: Add the resume_by_id method

Calling this method resume the remote session and sets the last job result.
It also takes into account the special file $CHECKBOX_DATA/__result to
record a different result object.

Per job attemps for auto-retry are set again and guessed using the launcher
max_attempts value and the number of existing results stored in the result_history.

Note: This method is now used by resume_last.

25b2a61... by Sylvain Pineau

remote: Add missing header before displaying results

696b527... by Sylvain Pineau

remote: Properly render stderr stream lines in red

1cd5629... by Sylvain Pineau

session:restart: Add the RemoteSnappyRestartStrategy

The session_id is recorded in $SNAP_DATA/session_resume

For development purpose, this strategy can be selected by starting the
checkbox slave with:

$ sudo REMOTE_RESTART_DEBUG=1 checkbox-cli slave

21baaee... by Sylvain Pineau

session:assistant: Don't reset running_job_name

It's the only way to find out the last run job when resuming a remote session
after reboot. It's used in remote_assistant.