adt, cannot snapcraft clean without remote parts when in use
Metadata
Current evaluation
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.
Suggested action: —
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 |
|---|---|---|---|---|
| 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
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #299 fix(remote-build): minor edge cases found with snapcraft | craft-application | merged | Fixed minor snapcraft edge cases in remote builds. Merged following approval by two reviewers and passing CI checks. The update modifies three files, adding 43 lines and removing 13. | |
| #1737 cli: pass remote from container_config to clean method | snapcraft | merged | Merged a fix ensuring snapcraft clean correctly targets remote containers when SNAPCRAFT_CONTAINER_BUILDS specifies a remote. The change passes the remote configuration to the clean method. Approved after testing and minor discussion on variable naming. |