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

android CI: incremental install when retry #6274

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion util/android-commands.sh
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,10 @@ snapshot() {

echo "Installing cargo-nextest"
# We need to install nextest via cargo currently, since there is no pre-built binary for android x86
command="export CARGO_TERM_COLOR=always && cargo install cargo-nextest"
# explicitly set CARGO_TARGET_DIR as otherwise a random generated tmp directory is used,
# which prevents incremental build for the retries.
command="export CARGO_TERM_COLOR=always && export CARGO_TARGET_DIR=\"cargo_install_target_dir\" && cargo install cargo-nextest"

run_with_retry 3 run_command_via_ssh "$command"
return_code=$?

Expand Down
Loading