← Back to issue list

libpipeline example will fail when skiping the install

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1550108
Type
issue
State
closed
Author
~elopio
Labels
—
Created
Updated
Closed

Current evaluation

Fixed by merged snapcraft PR #341 (merge commit 509011969), which skips the libpipeline output assertion when installation is skipped.

Resolution: closed resolved

Reason: PR #341 changed the example test to avoid asserting command output when the snap is not installed, resolving the autopkgtest failure. It was merged as commit 509011969.

Evaluated by: mr-cal-bot

No scores available.

Issue body

When we skip the install, as we do in autopkgtest, the libpipeline example still expects an output from the command. The snap is not installed, the command doesn't exist, so it will obviously fail. ====================================================================== FAIL: test_libpipeline.LibPipelineTestCase.test_libpipeline ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/adt-run.NyY9ey/build.b0I/snapcraft-2.3/examples_tests/test_libpipeline.py", line 34, in test_libpipeline self.assertEqual(output, expected) File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 350, in assertEqual self.assertThat(observed, matcher, message) File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 435, in assertThat raise mismatch_error testtools.matchers._impl.MismatchError: !=: reference = None actual = '''\ running ls | grep c custom libpipeline called command-pipelinetest.wrapper include

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Fixed by merged snapcraft PR #341 (merge commit 509011969), which skips the libpipeline output assertion when installation is skipped.
stealth/space-bunny-alpha — closed resolved Autopkgtest failed because the libpipeline example test asserted command output even when installation was skipped. Fixed by merged PR canonical/snapcraft#341 (commit 509011969), which skips the output assertion in that case; closed as resolved.
stealth/space-bunny-alpha — closed resolved libpipeline tests now skip output assertions when installation is skipped, fixing the autopkgtest failure. PR #341 was merged in commit 509011969.
qwen/qwen3.6-35b-a3b — — Abandoned. Skipping installation causes the libpipeline example test to fail because the expected command is unavailable. No fix or discussion was recorded.
qwen/qwen3.6-35b-a3b — — Closed and fixed. The libpipeline example test failed when installation was skipped due to a missing command. The test was updated to handle missing commands during autopkgtest runs, resolving the failure.
qwen/qwen3.6-35b-a3b — — Closed and abandoned. The test fails when the snap is uninstalled during autopkgtest, but no resolution or follow-up was provided.
qwen3.6-35b-a3b-mtp-q6 — — test_libpipeline fails in autopkgtest when installation is skipped because the command is unavailable. Closed without comments or resolution, indicating the issue was abandoned.

Update history

Date Change
created

Related work

  • Likely Fixed By: canonical/snapcraft#341 (confidence 100%)

    Merged PR explicitly fixes LP #1550108 by skipping the output assertion when installation is skipped.

Related issues

Issue Project State Summary Similarity
#341 examples_tests/libpipeline: skip the output assertion when skipping the install snapcraft merged Merged PR #341 fixed LP #1550108 by skipping the libpipeline output assertion when installation is skipped; merge commit 509011969.
85%
#1554637 libpipeline example fails because it is now run in an empty dir snapcraft (launchpad) closed Updated the libpipeline example test to expect empty output in the new working directory; merged in snapcraft#368 via commit 0eb3337dc.
77%
#1554641 libpipeline example needs to be reviewed snapcraft (launchpad) closed The libpipeline example test was updated by ubuntu-core/snapcraft#368, merged as f4f02c0d2, to handle the empty working directory and grep behavior.
73%