← 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

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.

Suggested action:

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
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.
qwen3.6-35b-a3b-mtp-q6 Fixed in PR #753 and released in charmcraft 1.7. Debug mode no longer overwrites the interactive shell prompt with build progress messages.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#495 pack: add support for --debug, --shell, and --shell-after (CRAFT-408) charmcraft merged Added --debug, --shell, and --shell-after flags to the pack command for debugging charm builds. Merged after approval by three reviewers and passing CI checks, modifying five files.
75%