← Back to issue list

adt, cannot snapcraft clean without remote parts when in use

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1596114
Type
issue
State
closed
Author
~sergiusens
Labels
verification-done
Created
Updated
Closed

Current evaluation

Fixed the ADT demo-test failure by refreshing the remote-parts cache in merged PR #604 (0455c99cf); Snapcraft 2.12 was verified and released to xenial-updates.

Resolution: closed resolved

Reason: PR #604 merged as commit 0455c99cf and updated the demo tests to refresh remote parts before running. Launchpad comments confirm SRU 2.12 was successfully verified and released to xenial-updates.

Evaluated by: mr-cal-bot

No scores available.

Issue body

====================================================================== ERROR: demos_tests.test_mosquitto.MosquittoTestCase.test_mosquitto ---------------------------------------------------------------------- output: {{{b"\x1b[0;31mIssue detected while analyzing snapcraft.yaml: Cannot find definition for part 'mqtt-paho/python3'. It may be a remote part, run `snapcraft update` to refresh the remote parts cache\x1b[0m\r\n"}}} Traceback (most recent call last):   File "/tmp/adt-run.1qGfm6/build.Rmd/real-tree/snaps_tests/demos_tests/test_mosquitto.py", line 27, in test_mosquitto     self.build_snap(self.snap_content_dir)   File "/tmp/adt-run.1qGfm6/build.Rmd/real-tree/snaps_tests/__init__.py", line 159, in build_snap     self._clean(working_dir)   File "/tmp/adt-run.1qGfm6/build.Rmd/real-tree/snaps_tests/__init__.py", line 164, in _clean     self._run_command(command, project_dir)   File "/tmp/adt-run.1qGfm6/build.Rmd/real-tree/snaps_tests/__init__.py", line 194, in _run_command     'Exit status: {!r}.'.format(process.exitstatus)) snaps_tests.CommandError: Error running command 'snapcraft clean' in 'demos/mosquitto'. Exit status: 1. ====================================================================== ERROR: demos_tests.test_qt4_text_editor.Qt4TextEditorTestCase.test_text_editor ---------------------------------------------------------------------- output: {{{b"\x1b[0;31mIssue detected while analyzing snapcraft.yaml: Cannot find definition for part 'qt4conf'. It may be a remote part, run `snapcraft update` to refresh the remote parts cache\x1b[0m\r\n"}}} Traceback (most recent call last):   File "/tmp/adt-run.1qGfm6/build.Rmd/real-tree/snaps_tests/demos_tests/test_qt4_text_editor.py", line 25, in test_text_editor     self.build_snap(self.snap_content_dir)   File "/tmp/adt-run.1qGfm6/build.Rmd/real-tree/snaps_tests/__init__.py", line 159, in build_snap     self._clean(working_dir)   File "/tmp/adt-run.1qGfm6/build.Rmd/real-tree/snaps_tests/__init__.py", line 164, in _clean     self._run_command(command, project_dir)   File "/tmp/adt-run.1qGfm6/build.Rmd/real-tree/snaps_tests/__init__.py", line 194, in _run_command     'Exit status: {!r}.'.format(process.exitstatus)) snaps_tests.CommandError: Error running command 'snapcraft clean' in 'demos/qt4-text-editor'. Exit status: 1. ====================================================================== ERROR: demos_tests.test_qt5_text_editor.Qt5TextEditorTestCase.test_text_editor ---------------------------------------------------------------------- output: {{{b"\x1b[0;31mIssue detected while analyzing snapcraft.yaml: Cannot find definition for part 'qt5conf'. It may be a remote part, run `snapcraft update` to refresh the remote parts cache\x1b[0m\r\n"}}} Traceback (most recent call last):   File "/tmp/adt-run.1qGfm6/build.Rmd/real-tree/snaps_tests/demos_tests/test_qt5_text_editor.py", line 25, in test_text_editor     self.build_snap(self.snap_content_dir)   File "/tmp/adt-run.1qGfm6/build.Rmd/real-tree/snaps_tests/__init__.py", line 159, in build_snap     self._clean(working_dir)   File "/tmp/adt-run.1qGfm6/build.Rmd/real-tree/snaps_tests/__init__.py", line 164, in _clean     self._run_command(command, project_dir)   File "/tmp/adt-run.1qGfm6/build.Rmd/real-tree/snaps_tests/__init__.py", line 194, in _run_command     'Exit status: {!r}.'.format(process.exitstatus)) snaps_tests.CommandError: Error running command 'snapcraft clean' in 'demos/qt5-text-editor'. Exit status: 1. [Impact] * For users, none. * A test started failing in master, but wasn't released to the distro. [Test Case] * Run the snaps suite. [Regression Potential] * None. If the test doesn't start passing, the release will be blocked by autopkgtests.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Fixed the ADT demo-test failure by refreshing the remote-parts cache in merged PR #604 (0455c99cf); Snapcraft 2.12 was verified and released to xenial-updates.
stealth/space-bunny-alpha — closed resolved Auto-test failure: `snapcraft clean` aborted with 'Cannot find definition for part' when the remote-parts cache was missing. Fixed by PR #604 (commit 0455c99cf) which refreshes the remote parts cache before demo tests; SRU 2.12 verified and released to xenial-updates.
stealth/space-bunny-alpha — closed resolved Fixed the ADT test failure by refreshing the remote-parts cache before demo tests. Merged PR canonical/snapcraft#604 passed snaps_tests and addressed LP #1596114.
qwen/qwen3.6-35b-a3b — — Fixed test failures where snapcraft clean failed due to missing remote parts cache. Updated the test suite to run snapcraft update before cleaning. Verified and closed.
qwen/qwen3.6-35b-a3b — — Fixed test failures where snapcraft clean failed due to missing remote parts. The resolution was verified, allowing the autopkgtest suite to pass and unblocking the release.
qwen/qwen3.6-35b-a3b — — Test failures for snapcraft clean caused by missing remote parts were fixed. The issue only impacted unreleased master builds, carried no user impact, and was verified as resolved.
qwen/qwen3.6-35b-a3b — — Fixed adt test failures caused by missing remote parts cache during snapcraft clean. Updated the test suite to run snapcraft update before cleaning, resolving errors for mosquitto and qt demos. Verified and closed.
qwen3.6-35b-a3b-mtp-q6 — — Resolved test failures where snapcraft clean failed due to missing remote parts. The fix was implemented, verified, and closed, preventing autopkgtest blocks.

Update history

Date Change
created

Related work

  • Likely Fixed By: ubuntu-core/snapcraft#604 (confidence 100%)

    Merged commit 0455c99cf refreshes the remote-parts cache before the failing demo tests.

Related issues

No related issues found above the similarity threshold.