← Back to issue list

packing with `--debug` showing building message over shell

View original Github issue

Metadata

Project
charmcraft
Number
#772
Type
issue
State
closed
Author
rgildein
Labels
—
Created
Updated
Closed

Current evaluation

Reported --debug shell showing the BUILD progress message over the interactive shell. Maintainer directed to merged PR #753 (CRAFT-871), which pauses the emitter during user-requested shells; shipped in charmcraft 1.7 (candidate) as of 2022-05-30.

Resolution: closed resolved

Reason: Closing comment from facundobatista cites PR #753, which pauses the emitter while launching a user-requested shell; that PR merged as commit 47832a45 and the fix shipped in charmcraft 1.7 on the candidate channel.

Evaluated by: mr-cal-bot

No scores available.

Issue body

I run into issue in packing the `charm-cloudsupport`, so I tried it again with `--debug`. It took a long time, so I wanted to kill it and run `--verbose` again to find out what was going on. In this process I spotted that I was actually in shell of building environment, but the message from charmcraft was still on going. Logs from bash are listed below: ```bash $ charmcraft pack --debug Packing the charm Running step BUILD for part 'charm' / (145.0s) rRunning step BUILD for part 'charm' \ (2792.2s) ^C Running step BUILD for part 'charm' - (2793.3s) ^C Running step BUILD for part 'charm' \ (2793.4s) ^C Running step BUILD for part 'charm' - (2793.7s) ^C Running step BUILD for part 'charm' \ (2793.8s) ^C Running step BUILD for part 'charm' | (2794.3s) ^C Running step BUILD for part 'charm' / (2794.4s) ^C root@charmcraft-cloudsupport-6426229-0-0-amd64:~/project# ^C root@charmcraft-cloudsupport-6426229-0-0-amd64:~/project# ^C Running step BUILD for part 'charm' - (2794.5s) ^C root@charmcraft-cloudsupport-6426229-0-0-amd64:~/project# ^C root@charmcraft-cloudsupport-6426229-0-0-amd64:~/project# ^C root@charmcraft-cloudsupport-6426229-0-0-amd64:~/project# ^C Running step BUILD for part 'charm' \ (2794.6s) ^C root@charmcraft-cloudsupport-6426229-0-0-amd64:~/project# ^C root@charmcraft-cloudsupport-6426229-0-0-amd64:~/project# ^C Running step BUILD for part 'charm' | (2794.7s) ^C root@charmcraft-cloudsupport-6426229-0-0-amd64:~/project# ^C root@charmcraft-cloudsupport-6426229-0-0-amd64:~/project# ^C Running step BUILD for part 'charm' / (2794.8s) ^C root@charmcraft-cloudsupport-6426229-0-0-amd64:~/project# ^C root@charmcraft-cloudsupport-6426229-0-0-amd64:~/project# ^C root@charmcraft-cloudsupport-6426229-0-0-amd64:~/project# ^C Running step BUILD for part 'charm' - (2794.9s) ^C root@charmcraft-cloudsupport-6426229-0-0-amd64:~/project# ^C root@charmcraft-cloudsupport-6426229-0-0-amd64:~/project# ^C Running step BUILD for part 'charm' \ (2795.0s) ^C Running step BUILD for part 'charm' | (2796.7s) Running step BUILD for part 'charm' | (2800.7s) Running step BUILD for part 'charm' / (2801.2s) root@charmcraft-cloudsupport-6426229-0-0-amd64:~/project# root@charmcraft-cloudsupport-6426229-0-0-amd64:~/project# Running step BUILD for part 'charm' - (2801.3s) root@charmcraft-cloudsupport-6426229-0-0-amd64:~/project# root@charmcraft-cloudsupport-6426229-0-0-amd64:~/project# root@charmcraft-cloudsupport-6426229-0-0-amd64:~/project# Running step BUILD for part 'charm' \ (2801.4s) root@charmcraft-cloudsupport-6426229-0-0-amd64:~/project# root@charmcraft-cloudsupport-6426229-0-0-amd64:~/project# Running step BUILD for part 'charm' | (2801.5s) root@charmcraft-cloudsupport-6426229-0-0-amd64:~/project# root@charmcraft-cloudsupport-6426229-0-0-amd64:~/project# Running step BUILD for part 'charm' - (2815.7s) ``` snap version: ```bash snap 2.55.3+22.04ubuntu1 snapd 2.55.3+22.04ubuntu1 series 16 ubuntu 22.04 kernel 5.15.0-30-generic ``` charmcraft version: ```bash name: charmcraft summary: The charming tool publisher: Canonical* store-url: https://snapcraft.io/charmcraft license: Apache-2.0 description: | Charmcraft enables charm creators to build, publish, and manage charmed operators for Kubernetes, metal and virtual machines. commands: - charmcraft snap-id: gcqfpVCOUvmDuYT0Dh5PjdeGypSEzNdV tracking: latest/stable refresh-date: 29 days ago, at 23:10 CEST channels: latest/stable: 1.6.0 2022-04-21 (904) 59MB classic latest/candidate: 1.6.0 2022-04-12 (904) 59MB classic latest/beta: ^ latest/edge: 1.6.0+38.gcf0c4c5 2022-05-20 (949) 59MB classic 1.x/stable: 1.6.0 2022-04-20 (904) 59MB classic 1.x/candidate: ^ 1.x/beta: ^ 1.x/edge: ^ 1.6/stable: 1.6.0 2022-04-20 (904) 59MB classic 1.6/candidate: 1.6.0 2022-04-13 (904) 59MB classic 1.6/beta: ^ 1.6/edge: ^ 1.5/stable: 1.5.0 2022-04-13 (834) 59MB classic 1.5/candidate: ^ 1.5/beta: ^ 1.5/edge: ^ installed: 1.6.0 (904) 59MB classic ```

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Reported --debug shell showing the BUILD progress message over the interactive shell. Maintainer directed to merged PR #753 (CRAFT-871), which pauses the emitter during user-requested shells; shipped in charmcraft 1.7 (candidate) as of 2022-05-30.
stealth/space-bunny-alpha — closed resolved Fixed by merged PR #753, which paused the progress emitter during debug shell launches; released in Charmcraft 1.7's candidate channel.
qwen3.6-35b-a3b-mtp-q6 — — Fixed in PR #753 and released in charmcraft 1.7. Debug build messages no longer overwrite the shell prompt during charmcraft pack --debug. The issue is closed.
qwen/qwen3.6-35b-a3b — — Resolved in PR #753 and released in charmcraft 1.7. Build progress messages no longer overwrite the shell prompt during debug packing.
qwen3.6-35b-a3b-mtp-q6 — — Fixed in pull request #753 and released in charmcraft 1.7. Build progress messages no longer overwrite the interactive shell prompt during debug packing. Upgrading to the candidate channel applies the fix.

Update history

No update history recorded yet.

Related work

  • Likely Fixed By: canonical/charmcraft#753 (confidence 95%)

    Merged PR 'Pause the emitter while launching the user-requested shell (CRAFT-871)', commit 47832a45; explicitly cited by the closing comment and shipped in 1.7.

  • Duplicate Of: canonical/charmcraft#753 (confidence 55%)

    Issue treated as already fixed by the earlier emitter-pause work rather than tracked separately.

Related issues

Issue Project State Summary Similarity
#436 feat: support shell/shell-after and debug in 'pack' craft-application merged Merged craft-application#436 (commit ab55ec81), adding --shell/--shell-after to pack and making --debug shell into the build environment when packing fails; fixes #430.
74%
#495 pack: add support for --debug, --shell, and --shell-after (CRAFT-408) charmcraft merged Merged in commit 1a957995, adding --debug, --shell, and --shell-after to pack for interactive and failure-triggered build debugging.
73%