← Back to issue list

Core22 Snap builds don't output error logs

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1981072
Type
issue
State
open
Author
~farshidtz
Labels
core22 craft-1231 lp-snappy snapcraft
Created
Updated
Closed

Current evaluation

Core22 snap builds don't output error logs to stdout/stderr on Launchpad, making debugging difficult. Issue is 4 years old with zero maintainer engagement.

Suggested action: close stale

Reason: This issue is 1518 days old with zero comments and no maintainer engagement. The problem relates to Snapcraft 7 and core22 base behavior, which is now significantly outdated. The issue describes a real logging problem but has been completely inactive for 4 years with no labels, assignee, or triage.

Impact: 50 Quick Win: 30.0 Staleness: 95 Complexity: 40 Confidence: 70 Support Request: 20

Issue body

Launchpad build logs don't include error logs for a snap that has core22 base. I understand that this is more of a Snapcraft issue, but I am reporting it here because it directly affects the usability of Launchpad. This happens because Snapcraft 7 behaves differently depending on the snap base. When core22 is used, the error logs are written to a file. However, when building a core18/core20 snap, the errors are printed to the standard output/error as expected. Snapcraft 7 introduces a flag that can be used to increase verbosity and get build logs on the standard output/error, but that flag is backward-incompatible with respect to the snap base. See https://bugs.launchpad.net/snapcraft/+bug/1980515 This limitation makes it very hard to debug and fix build errors as there is no access to local filesystem on an ephemeral CI instance. Here is an example output, which includes very little helpful information on the error: Executing parts lifecycle: build device-usb-camera 'override-build' in part 'device-usb-camera' failed with code 2. Review the scriptlet and make sure it's correct. Full execution log: '/root/.cache/snapcraft/log/snapcraft-20220708-060352.465359.log' Build failed Traceback (most recent call last):   File "/usr/lib/python3/dist-packages/lpbuildd/target/build_snap.py", line 196, in run     self.build()   File "/usr/lib/python3/dist-packages/lpbuildd/target/build_snap.py", line 182, in build     self.run_build_command(   File "/usr/lib/python3/dist-packages/lpbuildd/target/operation.py", line 46, in run_build_command     return self.backend.run(args, cwd=cwd, env=full_env, **kwargs)   File "/usr/lib/python3/dist-packages/lpbuildd/target/lxd.py", line 533, in run     subprocess.check_call(cmd, **kwargs)   File "/usr/lib/python3.8/subprocess.py", line 364, in check_call     raise CalledProcessError(retcode, cmd) Full build log: https://launchpadlibrarian.net/611876831/buildlog_snap_ubuntu_focal_amd64_edgex-device-usb-camera_BUILDING.txt.gz As discussed internally, Snapcraft 7 may change to: - print build error by default (like the versions before it) - accept the -v/--verbose flag regardless of the core version (https://bugs.launchpad.net/snapcraft/+bug/1980515) - detect when there is no TTY terminal and print logs - add support for an environment variable to enable verbose mode, so that it can be set for Snapcraft 7/core22 and lower alike. One workaround is to check the base value in snapcraft.yaml and snapcraft versions and pass the -v/--verbose flag selectively! But Launchpad doesn't seem to have an interface to pass flags to snapcraft, when using the UI or Python launchpadlib.

Evaluation history

Date Model Scores Action Summary
qwen3.6-35b-a3b-mtp-q6
Impact: 50
Quick Win: 30.0
Staleness: 95
Complexity: 40
Confidence: 70
Support Request: 20
close stale Core22 snap builds don't output error logs to stdout/stderr on Launchpad, making debugging difficult. Issue is 4 years old with zero maintainer engagement.
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 65
Confidence: 80
Support Request: 10
close stale Core22 Snap builds fail to output error logs to stdout/stderr, hindering CI debugging. The issue has been completely inactive for over four years with no maintainer response or assignee.
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 60
Confidence: 85
Support Request: 10
needs triage Reports missing error logs in Launchpad builds for core22 snaps due to Snapcraft 7 behavior changes. Unaddressed for over 4 years with no maintainer comments.
qwen3.6-35b-a3b-mtp-q6
Staleness: 95
Complexity: 65
Confidence: 80
Support Request: 10
needs triage Core22 snap builds on Launchpad fail to output error logs due to Snapcraft 7 behavior changes. The issue remains untriaged with zero maintainer comments and has been inactive for nearly four years.
qwen3.6-35b-a3b-mtp-q6
Staleness: 95
Complexity: 60
Confidence: 90
Support Request: 20
close stale Reports missing error logs in Launchpad core22 snap builds due to Snapcraft 7 file-based logging. Unaddressed for over four years with zero maintainer interaction.

Update history

No update history recorded yet.

Related issues

No related issues found above the similarity threshold.