Permalink
Checking mergeability…
Don’t worry, you can still create the pull request.
Comparing changes
Open a pull request
27
contributors
Unified
Split
Showing
with
10,642 additions
and 6,917 deletions.
- +13 −0 .github/bors.toml
- +2 −2 build/Dockerfile
- +14 −5 build/common.mk
- +4 −1 build/protobuf.mk
- +2 −0 build/style_test.go
- +96 −0 build/teamcity-post-failures.py
- +6 −23 build/{teamcity-release-upload.sh → teamcity-publish-artifacts.sh}
- +31 −0 build/teamcity-publish-s3-binaries.sh
- +4 −0 build/teamcity-testrace.sh
- +4 −0 build/variables.mk
- +1 −1 c-deps/jemalloc-rebuild
- +90 −0 c-deps/rocksdb-0001-Fix-NDEBUG-windows.patch
- +65 −0 c-deps/rocksdb-0015-delete-range-bug.patch
- +1 −1 c-deps/rocksdb-rebuild
- BIN c-deps/rocksdb.src.tar.xz
- +3 −2 glide.lock
- +3 −2 glide.yaml
- +1 −1 pkg/acceptance/cluster/localcluster.go
- +9 −0 pkg/acceptance/java_test.go
- +18 −3 pkg/base/constants.go
- +7 −8 pkg/ccl/sqlccl/backup.go
- +17 −8 pkg/cli/cli_test.go
- +5 −2 pkg/cli/cliflags/flags.go
- +29 −4 pkg/cli/interactive_tests/test_missing_log_output.tcl
- +51 −8 pkg/cli/interactive_tests/test_secure.tcl
- +2 −1 pkg/cli/sql.go
- +1 −1 pkg/cli/sql_util.go
- +19 −1 pkg/cli/start.go
- +3 −3 pkg/cli/zone.go
- +1 −1 pkg/cmd/github-post/main.go
- +56 −1 pkg/cmd/metacheck/main.go
- +65 −31 pkg/cmd/{release-upload → publish-artifacts}/main.go
- +12 −5 pkg/gossip/gossip.go
- +53 −0 pkg/gossip/gossip_test.go
- +6 −3 pkg/internal/client/txn.go
- +33 −16 pkg/keys/keys.go
- +49 −10 pkg/kv/batch.go
- +134 −27 pkg/kv/batch_test.go
- +28 −0 pkg/kv/db_test.go
- +18 −2 pkg/migrations/migrations.go
- +1 −1 pkg/roachpb/api.pb.go
- +10 −9 pkg/roachpb/data.go
- +3 −3 pkg/roachpb/errors.go
- +153 −143 pkg/roachpb/errors.pb.go
- +20 −10 pkg/roachpb/errors.proto
- +18 −3 pkg/security/password.go
- +63 −20 pkg/security/tls.go
- +102 −48 pkg/server/config.go
- +2 −2 pkg/server/config_test.go
- +1 −1 pkg/server/debug.go
- +3 −2 pkg/server/node.go
- +1 −7 pkg/server/server.go
- +5 −0 pkg/server/testserver.go
- +44 −19 pkg/server/updates.go
- +92 −61 pkg/server/updates_test.go
- +1 −29 pkg/sql/app_stats.go
- +25 −24 pkg/sql/as_of_test.go
- +24 −4 pkg/sql/create.go
- +5 −5 pkg/sql/data_source.go
- +1 −1 pkg/sql/distsql_running.go
- +2 −1 pkg/sql/distsqlplan/physical_plan.go
- +1 −1 pkg/sql/distsqlrun/base.go
- +77 −77 pkg/sql/distsqlrun/data.pb.go
- +1 −1 pkg/sql/distsqlrun/data.proto
- +5 −3 pkg/sql/distsqlrun/expr.go
- +2 −1 pkg/sql/distsqlrun/processors.pb.go
- +2 −1 pkg/sql/distsqlrun/processors.proto
- +13 −4 pkg/sql/distsqlrun/sorter.go
- +4 −0 pkg/sql/drop.go
- +70 −39 pkg/sql/executor.go
- +6 −1 pkg/sql/generator.go
- +39 −48 pkg/sql/group.go
- +8 −4 pkg/sql/group_test.go
- +33 −3 pkg/sql/lease.go
- +3 −1 pkg/sql/limit_opt.go
- +1 −0 pkg/sql/logic_test.go
- +2 −7 pkg/sql/needed_columns.go
- +4 −0 pkg/sql/optimize.go
- +17 −0 pkg/sql/parallel_stmts.go
- +80 −26 pkg/sql/parser/builtins.go
- +3 −1 pkg/sql/parser/col_types.go
- +5 −1 pkg/sql/parser/constant_test.go
- +6 −1 pkg/sql/parser/create.go
- +78 −68 pkg/sql/parser/datum.go
- +51 −0 pkg/sql/parser/datum_test.go
- +7 −0 pkg/sql/parser/decimal.go
- +17 −2 pkg/sql/parser/eval.go
- +2 −2 pkg/sql/parser/eval_test.go
- +1 −1 pkg/sql/parser/expr.go
- +14 −0 pkg/sql/parser/format.go
- +69 −29 pkg/sql/parser/indexed_vars.go
- +1 −0 pkg/sql/parser/keywords.go
- +15 −0 pkg/sql/parser/parse.go
- +2 −0 pkg/sql/parser/parse_test.go
- +5,264 −5,184 pkg/sql/parser/sql.go
- +16 −9 pkg/sql/parser/sql.y
- +4 −0 pkg/sql/parser/walk.go
- +1 −1 pkg/sql/pgwire/pgerror/errors.go
- +3 −0 pkg/sql/pgwire/pgerror/errors_test.go
- +37 −0 pkg/sql/pgwire/pgwire_test.go
- +6 −30 pkg/sql/pgwire/types.go
- +3 −3 pkg/sql/pgwire/types_test.go
- +3 −0 pkg/sql/pgwire/v3.go
- +3 −0 pkg/sql/plan.go
- +32 −22 pkg/sql/render.go
- +11 −5 pkg/sql/scan.go
- +3 −7 pkg/sql/select_name_resolution.go
- +53 −8 pkg/sql/session.go
- +9 −6 pkg/sql/show.go
- +2 −2 pkg/sql/sqlbase/fk.go
- +2 −2 pkg/sql/sqlbase/structured_test.go
- +5 −7 pkg/sql/subquery.go
- +149 −61 pkg/sql/testdata/logic_test/aggregate
- +8 −5 pkg/sql/testdata/logic_test/builtin_function
- +14 −0 pkg/sql/testdata/logic_test/create_as
- +13 −0 pkg/sql/testdata/logic_test/decimal
- +14 −0 pkg/sql/testdata/logic_test/distinct
- +2 −2 pkg/sql/testdata/logic_test/distsql_agg
- +23 −0 pkg/sql/testdata/logic_test/drop_view
- +11 −15 pkg/sql/testdata/logic_test/explain_types
- +47 −2 pkg/sql/testdata/logic_test/fk
- +13 −0 pkg/sql/testdata/logic_test/generators
- +29 −0 pkg/sql/testdata/logic_test/limit
- +63 −0 pkg/sql/testdata/logic_test/name_escapes
- +28 −0 pkg/sql/testdata/logic_test/orms
- +8 −0 pkg/sql/testdata/logic_test/pg_catalog
- +11 −1 pkg/sql/testdata/logic_test/pgoidtype
- +8 −0 pkg/sql/testdata/logic_test/planning_errors
- +31 −0 pkg/sql/testdata/logic_test/prepare
- +10 −0 pkg/sql/testdata/logic_test/select
- +3 −0 pkg/sql/testdata/logic_test/set
- +51 −2 pkg/sql/testdata/logic_test/txn
- +18 −0 pkg/sql/testdata/logic_test/union
- +38 −0 pkg/sql/testdata/logic_test/views
- +3 −9 pkg/sql/testdata/logic_test/window
- +59 −35 pkg/sql/trace_test.go
- +10 −5 pkg/sql/txn.go
- +80 −80 pkg/sql/txn_restart_test.go
- +17 −33 pkg/sql/union.go
- +2 −1 pkg/sql/vars.go
- +8 −3 pkg/sql/window.go
- +17 −5 pkg/storage/allocator.go
- +85 −0 pkg/storage/allocator_test.go
- +20 −0 pkg/storage/build_default.go
- +20 −0 pkg/storage/build_race.go
- +22 −11 pkg/storage/client_raft_test.go
- +1 −0 pkg/storage/consistency_queue.go
- +4 −1 pkg/storage/engine/enginepb/mvcc.go
- +5 −5 pkg/storage/engine/enginepb/mvcc.pb.go
- +5 −6 pkg/storage/engine/enginepb/mvcc.proto
- +40 −17 pkg/storage/engine/mvcc.go
- +42 −3 pkg/storage/engine/mvcc_test.go
- +55 −0 pkg/storage/engine/rocksdb_test.go
- +261 −46 pkg/storage/gc_queue.go
- +301 −100 pkg/storage/gc_queue_test.go
- +57 −4 pkg/storage/intent_resolver.go
- +2 −0 pkg/storage/main_test.go
- +44 −35 pkg/storage/push_txn_queue.go
- +40 −20 pkg/storage/queue.go
- +83 −0 pkg/storage/queue_test.go
- +30 −1 pkg/storage/raft.go
- +1 −0 pkg/storage/raft_log_queue.go
- +3 −2 pkg/storage/raft_snapshot_queue.go
- +81 −48 pkg/storage/replica.go
- +65 −27 pkg/storage/replica_command.go
- +1 −0 pkg/storage/replica_gc_queue.go
- +56 −28 pkg/storage/replica_proposal.go
- +1 −1 pkg/storage/replica_state.go
- +136 −1 pkg/storage/replica_test.go
- +1 −0 pkg/storage/replicate_queue.go
- +10 −0 pkg/storage/span_set.go
- +1 −0 pkg/storage/split_queue.go
- +51 −12 pkg/storage/store.go
- +4 −2 pkg/storage/store_pool.go
- +3 −2 pkg/storage/store_test.go
- +13 −0 pkg/storage/timestamp_cache.go
- +9 −2 pkg/storage/timestamp_cache_test.go
- +2 −1 pkg/storage/ts_maintenance_queue.go
- +4 −0 pkg/testutils/serverutils/test_server_shim.go
- +1 −1 pkg/ui/Makefile
- +407 −14 pkg/ui/embedded.go
- +1 −1 pkg/ui/src/containers/nodeLogs.tsx
- +2 −2 pkg/ui/src/containers/timescale.tsx
- +2 −1 pkg/ui/webpack.config.js
- +9 −0 pkg/util/encoding/decimal_test.go
- +40 −22 pkg/util/encoding/encoding.go
- +4 −4 pkg/util/encoding/encoding_test.go
- +25 −15 pkg/util/log/clog.go
- +44 −4 pkg/util/log/crash_reporting.go
- +35 −0 pkg/util/log/crash_reporting_test.go
- +16 −2 pkg/util/log/file.go
- +0 −5 pkg/util/log/stderr_redirect_windows.go
- +8 −0 pkg/util/timeutil/now_windows.go
- +72 −37 pkg/util/tracing/tracer.go
- +1 −1 vendor
| @@ -0,0 +1,13 @@ | ||
| status = [ | ||
| "GitHub CI (Cockroach)" | ||
| ] | ||
| pr_status = [ | ||
| "license/cla" | ||
| ] | ||
| block_labels = [ | ||
| "do-not-merge" | ||
| ] | ||
| [committer] | ||
| name = "craig[bot]" | ||
| email = "bors@cockroachlabs.com" |
| @@ -104,8 +104,8 @@ RUN git clone --depth 1 https://github.com/tpoechtrager/osxcross.git \ | ||
| # BEGIN https://github.com/docker-library/golang/blob/master/1.8/alpine/Dockerfile | ||
| COPY parallelbuilds-go1.8.patch / | ||
| RUN curl -fsSL https://storage.googleapis.com/golang/go1.8.1.src.tar.gz -o golang.tar.gz \ | ||
| && echo '33daf4c03f86120fdfdc66bddf6bfff4661c7ca11c5da473e537f4d69b470e57 golang.tar.gz' | sha256sum -c - \ | ||
| RUN curl -fsSL https://storage.googleapis.com/golang/go1.8.3.src.tar.gz -o golang.tar.gz \ | ||
| && echo '5f5dea2447e7dcfdc50fa6b94c512e58bfba5673c039259fd843f68829d99fa6 golang.tar.gz' | sha256sum -c - \ | ||
| && tar -C /usr/local -xzf golang.tar.gz \ | ||
| && rm golang.tar.gz \ | ||
| && cd /usr/local/go/src \ | ||
| @@ -181,7 +181,7 @@ endif | ||
| # TARGET-NAME: [export] VARIABLE [:+?]= | ||
| # | ||
| # The additional complexity below handles whitespace and comments. | ||
| $(REPO_ROOT)/build/variables.mk: $(REPO_ROOT)/Makefile $(REPO_ROOT)/.go-version $(REPO_ROOT)/build/common.mk | ||
| $(REPO_ROOT)/build/variables.mk: $(REPO_ROOT)/Makefile $(REPO_ROOT)/.go-version $(REPO_ROOT)/build/common.mk $(REPO_ROOT)/build/archive/contents/Makefile | ||
| @echo '# This file is auto-generated by Make.' > $@ | ||
| @echo '# DO NOT EDIT!' >> $@ | ||
| @echo 'define VALID_VARS' >> $@ | ||
| @@ -206,6 +206,8 @@ HOST_TRIPLE := $(shell $$($(GO) env CC) -dumpmachine) | ||
| CONFIGURE_FLAGS := | ||
| CMAKE_FLAGS := $(if $(MINGW),-G 'MSYS Makefiles') | ||
| ENABLE_ROCKSDB_ASSERTIONS := $(findstring race,$(TAGS)) | ||
| ifdef XHOST_TRIPLE | ||
| # Darwin wants clang, so special treatment is in order. | ||
| @@ -254,7 +256,7 @@ endif | ||
| JEMALLOC_DIR := $(BUILD_DIR)/jemalloc | ||
| PROTOBUF_DIR := $(BUILD_DIR)/protobuf | ||
| ROCKSDB_DIR := $(BUILD_DIR)/rocksdb | ||
| ROCKSDB_DIR := $(BUILD_DIR)/rocksdb$(if $(ENABLE_ROCKSDB_ASSERTIONS),_assert) | ||
| SNAPPY_DIR := $(BUILD_DIR)/snappy | ||
| # Can't share with protobuf because protoc is always built for the host. | ||
| PROTOC_DIR := $(GOPATH)/native/$(HOST_TRIPLE)/protobuf | ||
| @@ -292,7 +294,7 @@ CGO_FLAGS_FILES := $(CGO_UNSUFFIXED_FLAGS_FILES) $(CGO_SUFFIXED_FLAGS_FILES) | ||
| $(CGO_UNSUFFIXED_FLAGS_FILES): .ALWAYS_REBUILD | ||
| $(CGO_FLAGS_FILES): | ||
| $(CGO_FLAGS_FILES): $(REPO_ROOT)/build/common.mk | ||
| @echo 'GEN $@' | ||
| @echo '// GENERATED FILE DO NOT EDIT' > $@ | ||
| @echo >> $@ | ||
| @@ -346,7 +348,10 @@ $(JEMALLOC_DIR)/Makefile: $(C_DEPS_DIR)/jemalloc-rebuild $(JEMALLOC_SRC_DIR)/.ex | ||
| mkdir -p $(JEMALLOC_DIR) | ||
| @# NOTE: If you change the configure flags below, bump the version in | ||
| @# $(C_DEPS_DIR)/jemalloc-rebuild. See above for rationale. | ||
| cd $(JEMALLOC_DIR) && $(JEMALLOC_SRC_DIR)/configure $(CONFIGURE_FLAGS) --enable-prof | ||
| @# | ||
| @# jemalloc profiling deadlocks when built against musl. See | ||
| @# https://github.com/jemalloc/jemalloc/issues/585. | ||
| cd $(JEMALLOC_DIR) && $(JEMALLOC_SRC_DIR)/configure $(CONFIGURE_FLAGS) $(if $(findstring musl,$(TARGET_TRIPLE)),,--enable-prof) | ||
| $(PROTOBUF_DIR)/Makefile: $(C_DEPS_DIR)/protobuf-rebuild $(PROTOBUF_SRC_DIR)/.extracted | ||
| rm -rf $(PROTOBUF_DIR) | ||
| @@ -372,9 +377,13 @@ $(ROCKSDB_DIR)/Makefile: $(C_DEPS_DIR)/rocksdb-rebuild $(ROCKSDB_SRC_DIR)/.extra | ||
| cd $(ROCKSDB_DIR) && cmake $(CMAKE_FLAGS) $(ROCKSDB_SRC_DIR) \ | ||
| $(if $(findstring release,$(TYPE)),,-DWITH_$(if $(findstring mingw,$(TARGET_TRIPLE)),AVX2,SSE42)=OFF) \ | ||
| -DSNAPPY_LIBRARIES=$(SNAPPY_DIR)/.libs/libsnappy.a -DSNAPPY_INCLUDE_DIR=$(SNAPPY_SRC_DIR) -DWITH_SNAPPY=ON \ | ||
| -DJEMALLOC_LIBRARIES=$(JEMALLOC_DIR)/lib/libjemalloc.a -DJEMALLOC_INCLUDE_DIR=$(JEMALLOC_DIR)/include -DWITH_JEMALLOC=ON | ||
| -DJEMALLOC_LIBRARIES=$(JEMALLOC_DIR)/lib/libjemalloc.a -DJEMALLOC_INCLUDE_DIR=$(JEMALLOC_DIR)/include -DWITH_JEMALLOC=ON \ | ||
| $(if $(ENABLE_ROCKSDB_ASSERTIONS),,-DCMAKE_CXX_FLAGS=-DNDEBUG) | ||
| @# TODO(benesch): Tweak how we pass -DNDEBUG above when we upgrade to a | ||
| @# RocksDB release that includes https://github.com/facebook/rocksdb/pull/2300. | ||
| $(SNAPPY_DIR)/Makefile: $(C_DEPS_DIR)/snappy-rebuild $(SNAPPY_SRC_DIR)/.extracted | ||
| rm -rf $(SNAPPY_DIR) | ||
| mkdir -p $(SNAPPY_DIR) | ||
| @# NOTE: If you change the configure flags below, bump the version in | ||
| @# $(C_DEPS_DIR)/snappy-rebuild. See above for rationale. | ||
| @@ -113,7 +113,10 @@ $(UI_JS): $(GO_PROTOS) $(COREOS_RAFT_PROTOS) $(YARN_INSTALLED_TARGET) | ||
| echo '// GENERATED FILE DO NOT EDIT' > $@ | ||
| pbjs -t static-module -w es6 --strict-long --keep-case --path $(ORG_ROOT) --path $(GOGO_PROTOBUF_PATH) --path $(COREOS_PATH) --path $(GRPC_GATEWAY_GOOGLEAPIS_PATH) $(GW_PROTOS) >> $@ | ||
| $(UI_TS): $(UI_JS) | ||
| $(UI_TS): $(UI_JS) $(YARN_INSTALLED_TARGET) | ||
| # Install a known-good version of jsdoc; see | ||
| # https://github.com/dcodeIO/protobuf.js/issues/716. | ||
| (cd $(UI_ROOT)/node_modules/protobufjs/cli && npm install --silent jsdoc@3.4.3) | ||
| # Add comment recognized by reviewable. | ||
| echo '// GENERATED FILE DO NOT EDIT' > $@ | ||
| pbts $(UI_JS) >> $@ | ||
| @@ -458,6 +458,8 @@ func TestStyle(t *testing.T) { | ||
| "Eventf:1", | ||
| "ErrEvent:1", | ||
| "ErrEventf:1", | ||
| "NewError:1", | ||
| "NewErrorf:1", | ||
| "VEvent:2", | ||
| "VEventf:2", | ||
| "UnimplementedWithIssueErrorf:1", | ||
| @@ -0,0 +1,96 @@ | ||
| #!/usr/bin/env python3 | ||
| """Post failures from the current teamcity job as github issues. | ||
| Requires the following environment variables: | ||
| - TC_API_PASSWORD | ||
| - TC_BUILD_BRANCH | ||
| - TC_BUILD_ID | ||
| - GITHUB_API_TOKEN | ||
| """ | ||
| import json | ||
| import os | ||
| import urllib.error | ||
| import urllib.request | ||
| import xml.etree.ElementTree as ET | ||
| from urllib.parse import urljoin, urlencode | ||
| BASEURL = "https://teamcity.cockroachdb.com/httpAuth/app/rest/" | ||
| auth_handler = urllib.request.HTTPBasicAuthHandler() | ||
| auth_handler.add_password(realm='TeamCity', | ||
| uri='https://teamcity.cockroachdb.com', | ||
| user='robot', | ||
| passwd=os.environ['TC_API_PASSWORD']) | ||
| opener = urllib.request.build_opener(auth_handler) | ||
| def tc_url(path, **params): | ||
| return urljoin(BASEURL, path) + '?' + urlencode(params) | ||
| def collect_build_results(build_id): | ||
| """Yield a sequence of (name, log) pairs for all failed tests. | ||
| Looks at the given build ID and all its dependencies. | ||
| """ | ||
| dep_data = ET.parse(opener.open(tc_url('builds/{0}'.format(build_id), | ||
| fields='snapshot-dependencies(build(id,status))'))) | ||
| for b in dep_data.findall("./snapshot-dependencies/build"): | ||
| if b.attrib['status'] != 'SUCCESS': | ||
| yield from collect_build_results(b.attrib['id']) | ||
| test_data = ET.parse(opener.open(tc_url('testOccurrences', | ||
| locator='count:100,status:FAILURE,build:(id:{0})'.format(build_id), | ||
| fields='testOccurrence(details,name,duration,build(buildType(name)))'))) | ||
| for o in test_data.findall('./testOccurrence'): | ||
| test_name = '{0}/{1}'.format(o.find('build/buildType').attrib['name'], o.attrib['name']) | ||
| test_log = '--- FAIL: {0}/{1} ({2:.3f}s)\n{3}\n'.format( | ||
| o.find("build/buildType").attrib["name"], | ||
| o.attrib["name"], | ||
| int(o.attrib["duration"])/1000., | ||
| o.find("details").text) | ||
| yield (test_name, test_log) | ||
| def create_issue(build_id, failed_tests): | ||
| """Format a list of failed tests as an issue. | ||
| Returns a dict which should be encoded as json for posting to the | ||
| github API. | ||
| """ | ||
| return { | ||
| 'title': 'teamcity: failed tests on {0}: {1}'.format(os.environ['TC_BUILD_BRANCH'], | ||
| ', '.join(t[0] for t in failed_tests)), | ||
| 'body': '''\ | ||
| The following tests appear to have failed: | ||
| [#{0}](https://teamcity.cockroachdb.com/viewLog.html?buildId={0}): | ||
| ``` | ||
| {1:.60000} | ||
| ``` | ||
| Please assign, take a look and update the issue accordingly. | ||
| '''.format(build_id, ''.join(t[1] for t in failed_tests)), | ||
| 'labels': ['C-test-failure', 'O-robot'], | ||
| } | ||
| def post_issue(issue): | ||
| req = urllib.request.Request( | ||
| 'https://api.github.com/repos/cockroachdb/cockroach/issues', | ||
| data=json.dumps(issue).encode('utf-8'), | ||
| headers={'Authorization': 'token {0}'.format(os.environ['GITHUB_API_TOKEN'])}) | ||
| opener.open(req).read() | ||
| if __name__ == '__main__': | ||
| build_id = os.environ['TC_BUILD_ID'] | ||
| failed_tests = list(collect_build_results(build_id)) | ||
| if failed_tests: | ||
| issue = create_issue(build_id, failed_tests) | ||
| post_issue(issue) |
| @@ -1,32 +1,15 @@ | ||
| #!/usr/bin/env bash | ||
| set -euxo pipefail | ||
| export BUILDER_HIDE_GOPATH_SRC=1 | ||
| echo 'starting release build' | ||
| cat .buildinfo/tag || true | ||
| cat .buildinfo/rev || true | ||
| build/builder.sh git status | ||
| # Any arguments to this script are passed through unmodified to | ||
| # ./build/teamcity-publish-s3-binaries. | ||
| build/builder.sh go install ./pkg/cmd/release-upload | ||
| echo 'installed release builder' | ||
| cat .buildinfo/tag || true | ||
| cat .buildinfo/rev || true | ||
| build/builder.sh git status | ||
| set -euxo pipefail | ||
| build/builder.sh env \ | ||
| AWS_ACCESS_KEY_ID="$AWS_ACCESS_KEY_ID" \ | ||
| AWS_SECRET_ACCESS_KEY="$AWS_SECRET_ACCESS_KEY" \ | ||
| TC_BUILD_BRANCH="$TC_BUILD_BRANCH" \ | ||
| release-upload | ||
| export BUILDER_HIDE_GOPATH_SRC=1 | ||
| echo 'built and uploaded artifacts' | ||
| cat .buildinfo/tag || true | ||
| cat .buildinfo/rev || true | ||
| build/builder.sh git status | ||
| build/teamcity-publish-s3-binaries.sh "$@" | ||
| if [ "$TC_BUILD_BRANCH" != master ]; then | ||
| if [[ "$TC_BUILD_BRANCH" != *alpha* ]] && [ "$TEAMCITY_BUILDCONF_NAME" == 'Publish Releases' ]; then | ||
| image=docker.io/cockroachdb/cockroach | ||
| cp cockroach-linux-2.6.32-gnu-amd64 build/deploy/cockroach | ||
| @@ -0,0 +1,31 @@ | ||
| #!/usr/bin/env bash | ||
| # Any arguments to this script are passed through unmodified to | ||
| # ./pkg/cmd/publish-artifacts. | ||
| set -euxo pipefail | ||
| export BUILDER_HIDE_GOPATH_SRC=1 | ||
| echo 'starting release build' | ||
| cat .buildinfo/tag || true | ||
| cat .buildinfo/rev || true | ||
| build/builder.sh git status | ||
| build/builder.sh go install ./pkg/cmd/publish-artifacts | ||
| echo 'installed release builder' | ||
| cat .buildinfo/tag || true | ||
| cat .buildinfo/rev || true | ||
| build/builder.sh git status | ||
| build/builder.sh env \ | ||
| AWS_ACCESS_KEY_ID="$AWS_ACCESS_KEY_ID" \ | ||
| AWS_SECRET_ACCESS_KEY="$AWS_SECRET_ACCESS_KEY" \ | ||
| TC_BUILD_BRANCH="$TC_BUILD_BRANCH" \ | ||
| publish-artifacts "$@" | ||
| echo 'built and uploaded artifacts' | ||
| cat .buildinfo/tag || true | ||
| cat .buildinfo/rev || true | ||
| build/builder.sh git status |
| @@ -12,7 +12,11 @@ build/builder.sh env \ | ||
| TARGET=stressrace \ | ||
| github-pull-request-make | ||
| # Due to a limit on the number of running goroutines in the race | ||
| # detector, testrace fails when run on 16-CPU machines. Set GOMAXPROCS | ||
| # to work around this. | ||
| build/builder.sh env \ | ||
| GOMAXPROCS=8 \ | ||
| make testrace \ | ||
| TESTFLAGS='-v' \ | ||
| 2>&1 \ | ||
| @@ -25,6 +25,7 @@ define VALID_VARS | ||
| C_LIBS | ||
| C_LIBS_SRCS | ||
| DUPLFLAGS | ||
| ENABLE_ROCKSDB_ASSERTIONS | ||
| FILES | ||
| FIND_RELEVANT | ||
| GITHOOKS | ||
| @@ -37,6 +38,7 @@ define VALID_VARS | ||
| GOVERS | ||
| GO_INSTALL | ||
| HOST_TRIPLE | ||
| INSTALL | ||
| ISDARWIN | ||
| JEMALLOC_DIR | ||
| JEMALLOC_SRC_DIR | ||
| @@ -80,5 +82,7 @@ define VALID_VARS | ||
| XHOST_BIN_DIR | ||
| XHOST_TRIPLE | ||
| YARN_INSTALLED_TARGET | ||
| bindir | ||
| prefix | ||
| space | ||
| endef | ||
| @@ -1,4 +1,4 @@ | ||
| Bump the version below when changing jemalloc configure flags. Search for "BUILD | ||
| ARTIFACT CACHING" in build/common.mk for rationale. | ||
| 1 | ||
| 2 |
Oops, something went wrong.