Skip to content

feat: print build logs on verbose mode#499

Merged
brunomenezes merged 2 commits into
prerelease/v2-alphafrom
feat/print-build-logs-on-verbose-opt
Jul 16, 2026
Merged

feat: print build logs on verbose mode#499
brunomenezes merged 2 commits into
prerelease/v2-alphafrom
feat/print-build-logs-on-verbose-opt

Conversation

@brunomenezes

Copy link
Copy Markdown
Contributor

Summary

Currently, the cartesi build command, when using Docker under the hood, is in silent mode even when the --verbose flag is passed. If the build takes a while to happen, the user has no idea what is going on unless they realize to go into docker desktop -> builds -> click tab active build -> tab logs and have a look at the current situation. However, in a CI environment, that is not an option.

Now, by passing the --verbose flag, you will be able to see the logs of the Docker build.

PS: We're dogfooding by enabling it on our own integration tests that require an application to be built before the cases are run against it.

@changeset-bot

changeset-bot Bot commented Jul 1, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 6c4c342

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@cartesi/cli Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@brunomenezes brunomenezes moved this from Todo to In progress in Rollups SDK Jul 1, 2026
@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Coverage Report

Status Category Percentage Covered / Total
🟢 Lines 98.6% (🎯 0%) 4848 / 4917
🔵 Statements 98.6% 4848 / 4917
🔵 Functions 94.78% 127 / 134
🔵 Branches 0% 0 / 0
📁 File Coverage (19 files)
File Lines Statements Functions Branches Uncovered Lines
apps/cli/src/builder/directory.ts 🟢 100% 🟢 100% 🟢 100% 🔴 0% -
apps/cli/src/builder/docker.ts 🟢 86.72% 🟢 86.72% 🟡 66.67% 🔴 0% 75-77, 79, 109-111, 169-178
apps/cli/src/builder/empty.ts 🟢 100% 🟢 100% 🟢 100% 🔴 0% -
apps/cli/src/builder/none.ts 🟢 100% 🟢 100% 🟢 100% 🔴 0% -
apps/cli/src/builder/tar.ts 🟢 100% 🟢 100% 🟢 100% 🔴 0% -
apps/cli/src/compose/builder.ts 🟢 99.79% 🟢 99.79% 🟢 100% 🔴 0% 228
apps/cli/src/compose/common.ts 🟢 100% 🟢 100% 🟢 100% 🔴 0% -
apps/cli/src/compose/node.ts 🟢 99.24% 🟢 99.24% 🟢 100% 🔴 0% 106
apps/cli/src/config.ts 🟢 93.69% 🟢 93.69% 🟢 94.87% 🔴 0% 75-76, 240, 249, 258, 307, ...
apps/cli/src/contracts.ts 🟢 100% 🟢 100% 🟢 100% 🔴 0% -
...rc/errors/ForkChainValidationError.ts 🟢 100% 🟢 100% 🟢 100% 🔴 0% -
...c/errors/UnsupportedForkChainError.ts 🟢 100% 🟢 100% 🟢 100% 🔴 0% -
...c/exec/cartesi-machine-stored-hash.ts 🟢 92.86% 🟢 92.86% 🟢 100% 🔴 0% 36-37
apps/cli/src/exec/cartesi-machine.ts 🟡 75% 🟡 75% 🟡 66.67% 🔴 0% 10-12, 28-30
apps/cli/src/exec/genext2fs.ts 🟢 96.92% 🟢 96.92% 🟢 100% 🔴 0% 87-88
apps/cli/src/exec/index.ts 🟢 100% 🟢 100% 🟢 100% 🔴 0% -
apps/cli/src/exec/mksquashfs.ts 🟢 91.53% 🟢 91.53% 🟢 100% 🔴 0% 70-74
apps/cli/src/exec/util.ts 🟢 85.11% 🟢 85.11% 🟡 66.67% 🔴 0% 24-28, 68-69
apps/cli/src/validations.ts 🟢 100% 🟢 100% 🟢 100% 🔴 0% -

@brunomenezes
brunomenezes force-pushed the feat/print-build-logs-on-verbose-opt branch from b508cef to 2243094 Compare July 1, 2026 13:15
@brunomenezes
brunomenezes marked this pull request as ready for review July 1, 2026 13:20
@brunomenezes brunomenezes moved this from In progress to Waiting review in Rollups SDK Jul 1, 2026
Comment thread apps/cli/src/builder/docker.ts Outdated
Comment thread apps/cli/src/builder/docker.ts Outdated
Comment thread apps/cli/src/commands/build.ts Outdated
Comment thread apps/cli/src/types/docker.ts Outdated
@brunomenezes
brunomenezes force-pushed the feat/print-build-logs-on-verbose-opt branch 5 times, most recently from 685f739 to 389efa2 Compare July 2, 2026 16:50
* Improve the --verbose flag to stream logs from the build process.
* Mainly affects the docker usage that was silent by default.
@brunomenezes
brunomenezes force-pushed the feat/print-build-logs-on-verbose-opt branch from 389efa2 to 6c4c342 Compare July 2, 2026 16:50
@brunomenezes
brunomenezes requested a review from tuler July 3, 2026 10:28
@github-project-automation github-project-automation Bot moved this from Waiting review to Waiting Merge in Rollups SDK Jul 15, 2026
@brunomenezes
brunomenezes merged commit a206a31 into prerelease/v2-alpha Jul 16, 2026
4 checks passed
@brunomenezes
brunomenezes deleted the feat/print-build-logs-on-verbose-opt branch July 16, 2026 15:07
@github-project-automation github-project-automation Bot moved this from Waiting Merge to Done in Rollups SDK Jul 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants