-
Notifications
You must be signed in to change notification settings - Fork 89
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
chore: update dfx deploy
output
#4104
Merged
Merged
Changes from 3 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
222486f
Condense deploy output
adamspofford-dfinity 00aa20e
Fix tests
adamspofford-dfinity 9d91a57
Merge branch 'master' into spofford/deploy-output
adamspofford-dfinity bb305d2
Merge branch 'master' into spofford/deploy-output
adamspofford-dfinity 63e296d
Add with_suspend_all_spinners and use it for ask_for_consent
adamspofford-dfinity 85d725a
and for interactive args
adamspofford-dfinity 43c4549
and for rust commands
adamspofford-dfinity 5128f08
this should at least be a utility function
adamspofford-dfinity cef5f92
other spawned commands
adamspofford-dfinity ae7c3b5
Merge branch 'master' into spofford/deploy-output
adamspofford-dfinity File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -210,12 +210,13 @@ async fn register_canisters( | |
if canisters_to_create.is_empty() { | ||
info!(env.get_logger(), "All canisters have already been created."); | ||
} else if env.get_network_descriptor().is_playground() { | ||
info!(env.get_logger(), "Reserving canisters in playground..."); | ||
let spinner = env.new_spinner("Reserving canisters in playground...".into()); | ||
for canister_name in &canisters_to_create { | ||
reserve_canister_with_playground(env, canister_name).await?; | ||
} | ||
spinner.finish_and_clear(); | ||
} else { | ||
info!(env.get_logger(), "Creating canisters..."); | ||
let spinner = env.new_spinner("Creating canisters...".into()); | ||
for canister_name in &canisters_to_create { | ||
let config_interface = config.get_config(); | ||
let compute_allocation = config_interface | ||
|
@@ -285,6 +286,7 @@ async fn register_canisters( | |
) | ||
.await?; | ||
} | ||
spinner.finish_and_clear(); | ||
} | ||
Ok(()) | ||
} | ||
|
@@ -297,15 +299,17 @@ async fn build_canisters( | |
config: &Config, | ||
env_file: Option<PathBuf>, | ||
) -> DfxResult<CanisterPool> { | ||
let log = env.get_logger(); | ||
info!(log, "Building canisters..."); | ||
let spinner = env.new_spinner("Building canisters...".into()); | ||
let build_mode_check = false; | ||
let canister_pool = CanisterPool::load(env, build_mode_check, canisters_to_load)?; | ||
|
||
let build_config = BuildConfig::from_config(config)? | ||
.with_canisters_to_build(canisters_to_build.into()) | ||
.with_env_file(env_file); | ||
canister_pool.build_or_fail(env, log, &build_config).await?; | ||
canister_pool | ||
.build_or_fail(env, env.get_logger(), &build_config) | ||
.await?; | ||
spinner.finish_and_clear(); | ||
Ok(canister_pool) | ||
} | ||
|
||
|
@@ -325,7 +329,7 @@ async fn install_canisters( | |
no_asset_upgrade: bool, | ||
always_assist: bool, | ||
) -> DfxResult { | ||
info!(env.get_logger(), "Installing canisters..."); | ||
let spinner = env.new_spinner("Installing canisters...".into()); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This also conflicts with prompting about upgrades or for initialization arguments:
|
||
|
||
let mut canister_id_store = env.get_canister_id_store()?; | ||
|
||
|
@@ -352,7 +356,7 @@ async fn install_canisters( | |
) | ||
.await?; | ||
} | ||
|
||
spinner.finish_and_clear(); | ||
Ok(()) | ||
} | ||
|
||
|
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't play well with the "ask for consent" and interactive parameter prompting in that can happen when installing a canister. To repro, for example: