← Back to issue list

libpipeline example needs to be reviewed

View original Launchpad issue

Metadata

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

Current evaluation

The libpipeline example test was updated by ubuntu-core/snapcraft#368, merged as f4f02c0d2, to handle the empty working directory and grep behavior.

Resolution: closed resolved

Reason: The maintainer stated that ubuntu-core/snapcraft#368 would also fix this problem; that PR was merged in commit f4f02c0d2 and updated the libpipeline test expectation.

Evaluated by: mr-cal-bot

No scores available.

Issue body

<mterry> elopio, um, if I recall, it was to demonstrate that snapcraft could integrate with your locally built project too. Like you have your source tree. And then you had snapcraft grab all the dependencies and build them. And then you could run "snapcraft shell make" to build your local project pointing at the snapcraft built files. I don't know whether that concept meshes with the snapcraft of today anymore <mterry> elopio, (i.e. to demonstrate that you could build that local test.c against snapcraft's copy of libpipeline) This test is successfully using the remote lp:~mterry/libpipeline/printf, but it's also using the remote lp:~mterry/+junk/pipelinetest and totally ignoring the local files test.c and Makefile. We should either change the libpipeline part to use the local files, or remove them. In addition to this, the test uses ls to test the pipeline. Now that the snap's cwd is empty, ls doesn't make a lot of sense anymore. See https://bugs.launchpad.net/snapcraft/+bug/1554637

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved The libpipeline example test was updated by ubuntu-core/snapcraft#368, merged as f4f02c0d2, to handle the empty working directory and grep behavior.
stealth/space-bunny-alpha — closed resolved Resolved by canonical/snapcraft#368 (commit 0eb3337dc), updating the libpipeline example test to expect the empty output produced in the snap's working directory.
stealth/space-bunny-alpha — closed stale Closed without implementation after about 10 years of inactivity. canonical/snapcraft#368 fixed only the related empty-directory ls assertion; the local-source review remained unresolved.
qwen/qwen3.6-35b-a3b — — Closed without action, likely abandoned or superseded by updated snapcraft tooling. The example was flagged for ignoring local files and using outdated commands, but no changes were implemented.
qwen/qwen3.6-35b-a3b — — Closed without resolution. The issue flagged inconsistencies in the libpipeline example, noting it ignored local files for remote branches and used an outdated ls command in an empty working directory. No changes were made.

Update history

Date Change
created

Related work

  • Related To: snapcraft (launchpad)#1554637 (confidence 98%)

    The example's use of ls was tied to the separate empty-working-directory problem.

  • Likely Fixed By: ubuntu-core/snapcraft#368 (confidence 97%)

    The linked PR was explicitly cited by the maintainer and merged with a libpipeline test update.

Related issues

Issue Project State Summary Similarity
#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.
88%
#368 examples_tests: update the expected result of the libpipeline test snapcraft merged Merged in canonical/snapcraft#368 via 0eb3337dc; the libpipeline example test now expects empty ls output when the snap runs in an empty working directory.
80%
#1560254 test_libpipeline example fails with /snaps/bin/pipelinetest.pipelinetest: No such file or directory snapcraft (launchpad) closed Ubuntu Core changed the libpipeline executable name; the test was fixed in canonical/snapcraft#389, merged as 26715f38d (implementation 238febdf7).
74%
#1550108 libpipeline example will fail when skiping the install snapcraft (launchpad) closed Fixed by merged snapcraft PR #341 (merge commit 509011969), which skips the libpipeline output assertion when installation is skipped.
73%
#389 libpipeline example test: update the binary name snapcraft merged PR #389 by sergiusens updated the libpipeline example test's expected binary name for the new ubuntu-core release, fixing rolling-edge failures (LP #1560254). Merged via commit 26715f38d (squashed as 238febdf7).
72%
#326 examples_tests: fix the libpipeline test. snapcraft merged Merged PR #326 as commit 8611ef560, refactoring example tests into independent files and fixing the libpipeline test for LP #1546771.
72%
#387 libpipeline example test: update the binary name snapcraft closed Closed unmerged in favor of rebased #389, which merged the libpipeline binary-name test update via commit 238febdf7.
70%