← Back to issue list

tests: add the home plug to the plainbox snap

View original Github issue

Metadata

Project
snapcraft
Number
#1740
Type
pull request
State
merged
Author
come-maiz
Labels
Created
Updated
Closed

Current evaluation

Merged changes adding the home plug to the plainbox snap. This resolves permission errors for tests writing to XDG_CACHE_HOME in $HOME/autopkgtest_tmp during autopkgtests. Approved by two reviewers and passed CI.

Suggested action:

No scores available.

Issue body

On integration tests we set XDG_CACHE_HOME to a temporary directory in TMPDIR. In autopkgtests we are now setting TMPDIR to $HOME/autopkgtest_tmp. The plainbox test tries to write to XDG_CACHE_HOME, which used to be somewhere it could write. Now that it is in home, to properly work the snap requires the home plug. LP: #1732076 - [x] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)? - [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)? - [x] If this is a bugfix. Have you checked that there is a bug report open for the issue you are trying to fix on [bug reports](https://bugs.launchpad.net/snapcraft)? - [x] If this is a new feature. Have you discussed the design on the [forum](https://forum.snapcraft.io)? - [x] Have you successfully run `./runtests.sh static`? - [x] Have you successfully run `./runtests.sh unit`? -----

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Merged changes adding the home plug to the plainbox snap. This resolves permission errors for tests writing to XDG_CACHE_HOME in $HOME/autopkgtest_tmp during autopkgtests. Approved by two reviewers and passed CI.
qwen3.6-35b-a3b-mtp-q6 Merged. Added the home plug to the plainbox snap to resolve write permission errors when tests target XDG_CACHE_HOME in the updated $HOME/autopkgtest_tmp directory. Resolves LP: #1732076.
qwen3.6-35b-a3b-mtp-q6 Merged. Added the home plug to the plainbox snap to resolve autopkgtest failures. Changing TMPDIR to $HOME/autopkgtest_tmp requires home directory write access for XDG_CACHE_HOME, resolving LP: #1732076.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1889 tests: remove plainbox part from plugin tests snapcraft merged Merged changes removing the plainbox component from plugin tests. This resolves integration test failures caused by the plainbox library being integrated into the checkbox application, rendering the separate plainbox part obsolete for snaps.
71%
#1603 tests: add /snap/bin to PATH in autopkgtests snapcraft merged Merged to add /snap/bin to the autopkgtests PATH, fixing binary lookup failures. Approved, passed CI, and depends on PR #1595.
71%
#2321 tests: add spread suite for plainbox plugin (#2317) snapcraft merged Merged after approval and passing CI. The pull request adds a Spread test suite for the plainbox plugin, pins the checkbox-ng package, and removes a misplaced test from the snapcraft test suite.
71%