Skip to content

Conversation

@moliholy
Copy link
Collaborator

@moliholy moliholy commented Oct 7, 2025

Closes #623.

This PR adds a skip-build command to pop up contract.

  • If false, it will always rebuild the contract, even if it was already built. This is the default behaviour.
  • If true, it won't build the contract in advance, UNLESS it wasn't built already. If so, it'll be built, ignoring the --skip-build flag.

@moliholy moliholy requested a review from AlexD10S October 7, 2025 10:58
@moliholy moliholy self-assigned this Oct 7, 2025
@codecov
Copy link

codecov bot commented Oct 7, 2025

Codecov Report

❌ Patch coverage is 25.00000% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 77.32%. Comparing base (2cdb74b) to head (480a296).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
crates/pop-cli/src/commands/up/contract.rs 14.28% 6 Missing ⚠️
@@            Coverage Diff             @@
##             main     #657      +/-   ##
==========================================
- Coverage   77.33%   77.32%   -0.02%     
==========================================
  Files         109      109              
  Lines       24941    24947       +6     
  Branches    24941    24947       +6     
==========================================
+ Hits        19288    19290       +2     
- Misses       3678     3682       +4     
  Partials     1975     1975              
Files with missing lines Coverage Δ
crates/pop-cli/src/commands/up/mod.rs 75.40% <100.00%> (+0.20%) ⬆️
crates/pop-cli/src/commands/up/contract.rs 13.70% <14.28%> (+0.09%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Collaborator

@AlexD10S AlexD10S left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!
Just a nitpick, should we add the --skip-build flag in the integration test to avoid rebuilding it? https://github.com/r0gue-io/pop-cli/blob/main/crates/pop-cli/tests/contract.rs#L110

@moliholy
Copy link
Collaborator Author

moliholy commented Oct 7, 2025

@AlexD10S hmmmm it does not really matter. If it is already built it'll take no time to realize and continue with the process. I don't think it's necessary.

@moliholy moliholy merged commit fa9008d into main Oct 7, 2025
17 of 19 checks passed
@moliholy moliholy deleted the feat/pop-up-build-contract branch October 7, 2025 12:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Always build the contract before deploying with pop up

3 participants