roachprod,roachtest: use roachprod stage for older cockroach binaries#56163
roachprod,roachtest: use roachprod stage for older cockroach binaries#56163craig[bot] merged 1 commit intocockroachdb:masterfrom
Conversation
c05f87f to
de778c3
Compare
|
This could use some cleanup, and there's a TODO about supporting the |
de778c3 to
c76db6f
Compare
tbg
left a comment
There was a problem hiding this comment.
Haven't reviewed in-depth, but that approach looks good. Ping me when you are ready for a closer look.
Previously, the version upgrade roachtests used binfetcher to fetch older cockroach binaries, which doesn't work as-is with the geos libraries that are now included with our releases. This was blocking mixed version 20.2/21.1 testing. This PR replaces all the uses of binfetcher with `roachprod stage` to download older cockroach releases in roachtests. It also adds an optional`--dir` flag to `roachprod stage` to specify the directory to stage the binary and libraries to, which is needed for the mixed-version tests because they need to keep the old binaries and libraries around in order to downgrade. Release note: None
c76db6f to
b46c03e
Compare
|
@tbg this is RFAL. |
| return err | ||
| } | ||
| c.Put(ctx, b, "./cockroach", c.Node(i)) | ||
| if err := c.Stage(ctx, c.l, "release", "v"+binaryVersion, "", c.Node(i)); err != nil { |
There was a problem hiding this comment.
Doesn't this download the same binary in a loop? Can c.Stage or even roachprod stage do the caching so we don't have to be smart about each invocation of c.Stage?
|
As of this PR, there are two remaining uses of binfetcher: cockroach/pkg/cmd/roachtest/scaledata.go Lines 77 to 86 in 6ad8270 cockroach/pkg/cmd/roachtest/tpchvec.go Lines 593 to 603 in 61dbe00 Can both be converted to use |
|
I'm on board with these proposed improvements, but how would you feel about merging this now and opening some issues for later? I'm eager to unblock, e.g., #56190. |
|
Sounds good!
…On Fri, Nov 6, 2020, 15:28 Lucy Zhang ***@***.***> wrote:
I'm on board with these proposed improvements, but how would you feel
about merging this now and opening some issues for later? I'm eager to
unblock, e.g., #56190
<#56190>.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#56163 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABGXPZGG7LM5ELQABGO3SRLSOQB2XANCNFSM4TFNGOAA>
.
|
|
@tbg would you mind stamping this with an approval? |
|
TFTR! bors r+ |
|
Build succeeded: |
|
nice |
Previously, the version upgrade roachtests used binfetcher to fetch
older cockroach binaries, which doesn't work as-is with the geos
libraries that are now included with our releases. This was blocking
mixed version 20.2/21.1 testing.
This PR replaces all the uses of binfetcher with
roachprod stagetodownload older cockroach releases in roachtests. It also adds an
optional
--dirflag toroachprod stageto specify the directory tostage the binary and libraries to, which is needed for the mixed-version
tests because they need to keep the old binaries and libraries around in
order to downgrade.
Closes #55706.
Release note: None