Skip to content

snap refresh/revert script may fail, but the job is marked as passed regardless #1615

@pieqq

Description

@pieqq

Bug Description

Problem found while testing a device in the lab (Jenkins sample runs: run 1, run 2).

The job snapd/snap-refresh-kernel-.*-to-base-rev is run.

However, it takes so long that it times out... but somehow it is marked as passed. (this is because the job reboots regardless of the test outcome. It's the issue that needs to be fixed)

Because it was marked as passed, the job snapd/snap-revert-kernel-.*-from-base-rev is erroneously executed, and it fails because it cannot find the revision to revert into (because the device never reached that state).

All the snap refresh/revert jobs that launch the snap_update_test.py script and then reboot the device should first check the return code of the script and bail out (exit 1) if the script fails. These jobs are impacted:

Cert-blocker Test Case

  • cert-blocker

To Reproduce

Launch the snap refresh/revert jobs on a device slow enough to fail the test.

Environment

  • Hardware: Tillamook

Relevant log output

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions