testnet-automation: More knobs for rolling upgrades#12337
testnet-automation: More knobs for rolling upgrades#12337t-nelson wants to merge 11 commits intosolana-labs:masterfrom
Conversation
fbf9828 to
ea41de4
Compare
|
@t-nelson Please take look at this: #12390 (comment) :) |
ea41de4 to
102f7d2
Compare
102f7d2 to
6e9c14a
Compare
| # Clone the specified committish | ||
| git clone "$remote" "$tmp_source_dir" |
There was a problem hiding this comment.
Is there any reason we have to clone all new? I think we can add another worktree like this:
# Create temporal source dir to build
git fetch origin "$branch"
if [[ -n $commitish ]]; then
git worktree add "$tmp_source_dir" $commitish
else
git worktree add "$tmp_source_dir" FETCH_HEAD
fiThere was a problem hiding this comment.
Nope! This was just a quick and dirty script to see if I could get what I wanted working (see script file name 😅). Plenty of optimizations to be had here
There was a problem hiding this comment.
what a quick reply. :) I updated my comment by picking something from my attempt #12390. let's unify our work for the better. :)
There was a problem hiding this comment.
this way we can build off at arbitrary commit, might be useful for building with fast-changing release branches.
| remote=https://github.com/solana-labs/solana.git | ||
|
|
||
| cleanup_tmp_source_dir() { | ||
| rm -rf "$tmp_source_dir" |
There was a problem hiding this comment.
https://github.com/solana-labs/solana/pull/12337/files#r493804567 and do this?:
git worktree remove --force "$tmp_source_dir"
| git fetch origin "$committish":branch_to_build | ||
| git checkout branch_to_build |
There was a problem hiding this comment.
this can be merged into https://github.com/solana-labs/solana/pull/12337/files#r493804567
| set -x | ||
| # shellcheck disable=SC2086 # Don't want to double quote $rust_version | ||
| $cargo $maybeRustVersion build $maybeReleaseFlag "${binArgs[@]}" | ||
| $cargo $maybeRustVersion build $maybeReleaseFlag --bins |
There was a problem hiding this comment.
qq: why is this needed? because of shellcheck?
There was a problem hiding this comment.
IIRC some bins were missing without
| mkdir -p "$installDir/bin" | ||
| for bin in "${BINS[@]}"; do | ||
| cp -fv "target/$buildVariant/$bin" "$installDir"/bin | ||
| for bin in "target/$buildVariant/"*; do |
There was a problem hiding this comment.
There was a problem hiding this comment.
Idea here was basically to get rid of the manually specified bin list, so we don't have to maintain it
|
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
c1bc6e1 to
1bdaf57
Compare
1bdaf57 to
1acd93f
Compare
This reverts commit d15f87d.
918f80a to
f44ad58
Compare
|
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
|
This stale pull request has been automatically closed. Thank you for your contributions. |
|
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
|
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
|
This stale pull request has been automatically closed. Thank you for your contributions. |
Problem
1.2 -> 1.3 still falls over
Summary of Changes
--cluster-type