-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
65406: build: build cross toolchains r=rail a=rickystewart The overwhelming majority of the time spent in building the builder image comes from the cross toolchains. Here we separate out the toolchain build into a separate step and package them as `.tar.gz`'s that we simply download and install during the Docker image build. This also opens up the opportunity to use the same toolchains in the Bazel build, although consuming these toolchain artifacts from the Bazel build is a follow-up project. Closes #65351. Release note: None 65660: storage/cloud: remove CloseWithError r=dt a=dt Context cancellation is typically how operations are aborted. When we open a new Writer, we pass a context, so we must assume that that context can be cancelled, which should cancel the write operation. Having an extra CloseWithError method in the API that also cancels the operation is duplicative. Release note: none. Co-authored-by: Ricky Stewart <ricky@cockroachlabs.com> Co-authored-by: David Taylor <tinystatemachine@gmail.com>
- Loading branch information
Showing
29 changed files
with
334 additions
and
302 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
google_credentials="$GOOGLE_EPHEMERAL_CREDENTIALS" | ||
source "$(dirname "${0}")/teamcity-support.sh" | ||
log_into_gcloud | ||
|
||
set -x | ||
|
||
tc_start_block "Build toolchains" | ||
build/toolchains/toolchainbuild/buildtoolchains.sh | ||
tc_end_block "Build toolchains" | ||
|
||
tc_start_block "Publish artifacts" | ||
loc=$(date +%Y%m%d-%H%M%S) | ||
# NB: $root is set by teamcity-support.sh. | ||
gsutil cp -r $root/artifacts gs://public-bazel-artifacts/toolchains/crosstool-ng/$loc | ||
tc_end_block "Publish artifacts" |
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euxo pipefail | ||
|
||
this_dir="$(cd "$(dirname "${0}")"; pwd)" | ||
toplevel="$(dirname $(dirname $(dirname $this_dir)))" | ||
|
||
mkdir -p "${toplevel}"/artifacts | ||
|
||
# note: the Docker image should match the base image of | ||
# `cockroachdb/builder`. | ||
docker run --rm -i ${tty-} -v $this_dir:/bootstrap \ | ||
-v "${toplevel}"/artifacts:/artifacts \ | ||
ubuntu:focal-20210119 /bootstrap/perform-build.sh |
File renamed without changes.
File renamed without changes.
Oops, something went wrong.