Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reactive plugin: call charm build with -v #924

Closed
hloeung opened this issue Nov 8, 2022 · 4 comments · Fixed by #2021
Closed

reactive plugin: call charm build with -v #924

hloeung opened this issue Nov 8, 2022 · 4 comments · Fixed by #2021
Labels

Comments

@hloeung
Copy link

hloeung commented Nov 8, 2022

Hi,

Trying to debug a build/pack issue, #923, I'm trying to compare output from a failed and previously successful one:

https://launchpadlibrarian.net/631398435/buildlog_charm_ubuntu_focal_amd64_haw-test_BUILDING.txt.gz
https://launchpadlibrarian.net/632662139/buildlog_charm_ubuntu_focal_amd64_testing_BUILDING.txt.gz

Unfortunately, there isn't much output from the charm build step when a charm is successfully built so it makes it quite hard:

:: proof: I: all charms should provide at least one thing
:: charm tool execution command=['charm', 'proof']
:: charm tool execution WARNING: returncode=100
:: charm tool execution command=['charm', 'build', '-o', PosixPath('/home/buildd/haw-test/build/parts/charm/build')]
:: charm tool execution WARNING: returncode=100
Running step STAGE for part 'charm'
Execute action
Running step PRIME for part 'charm'
Execute action
Check result: language [attribute] unknown (The charm is written with Python.; see more at https://juju.is/docs/sdk/charmcraft-analyzers-and-linters#heading--language).
Check result: framework [attribute] unknown (None; see more at https://juju.is/docs/sdk/charmcraft-analyzers-and-linters#heading--framework).
Creating the package itself
Created 'haw-test_ubuntu-20.04-amd64.charm'.

Any chance we can call charm build with -v / --verbose when charmcraft pack is called with --verbosity trace?

@facundobatista
Copy link
Contributor

Hello @hloeung ! Thanks for the report! It's a good idea, I'm flagging this as triaged.

In the meantime, note that you can pass any option to the build command through the reactive-charm-build-arguments config (see here for more details).

Thanks again!

@facundobatista facundobatista added Enhancement New feature or request triaged labels Dec 5, 2022
@lengau
Copy link
Collaborator

lengau commented Sep 20, 2024

This should be done if --verbosity=debug too.

Copy link

Thank you for reporting us your feedback!

The internal ticket has been created: https://warthogs.atlassian.net/browse/CRAFT-3424.

This message was autogenerated

@lengau
Copy link
Collaborator

lengau commented Sep 20, 2024

To anyone wanting to implement this: The location is here:

run_charm_tool(["charm", "proof"])

You'll want to check if craft_cli.emit.mode in (craft_cli.EmitterMode.VERBOSE) and if so add --verbosity=debug to all charm calls.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants