The snapcraft install examples tests will fail if there's a snappy update in progress
Metadata
Current evaluation
Closed. Resolved by disabling snappy autoupdate during test setup to prevent background updates from polluting expected output and causing failures.
Suggested action: —
No scores available.
Issue body
If an snappy autoupdate occurs during the examples tests run, the snappy commands will wait for the update to finish, polluting the expected output of the tests:
_StringException: Traceback (most recent call last):
File "/home/jenkins-slave/workspace/github-snapcraft-integration-tests-cloud/examples_tests/tests.py", line 100, in test_example
self.install_snap(self.example_dir, self.name, self.version)
File "/home/jenkins-slave/workspace/github-snapcraft-integration-tests-cloud/examples_tests/__init__.py", line 158, in install_snap
self.assertThat(output, MatchesRegex(expected, flags=re.DOTALL))
File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 435, in assertThat
raise mismatch_error
testtools.matchers._impl.MismatchError: 'Snappy is updating your system in the background. This may take some minutes.\nWill try again in 5 seconds...\nPress ctrl-c to cancel.\nInstalling godd_1.0_amd64.snap\nName Date Version Developer \ncanonical-pc 2016-02-02 3.0 canonical \ncanonical-pc-linux 2016-02-22 4.4.0-6-1 canonical \ngodd 2016-02-23 INNNcLXJgJdN sideload \nubuntu-core 2016-02-22 16.04.0-17 canonical \n' does not match /Installing godd_1.0_amd64.snap\n.*godd +.* +.* +sideload *\n.*/
We need to disable autoupdate on test setup.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Closed. Resolved by disabling snappy autoupdate during test setup to prevent background updates from polluting expected output and causing failures. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed. The reported test failures caused by snappy autoupdate were resolved by implementing the suggested fix to disable autoupdate during test setup, preventing output pollution. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1573349 snapcraft examples are starting the binaries from outdated path | snapcraft (launchpad) | closed | Updated snapcraft example paths from /snaps/bin to /snap/bin to resolve failing tests. The fix was verified and the issue closed. | |
| #1569401 example tests are failing because they call the old snappy command | snapcraft (launchpad) | closed | Closed without a linked fix or comments. Example tests still reference the deprecated snappy command instead of snap. The issue appears abandoned or superseded by later repository updates. |