From 6571d59ff77670caef0cadb33ab360c777b6eb17 Mon Sep 17 00:00:00 2001 From: "James H. Linder" Date: Wed, 2 Oct 2024 23:23:35 -0400 Subject: [PATCH] lint: require license headers for .sh, .py, makefiles Some file types generally did not use license headers before. Now .sh, .py and makefile files will be required to include license headers. The license header linter will enforce the requirement. All non-compliant files are now updated with the correct headers. Part of RE-658 Release note (general change): Change the license cockroach is distributed under to the new CockroachDB Software License (CSL). --- GNUmakefile | 14 +---- build/bazelutil/bazel-generate.sh | 6 ++ build/bazelutil/check.sh | 6 ++ build/bazelutil/gopackagesdriver.sh | 6 ++ build/bazelutil/stamp.sh | 6 ++ build/bootstrap/autoshutdown.cron.sh | 6 ++ build/bootstrap/bootstrap-debian.sh | 6 ++ build/bootstrap/bootstrap-ssd.sh | 6 ++ build/bootstrap/bootstrap-unison.sh | 6 ++ build/bootstrap/install-azure-cli.sh | 6 ++ build/deploy/cockroach.sh | 11 +--- build/disable-hyperv-timesync.sh | 6 ++ build/ghactions/changed-go-pkgs.sh | 6 ++ build/ghactions/pr-codecov-run-tests.sh | 6 ++ build/github/acceptance-test.sh | 6 ++ build/github/build.sh | 5 ++ build/github/check-generated-code.sh | 6 ++ build/github/cleanup-engflow-keys.sh | 6 ++ build/github/docker-image.sh | 6 ++ build/github/engflow-args.sh | 5 ++ build/github/examples-orms.sh | 6 ++ build/github/get-engflow-keys.sh | 6 ++ build/github/lint.sh | 6 ++ build/github/local-roachtest.sh | 6 ++ build/github/prepare-summarize-build.sh | 6 ++ build/github/summarize-build.sh | 6 ++ build/github/unit-tests.sh | 6 ++ build/go-version-check.sh | 6 ++ build/instrumentation/gen_exclusions.sh | 6 ++ build/instrumentation/vendor_antithesis.sh | 6 ++ build/node-run.sh | 6 ++ build/oss-fuzz/build.sh | 6 ++ .../setup_filebeat_on_teamcity_agent.sh | 6 ++ build/packer/setup_fips.sh | 6 ++ build/packer/teamcity-agent-macos.sh | 6 ++ build/packer/teamcity-agent.sh | 6 ++ build/release/bincheck/download_binary.sh | 6 ++ build/release/teamcity-mark-as-tested.sh | 6 ++ .../teamcity-mark-build-internal-rc.sh | 6 ++ .../teamcity-mark-build-internal-test.sh | 6 ++ .../release/teamcity-mark-build-qualified.sh | 6 ++ build/release/teamcity-mark-build.sh | 6 ++ .../teamcity-roachtest-qualification.sh | 6 ++ build/release/teamcity-support.sh | 5 ++ build/release/teamcity-update-latest-build.sh | 6 ++ build/shlib.sh | 5 ++ build/teamcity-assert-clean.sh | 6 ++ build/teamcity-bazel-support.sh | 5 ++ build/teamcity-common-support.sh | 5 ++ build/teamcity-diagram-generation.sh | 6 ++ build/teamcity-reset-nightlies.sh | 6 ++ build/teamcity-roachtest-invoke.sh | 6 ++ build/teamcity-support.sh | 5 ++ .../cockroach/ci/builds/build_impl.sh | 6 ++ .../tests-aws-linux-arm64-bigvm/unit_tests.sh | 6 ++ .../unit_tests_impl.sh | 6 ++ .../ci/tests-aws-linux-arm64/acceptance.sh | 6 ++ .../ci/tests-aws-linux-arm64/bench.sh | 6 ++ .../tests-aws-linux-arm64/local_roachtest.sh | 6 ++ .../ci/tests-aws-linux-arm64/maybe_stress.sh | 6 ++ .../tests-aws-linux-arm64/maybe_stressrace.sh | 6 ++ .../ci/tests-aws-linux-arm64/testrace.sh | 6 ++ .../ci/tests-aws-linux-arm64/ui_test.sh | 6 ++ .../ci/tests-aws-linux-arm64/ui_test_impl.sh | 6 ++ build/teamcity/cockroach/ci/tests/bench.sh | 6 ++ .../teamcity/cockroach/ci/tests/bench_impl.sh | 6 ++ .../ci/tests/check_generated_code_impl.sh | 6 ++ .../ci/tests/local_roachtest_impl.sh | 6 ++ .../cockroach/ci/tests/maybe_stress.sh | 6 ++ .../cockroach/ci/tests/maybe_stress_impl.sh | 6 ++ .../cockroach/ci/tests/maybe_stressrace.sh | 6 ++ build/teamcity/cockroach/ci/tests/testrace.sh | 6 ++ .../cockroach/ci/tests/testrace_impl.sh | 6 ++ .../cockroach/ci/tests/ui_e2e_test_all.sh | 6 ++ .../cockroach/ci/tests/ui_e2e_test_health.sh | 6 ++ .../cockroach/ci/tests/ui_e2e_test_impl.sh | 6 ++ .../cockroach/coverage/publish_finalize.sh | 6 ++ .../cockroach/coverage/publish_gen_html.sh | 6 ++ .../cockroach/coverage/publish_gen_lcov.sh | 6 ++ .../cockroach/coverage/publish_upload.sh | 6 ++ .../coverage/roachtest_nightly_gce.sh | 6 ++ .../coverage/roachtest_nightly_gce_impl.sh | 6 ++ .../teamcity/cockroach/coverage/unit_tests.sh | 6 ++ .../cockroach/coverage/unit_tests_impl.sh | 6 ++ build/teamcity/cockroach/create-docs-issue.sh | 6 ++ .../cockroach/nightlies/cloud_unit_tests.sh | 6 ++ .../nightlies/cloud_unit_tests_impl.sh | 6 ++ build/teamcity/cockroach/nightlies/compose.sh | 6 ++ .../teamcity/cockroach/nightlies/lint_urls.sh | 6 ++ .../cockroach/nightlies/lint_urls_impl.sh | 6 ++ .../nightlies/microbenchmark_weekly.sh | 6 ++ .../cockroach/nightlies/optimizer_tests.sh | 6 ++ .../nightlies/optimizer_tests_impl.sh | 6 ++ .../pebble_nightly_build_test_binary.sh | 6 ++ .../nightlies/pebble_nightly_common.sh | 6 ++ .../nightlies/pebble_nightly_metamorphic.sh | 6 ++ ...pebble_nightly_metamorphic_crossversion.sh | 6 ++ ...e_nightly_metamorphic_crossversion_impl.sh | 6 ++ .../pebble_nightly_metamorphic_impl.sh | 6 ++ .../pebble_nightly_metamorphic_race.sh | 6 ++ .../pebble_nightly_metamorphic_race_impl.sh | 6 ++ ...pebble_nightly_metamorphic_two_instance.sh | 6 ++ ...e_nightly_metamorphic_two_instance_impl.sh | 6 ++ .../nightlies/pebble_nightly_race_common.sh | 6 ++ .../pebble_nightly_write_throughput.sh | 6 ++ .../pebble_nightly_write_throughput_impl.sh | 6 ++ .../nightlies/pebble_nightly_ycsb.sh | 6 ++ .../nightlies/pebble_nightly_ycsb_impl.sh | 6 ++ .../nightlies/pebble_nightly_ycsb_race.sh | 6 ++ .../pebble_nightly_ycsb_race_impl.sh | 6 ++ .../nightlies/random_syntax_tests.sh | 6 ++ .../nightlies/random_syntax_tests_impl.sh | 6 ++ .../nightlies/roachtest_compile_bits.sh | 6 ++ .../nightlies/roachtest_compile_component.sh | 6 ++ .../nightlies/roachtest_nightly_aws.sh | 6 ++ .../nightlies/roachtest_nightly_aws_fips.sh | 6 ++ .../nightlies/roachtest_nightly_azure.sh | 6 ++ .../nightlies/roachtest_nightly_gce.sh | 6 ++ .../nightlies/roachtest_nightly_gce_fips.sh | 6 ++ .../nightlies/roachtest_nightly_impl.sh | 6 ++ .../nightlies/roachtest_stress_impl.sh | 6 ++ .../cockroach/nightlies/roachtest_weekly.sh | 6 ++ .../nightlies/roachtest_weekly_aws.sh | 6 ++ .../nightlies/roachtest_weekly_impl.sh | 6 ++ .../schema_changer_comparator_nightly.sh | 6 ++ .../schema_changer_comparator_nightly_impl.sh | 6 ++ .../cockroach/nightlies/sqlite_logic_test.sh | 6 ++ .../nightlies/sqlite_logic_test_impl.sh | 6 ++ .../nightlies/sqllogic_backup_restore.sh | 6 ++ .../nightlies/sqllogic_backup_restore_impl.sh | 6 ++ .../nightlies/sqllogic_corpus_nightly.sh | 6 ++ .../nightlies/sqllogic_corpus_nightly_impl.sh | 6 ++ .../nightlies/sqllogic_hi_vmodule_nightly.sh | 6 ++ .../sqllogic_hi_vmodule_nightly_impl.sh | 6 ++ build/teamcity/cockroach/nightlies/stress.sh | 6 ++ .../cockroach/nightlies/stress_engflow.sh | 6 ++ .../nightlies/stress_engflow_deadlock.sh | 6 ++ .../nightlies/stress_engflow_impl.sh | 6 ++ .../nightlies/stress_engflow_race.sh | 6 ++ .../cockroach/nightlies/stress_impl.sh | 6 ++ .../nightlies/teamcity-roachtest-stress.sh | 6 ++ .../teamcity/cockroach/nightlies/url_check.sh | 6 ++ .../cockroach/nightlies/url_check_impl.sh | 6 ++ .../publish-bleeding-edge-darwin-amd64.sh | 6 ++ .../publish-bleeding-edge-darwin-arm64.sh | 6 ++ .../publish-bleeding-edge-linux-amd64-fips.sh | 6 ++ .../publish-bleeding-edge-linux-amd64.sh | 6 ++ .../publish-bleeding-edge-linux-arm64.sh | 6 ++ .../publish-bleeding-edge-per-platform.sh | 6 ++ .../publish-bleeding-edge-win-amd64.sh | 6 ++ .../publish-sql-grammar-diagrams-impl.sh | 6 ++ ...build-and-push-bazel-builder-image-fips.sh | 6 ++ .../ci/build-and-push-bazel-builder-image.sh | 6 ++ .../ci/nightly-bazel-builder-update-check.sh | 6 ++ .../ci/open-new-bazel-builder-image-pr.sh | 6 ++ .../cockroach/nightlies/private_roachtest.sh | 6 ++ .../nightlies/private_roachtest_impl.sh | 6 ++ .../release/process/cancel_release_date.sh | 6 ++ .../process/cancel_release_date_impl.sh | 6 ++ .../cockroach/release/process/pick_sha.sh | 6 ++ .../release/process/pick_sha_impl.sh | 6 ++ .../release/process/post_blockers.sh | 6 ++ .../release/process/post_blockers_impl.sh | 6 ++ .../release/process/update_versions.sh | 6 ++ .../release/process/update_versions_impl.sh | 6 ++ .../release/publish/publish-redhat-release.sh | 6 ++ .../publish-staged-cockroach-release.sh | 6 ++ .../release/publish/sign_macos_release.sh | 6 ++ .../publish/sign_staged_macos_release.sh | 6 ++ .../release/build-and-publish-cdeps.sh | 6 ++ .../build-and-publish-cross-toolchains.sh | 6 ++ .../build-and-publish-osx-toolchains.sh | 6 ++ .../release/build-and-publish-patched-go.sh | 6 ++ .../build-and-publish-patched-go/impl-fips.sh | 6 ++ .../build-and-publish-patched-go/impl.sh | 6 ++ .../build-cockroach-release-darwin-amd64.sh | 6 ++ .../build-cockroach-release-darwin-arm64.sh | 6 ++ .../process/build-cockroach-release-docker.sh | 6 ++ ...uild-cockroach-release-linux-amd64-fips.sh | 6 ++ .../build-cockroach-release-linux-amd64.sh | 6 ++ .../build-cockroach-release-linux-arm64.sh | 6 ++ .../build-cockroach-release-per-platform.sh | 6 ++ .../build-cockroach-release-win-amd64.sh | 6 ++ .../internal/release/process/check-gha.sh | 6 ++ ...nd-publish-build-artifacts-darwin-amd64.sh | 6 ++ ...nd-publish-build-artifacts-darwin-arm64.sh | 6 ++ ...make-and-publish-build-artifacts-docker.sh | 6 ++ ...ublish-build-artifacts-linux-amd64-fips.sh | 6 ++ ...and-publish-build-artifacts-linux-amd64.sh | 6 ++ ...and-publish-build-artifacts-linux-arm64.sh | 6 ++ ...nd-publish-build-artifacts-per-platform.sh | 6 ++ ...e-and-publish-build-artifacts-win-amd64.sh | 6 ++ .../process/make-and-publish-build-tagging.sh | 6 ++ .../roachtest-release-qualification.sh | 6 ++ .../roachtest-release-qualification_fips.sh | 6 ++ .../release/publish-patched-go-for-mac.sh | 6 ++ .../internal/release/sign-patched-go.sh | 6 ++ build/teamcity/util.sh | 5 ++ build/teamcity/util/roachtest_arch_util.sh | 5 ++ build/teamcity/util/roachtest_util.sh | 5 ++ .../crosstool-ng/buildtoolchains.sh | 6 ++ .../crosstool-ng/perform-build.sh | 6 ++ .../osxcross/buildtoolchains.sh | 6 ++ .../toolchainbuild/osxcross/perform-build.sh | 6 ++ build/vendor_rebuild.sh | 6 ++ build/verify-archive.sh | 6 ++ build/werror.sh | 6 ++ cloud/kubernetes/demo.sh | 6 ++ cloud/kubernetes/multiregion/setup.py | 6 ++ cloud/kubernetes/multiregion/teardown.py | 6 ++ monitoring/demo/config/roach-init.sh | 6 ++ pkg/Makefile | 5 ++ pkg/acceptance/compose/gss/build-push-gss.sh | 6 ++ pkg/acceptance/compose/gss/kdc/start.sh | 6 ++ pkg/acceptance/compose/gss/psql/start.sh | 6 ++ pkg/acceptance/compose/gss/python/manage.py | 6 ++ .../compose/gss/python/python/__init__.py | 4 ++ .../compose/gss/python/python/settings.py | 5 ++ .../compose/gss/python/python/urls.py | 5 ++ .../compose/gss/python/python/wsgi.py | 5 ++ pkg/acceptance/compose/gss/python/start.sh | 6 ++ pkg/acceptance/run.sh | 6 ++ pkg/acceptance/testdata/c/Makefile | 5 ++ .../testdata/psql/test-psql-notls.sh | 6 ++ .../testdata/psql/test-psql-unix.sh | 6 ++ pkg/acceptance/testdata/psql/test-psql.sh | 6 ++ pkg/acceptance/testdata/python/test.py | 5 ++ pkg/ccl/sqlproxyccl/run_proxy_direct_crdb.sh | 6 ++ .../sqlproxyccl/run_proxy_indirect_crdb.sh | 6 ++ pkg/ccl/sqlproxyccl/run_tenant.sh | 6 ++ pkg/cli/interactive_tests/netcat.py | 5 ++ pkg/cli/interactive_tests/test_auth_cookie.py | 5 ++ pkg/cli/interactive_tests/unzip.py | 5 ++ .../monitoring/prometheus/generate_config.sh | 6 ++ pkg/cmd/drt/scripts/cct_232_setup.sh | 6 ++ pkg/cmd/drt/scripts/cct_tpcc_drop.sh | 6 ++ pkg/cmd/drt/scripts/chaos_test.sh | 6 ++ pkg/cmd/drt/scripts/grafanaAnnotate.sh | 6 ++ pkg/cmd/drt/scripts/kv_run.sh | 6 ++ .../drt/scripts/roachtest_operations_run.sh | 6 ++ pkg/cmd/drt/scripts/schemachange_run.sh | 6 ++ pkg/cmd/drt/scripts/start_all_workloads.sh | 5 ++ pkg/cmd/drt/scripts/stop_all_workloads.sh | 5 ++ pkg/cmd/drt/scripts/tpcc_run.sh | 6 ++ .../label-merged-pr-wrapper.sh | 6 ++ pkg/cmd/roachprod/docker/build.sh | 6 ++ pkg/cmd/roachprod/docker/entrypoint.sh | 6 ++ pkg/cmd/roachprod/docker/push.sh | 6 ++ pkg/cmd/roachtest/roachstress.sh | 6 ++ pkg/compose/run.sh | 6 ++ pkg/geo/geomfn/bench.sh | 6 ++ pkg/internal/sqlsmith/Makefile | 5 ++ pkg/roachprod/install/scripts/download.sh | 12 ++-- pkg/roachprod/install/scripts/open_ports.sh | 12 ++-- pkg/roachprod/install/scripts/start.sh | 12 ++-- pkg/roachprod/install/scripts/start_test.sh | 12 ++-- .../install/testdata/start/start.txt | 12 ++-- .../securitytest/test_certs/regenerate.sh | 6 ++ pkg/sql/lexbase/sql-gen.sh | 6 ++ .../opttester/testfixtures/rewrite_stats.sh | 6 ++ pkg/sql/parser/help_gen_test.sh | 6 ++ pkg/sql/pgwire/pgcode/generate.sh | 6 ++ pkg/sql/pgwire/pgcode/generate_names.sh | 6 ++ pkg/sql/sem/cast/cast_map_gen.sh | 6 ++ .../testdata/assignment_casts_gen.sh | 6 ++ .../cast_test/testdata/explicit_casts_gen.sh | 6 ++ pkg/testutils/lint/lint_test.go | 55 ++++++++++++++++++- pkg/ui/Makefile | 13 +---- .../e2e-tests/build/compose-entrypoint.sh | 6 ++ .../e2e-tests/build/start-crdb-then.sh | 6 ++ pkg/util/fsm/gen/reports.sh | 6 ++ pkg/util/interval/generic/gen.sh | 6 ++ pkg/util/leaktest/add-leaktest.sh | 6 ++ pkg/util/leaktest/check-leaktest.sh | 6 ++ scripts/authors.sh | 6 ++ scripts/azworker.sh | 6 ++ scripts/bump-pebble.sh | 6 ++ scripts/check-pebble-dep.sh | 6 ++ scripts/deplicense.sh | 6 ++ scripts/diff-example.sh | 6 ++ scripts/gceworker.sh | 6 ++ scripts/git-blame-stats.sh | 6 ++ scripts/localmetrics/import-csv.sh | 6 ++ scripts/log2html.sh | 6 ++ scripts/ls-files.sh | 6 ++ scripts/pprof-loop.sh | 6 ++ scripts/pprof-post.sh | 6 ++ scripts/purge-terraform.sh | 6 ++ scripts/release-notes.py | 6 ++ scripts/release-notes/Makefile | 5 ++ scripts/release-notes/common.sh | 6 ++ scripts/release-notes/test1.sh | 6 ++ scripts/release-notes/test2.sh | 6 ++ scripts/release-notes/test3.sh | 6 ++ scripts/release-notes/test4.sh | 6 ++ scripts/release-notes/test5.sh | 6 ++ scripts/release-notes/test6.sh | 6 ++ scripts/release-notes/test7.sh | 6 ++ scripts/release-notes/test8.sh | 6 ++ scripts/roachprod-get-latest.sh | 6 ++ scripts/roachtest-gobench.sh | 6 ++ scripts/rt-ts-admin.sh | 6 ++ scripts/tag-custom-build.sh | 6 ++ scripts/todo_diff.sh | 6 ++ scripts/winworker.sh | 6 ++ tools/claim_output_base.sh | 6 ++ 306 files changed, 1839 insertions(+), 71 deletions(-) diff --git a/GNUmakefile b/GNUmakefile index 326fb5ebcb15..dc3ebc77a7cf 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -1,16 +1,8 @@ # Copyright 2022 The Cockroach Authors. # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or -# implied. See the License for the specific language governing -# permissions and limitations under the License. +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + .PHONY: all all: build $(MAKE) help diff --git a/build/bazelutil/bazel-generate.sh b/build/bazelutil/bazel-generate.sh index a83b79bb0088..8e822d7b3931 100755 --- a/build/bazelutil/bazel-generate.sh +++ b/build/bazelutil/bazel-generate.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2021 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euo pipefail # files_unchanged_from_upstream takes file globs as arguments and checks diff --git a/build/bazelutil/check.sh b/build/bazelutil/check.sh index c31063ad031b..ca6ff332e576 100755 --- a/build/bazelutil/check.sh +++ b/build/bazelutil/check.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2021 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euo pipefail # This script performs assorted checks to make sure there is nothing obviously diff --git a/build/bazelutil/gopackagesdriver.sh b/build/bazelutil/gopackagesdriver.sh index 9141988289e6..449e84ab5243 100755 --- a/build/bazelutil/gopackagesdriver.sh +++ b/build/bazelutil/gopackagesdriver.sh @@ -1,2 +1,8 @@ #!/bin/bash + +# Copyright 2022 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + exec bazel run -- @io_bazel_rules_go//go/tools/gopackagesdriver "${@}" diff --git a/build/bazelutil/stamp.sh b/build/bazelutil/stamp.sh index bf238512e39e..c521eacb814a 100755 --- a/build/bazelutil/stamp.sh +++ b/build/bazelutil/stamp.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2021 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + # This command is used by bazel as the workspace_status_command # to implement build stamping with git information. diff --git a/build/bootstrap/autoshutdown.cron.sh b/build/bootstrap/autoshutdown.cron.sh index 2e736e09caf9..412347b53a02 100755 --- a/build/bootstrap/autoshutdown.cron.sh +++ b/build/bootstrap/autoshutdown.cron.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2017 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + # This script is intended to be called periodical. If it doesn't detect remote # sessions in a given number of consecutive runs, a shutdown is initiated. # diff --git a/build/bootstrap/bootstrap-debian.sh b/build/bootstrap/bootstrap-debian.sh index d4451af4f92c..15a12d2d9b4f 100755 --- a/build/bootstrap/bootstrap-debian.sh +++ b/build/bootstrap/bootstrap-debian.sh @@ -1,4 +1,10 @@ #!/usr/bin/env bash + +# Copyright 2017 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + # # On a Debian/Ubuntu system, bootstraps a docker install and the cockroach # repo. diff --git a/build/bootstrap/bootstrap-ssd.sh b/build/bootstrap/bootstrap-ssd.sh index e2d19f15c1c5..116a78b5014a 100755 --- a/build/bootstrap/bootstrap-ssd.sh +++ b/build/bootstrap/bootstrap-ssd.sh @@ -1,4 +1,10 @@ #!/usr/bin/env bash + +# Copyright 2017 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + # # Bootstraps Local SSD devices. # diff --git a/build/bootstrap/bootstrap-unison.sh b/build/bootstrap/bootstrap-unison.sh index 1ac40a8d8c82..c316d0dd2788 100755 --- a/build/bootstrap/bootstrap-unison.sh +++ b/build/bootstrap/bootstrap-unison.sh @@ -1,4 +1,10 @@ #!/usr/bin/env bash + +# Copyright 2018 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + # # On a Debian/Ubuntu system, bootstraps the Unison file-syncer. diff --git a/build/bootstrap/install-azure-cli.sh b/build/bootstrap/install-azure-cli.sh index ae3b318954e9..5836176545c4 100755 --- a/build/bootstrap/install-azure-cli.sh +++ b/build/bootstrap/install-azure-cli.sh @@ -1,4 +1,10 @@ #!/usr/bin/env bash + +# Copyright 2017 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + # # On a Debian/Ubuntu system, installs the Azure CLI. diff --git a/build/deploy/cockroach.sh b/build/deploy/cockroach.sh index ac3380329a84..3e60ea4ce1ca 100755 --- a/build/deploy/cockroach.sh +++ b/build/deploy/cockroach.sh @@ -1,14 +1,9 @@ #!/bin/bash -# + # Copyright 2021 The Cockroach Authors. # -# Use of this software is governed by the Business Source License -# included in the file licenses/BSL.txt. -# -# As of the Change Date specified in that file, in accordance with -# the Business Source License, use of this software will be governed -# by the Apache License, Version 2.0, included in the file -# licenses/APL.txt. +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. # set -e: If the command returns a non-zero exit status, exit the shell. # set -u: errors if an variable is referenced before being set diff --git a/build/disable-hyperv-timesync.sh b/build/disable-hyperv-timesync.sh index 61b32904e650..b6944f7d395a 100755 --- a/build/disable-hyperv-timesync.sh +++ b/build/disable-hyperv-timesync.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2017 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euxo pipefail # Disabling hyper-v time synchronization means unbinding the device. diff --git a/build/ghactions/changed-go-pkgs.sh b/build/ghactions/changed-go-pkgs.sh index 49d0dc76527b..a2fddd389a37 100755 --- a/build/ghactions/changed-go-pkgs.sh +++ b/build/ghactions/changed-go-pkgs.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2023 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + BASE_SHA="$1" HEAD_SHA="$2" diff --git a/build/ghactions/pr-codecov-run-tests.sh b/build/ghactions/pr-codecov-run-tests.sh index af1a16ba4a38..f476307aba51 100755 --- a/build/ghactions/pr-codecov-run-tests.sh +++ b/build/ghactions/pr-codecov-run-tests.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2023 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -xeuo pipefail output_json_file="$1" diff --git a/build/github/acceptance-test.sh b/build/github/acceptance-test.sh index def26bcfe690..76126298e15b 100755 --- a/build/github/acceptance-test.sh +++ b/build/github/acceptance-test.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2024 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euxo pipefail set +x diff --git a/build/github/build.sh b/build/github/build.sh index 05ced305ee2d..f6b5fbd65246 100755 --- a/build/github/build.sh +++ b/build/github/build.sh @@ -1,3 +1,8 @@ +# Copyright 2024 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + set -euxo pipefail # Usage: must provide a cross config as argument diff --git a/build/github/check-generated-code.sh b/build/github/check-generated-code.sh index 778460d2dc47..fb1b06fdfaed 100755 --- a/build/github/check-generated-code.sh +++ b/build/github/check-generated-code.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2024 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euo pipefail # This function dumps the output of the given file to $GITHUB_STEP_SUMMARY diff --git a/build/github/cleanup-engflow-keys.sh b/build/github/cleanup-engflow-keys.sh index 8419b50f9d24..45bfbdeb0169 100755 --- a/build/github/cleanup-engflow-keys.sh +++ b/build/github/cleanup-engflow-keys.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2024 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euxo pipefail rm -f /home/agent/engflow.key /home/agent/engflow.crt diff --git a/build/github/docker-image.sh b/build/github/docker-image.sh index 091eb40b72b2..7c584a196228 100755 --- a/build/github/docker-image.sh +++ b/build/github/docker-image.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2024 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + #!/usr/bin/env bash set -euxo pipefail diff --git a/build/github/engflow-args.sh b/build/github/engflow-args.sh index 9b5e910763a5..45762fe5aff0 100755 --- a/build/github/engflow-args.sh +++ b/build/github/engflow-args.sh @@ -1,3 +1,8 @@ +# Copyright 2024 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + # The intention is that you'll execute the script at the end of your Bazel # invocation as follows: `bazel test ... $(engflow-args.sh)`. This will add # remote execution arguments to the invocation. You must call get-engflow-keys.sh diff --git a/build/github/examples-orms.sh b/build/github/examples-orms.sh index 775df138c1f4..d2a0849dbcd3 100755 --- a/build/github/examples-orms.sh +++ b/build/github/examples-orms.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2024 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euxo pipefail pushd cockroach diff --git a/build/github/get-engflow-keys.sh b/build/github/get-engflow-keys.sh index 29a096432a83..706b32e6a726 100755 --- a/build/github/get-engflow-keys.sh +++ b/build/github/get-engflow-keys.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2023 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euxo pipefail gcloud secrets versions access 2 --secret=engflow-mesolite-key > /home/agent/engflow.key diff --git a/build/github/lint.sh b/build/github/lint.sh index aec0c2f5d4de..829ad20c41db 100755 --- a/build/github/lint.sh +++ b/build/github/lint.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2024 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euxo pipefail WORKSPACE=$(bazel info workspace) diff --git a/build/github/local-roachtest.sh b/build/github/local-roachtest.sh index 181325de31ce..8b5005c7554e 100755 --- a/build/github/local-roachtest.sh +++ b/build/github/local-roachtest.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2024 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euxo pipefail CROSSCONFIG=$1 diff --git a/build/github/prepare-summarize-build.sh b/build/github/prepare-summarize-build.sh index c6a032596840..20f439bf9d77 100755 --- a/build/github/prepare-summarize-build.sh +++ b/build/github/prepare-summarize-build.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2024 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euxo pipefail THIS_DIR=$(cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd) diff --git a/build/github/summarize-build.sh b/build/github/summarize-build.sh index daae2ef4e330..4309fe76e667 100755 --- a/build/github/summarize-build.sh +++ b/build/github/summarize-build.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2024 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + # You MUST run prepare-summarize-build.sh before running this script. set -euxo pipefail diff --git a/build/github/unit-tests.sh b/build/github/unit-tests.sh index 9f2b4fa57218..e815fc3d6828 100755 --- a/build/github/unit-tests.sh +++ b/build/github/unit-tests.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2024 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euxo pipefail EXTRA_PARAMS="" diff --git a/build/go-version-check.sh b/build/go-version-check.sh index 650ce16eb623..d2affd5574b1 100755 --- a/build/go-version-check.sh +++ b/build/go-version-check.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2018 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + # Detect whether the installed version of Go can build this version of # CockroachDB. # diff --git a/build/instrumentation/gen_exclusions.sh b/build/instrumentation/gen_exclusions.sh index f609493e7ff9..4eacff680356 100755 --- a/build/instrumentation/gen_exclusions.sh +++ b/build/instrumentation/gen_exclusions.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2022 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + SCRIPT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" &> /dev/null && pwd) echo "# Vendor Exclusions" diff --git a/build/instrumentation/vendor_antithesis.sh b/build/instrumentation/vendor_antithesis.sh index f10817f7212f..a1096f23304d 100755 --- a/build/instrumentation/vendor_antithesis.sh +++ b/build/instrumentation/vendor_antithesis.sh @@ -1,4 +1,10 @@ #!/usr/bin/env bash + +# Copyright 2022 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + set -eo pipefail # NB: Currently, this script is only intended to work with `make instrument(short)` diff --git a/build/node-run.sh b/build/node-run.sh index c044a7674052..340bee6da2ca 100755 --- a/build/node-run.sh +++ b/build/node-run.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2017 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + # node-run.sh runs a command installed by NPM/Yarn. It looks for COMMAND in # ./node_modules/bin, where NPM/Yarn install commands by default, then invokes # it with the specified ARGS, if any. diff --git a/build/oss-fuzz/build.sh b/build/oss-fuzz/build.sh index 137eb329f06c..4dcf5926ae08 100755 --- a/build/oss-fuzz/build.sh +++ b/build/oss-fuzz/build.sh @@ -1,5 +1,11 @@ #!/bin/bash -eu +# Copyright 2024 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + # Don't need the stdlib and libc++ gives linker error CXXFLAGS="${CXXFLAGS/-stdlib=libc++/}" diff --git a/build/packer/setup_filebeat_on_teamcity_agent.sh b/build/packer/setup_filebeat_on_teamcity_agent.sh index a89149df70ce..3dfa2cbd4bbc 100644 --- a/build/packer/setup_filebeat_on_teamcity_agent.sh +++ b/build/packer/setup_filebeat_on_teamcity_agent.sh @@ -1,5 +1,11 @@ #!/bin/bash +# Copyright 2020 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euo pipefail export FILEBEAT_CONFIG_PATH=/tmp/filebeat.yml diff --git a/build/packer/setup_fips.sh b/build/packer/setup_fips.sh index 16f9fa6a2994..865b559f4391 100755 --- a/build/packer/setup_fips.sh +++ b/build/packer/setup_fips.sh @@ -1,5 +1,11 @@ #!/bin/bash +# Copyright 2023 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euo pipefail apt-get update diff --git a/build/packer/teamcity-agent-macos.sh b/build/packer/teamcity-agent-macos.sh index 0eeac0f3aeec..cafe0ea73b12 100644 --- a/build/packer/teamcity-agent-macos.sh +++ b/build/packer/teamcity-agent-macos.sh @@ -1,5 +1,11 @@ #!/usr/bin/env zsh +# Copyright 2022 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euxo pipefail write_teamcity_config() { diff --git a/build/packer/teamcity-agent.sh b/build/packer/teamcity-agent.sh index dcb16153ffff..3ab733baf099 100644 --- a/build/packer/teamcity-agent.sh +++ b/build/packer/teamcity-agent.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2017 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euxo pipefail write_teamcity_config() { diff --git a/build/release/bincheck/download_binary.sh b/build/release/bincheck/download_binary.sh index 0a7d142480cb..d2a4f398b821 100755 --- a/build/release/bincheck/download_binary.sh +++ b/build/release/bincheck/download_binary.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2022 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -exuo pipefail download_and_extract() { diff --git a/build/release/teamcity-mark-as-tested.sh b/build/release/teamcity-mark-as-tested.sh index e1782d4ca0f8..329f15e8fb9b 100755 --- a/build/release/teamcity-mark-as-tested.sh +++ b/build/release/teamcity-mark-as-tested.sh @@ -1,4 +1,10 @@ #!/usr/bin/env bash +# Copyright 2020 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + echo "Implement me!" diff --git a/build/release/teamcity-mark-build-internal-rc.sh b/build/release/teamcity-mark-build-internal-rc.sh index eef28b785f0d..f8320f4b892d 100755 --- a/build/release/teamcity-mark-build-internal-rc.sh +++ b/build/release/teamcity-mark-build-internal-rc.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2020 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euxo pipefail source "$(dirname "${0}")/teamcity-mark-build.sh" diff --git a/build/release/teamcity-mark-build-internal-test.sh b/build/release/teamcity-mark-build-internal-test.sh index dad573422f86..12ed32aee689 100755 --- a/build/release/teamcity-mark-build-internal-test.sh +++ b/build/release/teamcity-mark-build-internal-test.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2020 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euxo pipefail source "$(dirname "${0}")/teamcity-mark-build.sh" diff --git a/build/release/teamcity-mark-build-qualified.sh b/build/release/teamcity-mark-build-qualified.sh index 3a4877245885..958a9c4315bb 100755 --- a/build/release/teamcity-mark-build-qualified.sh +++ b/build/release/teamcity-mark-build-qualified.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2020 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euxo pipefail source "$(dirname "${0}")/teamcity-mark-build.sh" diff --git a/build/release/teamcity-mark-build.sh b/build/release/teamcity-mark-build.sh index e3582a019879..6f188a8620c4 100755 --- a/build/release/teamcity-mark-build.sh +++ b/build/release/teamcity-mark-build.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2020 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + source "$(dirname "${0}")/teamcity-support.sh" # mark_build marks a build with a given label specified as a parameter on diff --git a/build/release/teamcity-roachtest-qualification.sh b/build/release/teamcity-roachtest-qualification.sh index e1782d4ca0f8..329f15e8fb9b 100755 --- a/build/release/teamcity-roachtest-qualification.sh +++ b/build/release/teamcity-roachtest-qualification.sh @@ -1,4 +1,10 @@ #!/usr/bin/env bash +# Copyright 2020 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + echo "Implement me!" diff --git a/build/release/teamcity-support.sh b/build/release/teamcity-support.sh index d1e78b485fed..41b05eaa32be 100644 --- a/build/release/teamcity-support.sh +++ b/build/release/teamcity-support.sh @@ -1,3 +1,8 @@ +# Copyright 2020 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + # Common helpers for teamcity-*.sh scripts. # root is the absolute path to the root directory of the repository. diff --git a/build/release/teamcity-update-latest-build.sh b/build/release/teamcity-update-latest-build.sh index e1782d4ca0f8..329f15e8fb9b 100755 --- a/build/release/teamcity-update-latest-build.sh +++ b/build/release/teamcity-update-latest-build.sh @@ -1,4 +1,10 @@ #!/usr/bin/env bash +# Copyright 2020 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + echo "Implement me!" diff --git a/build/shlib.sh b/build/shlib.sh index 1a927cdaf8e4..b27b34d285be 100644 --- a/build/shlib.sh +++ b/build/shlib.sh @@ -1,3 +1,8 @@ +# Copyright 2017 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + # Shell support functions and variables. Bash-only. # Terminal color codes. diff --git a/build/teamcity-assert-clean.sh b/build/teamcity-assert-clean.sh index c1a70bd09ff4..7c4ee4f5cb07 100755 --- a/build/teamcity-assert-clean.sh +++ b/build/teamcity-assert-clean.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2017 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euo pipefail source "$(dirname "${0}")/teamcity-support.sh" diff --git a/build/teamcity-bazel-support.sh b/build/teamcity-bazel-support.sh index 9c9014c4bb4d..a4accc5b0ac8 100644 --- a/build/teamcity-bazel-support.sh +++ b/build/teamcity-bazel-support.sh @@ -1,3 +1,8 @@ +# Copyright 2021 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + if [ -z "${root:-}" ] then echo '$root is not set; please source teamcity-support.sh' diff --git a/build/teamcity-common-support.sh b/build/teamcity-common-support.sh index e11ee1897ab8..b112fb9c0347 100644 --- a/build/teamcity-common-support.sh +++ b/build/teamcity-common-support.sh @@ -1,3 +1,8 @@ +# Copyright 2021 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + # Common logic shared by build/teamcity-support.sh and build/release/teamcity-support.sh. # Call this to clean up after using any other functions from this file. diff --git a/build/teamcity-diagram-generation.sh b/build/teamcity-diagram-generation.sh index 918f533d987b..bc1f4856e077 100644 --- a/build/teamcity-diagram-generation.sh +++ b/build/teamcity-diagram-generation.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2021 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euo pipefail source "$(dirname "${0}")/teamcity-support.sh" diff --git a/build/teamcity-reset-nightlies.sh b/build/teamcity-reset-nightlies.sh index 7b641a35235d..2f0208676408 100755 --- a/build/teamcity-reset-nightlies.sh +++ b/build/teamcity-reset-nightlies.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2017 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + # Deletes and recreates the nightlies resource group, which contains the Azure # VMs, virtual networks, IPs, disks etc. that are automatically created by # nightly tests. This is a big hammer, but the nightlies leak resources diff --git a/build/teamcity-roachtest-invoke.sh b/build/teamcity-roachtest-invoke.sh index f4a0e3bfefb8..487c7261042e 100755 --- a/build/teamcity-roachtest-invoke.sh +++ b/build/teamcity-roachtest-invoke.sh @@ -1,4 +1,10 @@ #!/usr/bin/env bash + +# Copyright 2021 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + set -euo pipefail set +e diff --git a/build/teamcity-support.sh b/build/teamcity-support.sh index 39b9863b76a1..bc3deab4324a 100755 --- a/build/teamcity-support.sh +++ b/build/teamcity-support.sh @@ -1,3 +1,8 @@ +# Copyright 2017 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + # Common helpers for teamcity-*.sh scripts. # root is the absolute path to the root directory of the repository. diff --git a/build/teamcity/cockroach/ci/builds/build_impl.sh b/build/teamcity/cockroach/ci/builds/build_impl.sh index 00b499f5ab69..94b3540fe0a2 100755 --- a/build/teamcity/cockroach/ci/builds/build_impl.sh +++ b/build/teamcity/cockroach/ci/builds/build_impl.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2021 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -xeuo pipefail if [ -z "$1" ] diff --git a/build/teamcity/cockroach/ci/tests-aws-linux-arm64-bigvm/unit_tests.sh b/build/teamcity/cockroach/ci/tests-aws-linux-arm64-bigvm/unit_tests.sh index c6c58a28aad0..93eae04227b2 100755 --- a/build/teamcity/cockroach/ci/tests-aws-linux-arm64-bigvm/unit_tests.sh +++ b/build/teamcity/cockroach/ci/tests-aws-linux-arm64-bigvm/unit_tests.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2022 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euo pipefail dir="$(dirname $(dirname $(dirname $(dirname $(dirname "${0}")))))" diff --git a/build/teamcity/cockroach/ci/tests-aws-linux-arm64-bigvm/unit_tests_impl.sh b/build/teamcity/cockroach/ci/tests-aws-linux-arm64-bigvm/unit_tests_impl.sh index 2db1041ff14c..33d79945e12f 100755 --- a/build/teamcity/cockroach/ci/tests-aws-linux-arm64-bigvm/unit_tests_impl.sh +++ b/build/teamcity/cockroach/ci/tests-aws-linux-arm64-bigvm/unit_tests_impl.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2024 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -xeuo pipefail dir="$(dirname $(dirname $(dirname $(dirname $(dirname "${0}")))))" diff --git a/build/teamcity/cockroach/ci/tests-aws-linux-arm64/acceptance.sh b/build/teamcity/cockroach/ci/tests-aws-linux-arm64/acceptance.sh index 4e580b534437..2fdc497be8a2 100755 --- a/build/teamcity/cockroach/ci/tests-aws-linux-arm64/acceptance.sh +++ b/build/teamcity/cockroach/ci/tests-aws-linux-arm64/acceptance.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2022 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -xeuo pipefail dir="$(dirname $(dirname $(dirname $(dirname $(dirname "${0}")))))" diff --git a/build/teamcity/cockroach/ci/tests-aws-linux-arm64/bench.sh b/build/teamcity/cockroach/ci/tests-aws-linux-arm64/bench.sh index 47ee569939b2..0ce72295a515 100755 --- a/build/teamcity/cockroach/ci/tests-aws-linux-arm64/bench.sh +++ b/build/teamcity/cockroach/ci/tests-aws-linux-arm64/bench.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2022 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euo pipefail source build/teamcity/cockroach/ci/tests/bench.sh diff --git a/build/teamcity/cockroach/ci/tests-aws-linux-arm64/local_roachtest.sh b/build/teamcity/cockroach/ci/tests-aws-linux-arm64/local_roachtest.sh index 8be6632f6b1e..411cda9dd81f 100755 --- a/build/teamcity/cockroach/ci/tests-aws-linux-arm64/local_roachtest.sh +++ b/build/teamcity/cockroach/ci/tests-aws-linux-arm64/local_roachtest.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2022 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -exuo pipefail dir="$(dirname $(dirname $(dirname $(dirname $(dirname "${0}")))))" diff --git a/build/teamcity/cockroach/ci/tests-aws-linux-arm64/maybe_stress.sh b/build/teamcity/cockroach/ci/tests-aws-linux-arm64/maybe_stress.sh index 3918fda559df..f4ea7f646c06 100755 --- a/build/teamcity/cockroach/ci/tests-aws-linux-arm64/maybe_stress.sh +++ b/build/teamcity/cockroach/ci/tests-aws-linux-arm64/maybe_stress.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2022 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euo pipefail source build/teamcity/cockroach/ci/tests/maybe_stress.sh diff --git a/build/teamcity/cockroach/ci/tests-aws-linux-arm64/maybe_stressrace.sh b/build/teamcity/cockroach/ci/tests-aws-linux-arm64/maybe_stressrace.sh index 0d2ec318815c..f4e8532c2b0f 100755 --- a/build/teamcity/cockroach/ci/tests-aws-linux-arm64/maybe_stressrace.sh +++ b/build/teamcity/cockroach/ci/tests-aws-linux-arm64/maybe_stressrace.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2022 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euo pipefail source build/teamcity/cockroach/ci/tests/maybe_stressrace.sh diff --git a/build/teamcity/cockroach/ci/tests-aws-linux-arm64/testrace.sh b/build/teamcity/cockroach/ci/tests-aws-linux-arm64/testrace.sh index 2c10f953abb2..611c6385dfb8 100755 --- a/build/teamcity/cockroach/ci/tests-aws-linux-arm64/testrace.sh +++ b/build/teamcity/cockroach/ci/tests-aws-linux-arm64/testrace.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2022 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euo pipefail source build/teamcity/cockroach/ci/tests/testrace.sh diff --git a/build/teamcity/cockroach/ci/tests-aws-linux-arm64/ui_test.sh b/build/teamcity/cockroach/ci/tests-aws-linux-arm64/ui_test.sh index 7e244623cd02..cdd7bcdd5c37 100755 --- a/build/teamcity/cockroach/ci/tests-aws-linux-arm64/ui_test.sh +++ b/build/teamcity/cockroach/ci/tests-aws-linux-arm64/ui_test.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2022 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euo pipefail dir="$(dirname $(dirname $(dirname $(dirname $(dirname "${0}")))))" diff --git a/build/teamcity/cockroach/ci/tests-aws-linux-arm64/ui_test_impl.sh b/build/teamcity/cockroach/ci/tests-aws-linux-arm64/ui_test_impl.sh index cda3bd75a1b4..e4d7a47c0067 100755 --- a/build/teamcity/cockroach/ci/tests-aws-linux-arm64/ui_test_impl.sh +++ b/build/teamcity/cockroach/ci/tests-aws-linux-arm64/ui_test_impl.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2024 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -xeuo pipefail bazel build //pkg/cmd/bazci --config=ci diff --git a/build/teamcity/cockroach/ci/tests/bench.sh b/build/teamcity/cockroach/ci/tests/bench.sh index 5cfb9a493e26..d018ac8752f7 100755 --- a/build/teamcity/cockroach/ci/tests/bench.sh +++ b/build/teamcity/cockroach/ci/tests/bench.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2021 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euo pipefail dir="$(dirname $(dirname $(dirname $(dirname $(dirname "${0}")))))" diff --git a/build/teamcity/cockroach/ci/tests/bench_impl.sh b/build/teamcity/cockroach/ci/tests/bench_impl.sh index 59a88ba18804..26bbbc55b2ea 100755 --- a/build/teamcity/cockroach/ci/tests/bench_impl.sh +++ b/build/teamcity/cockroach/ci/tests/bench_impl.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2021 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euo pipefail dir="$(dirname $(dirname $(dirname $(dirname $(dirname "${0}")))))" diff --git a/build/teamcity/cockroach/ci/tests/check_generated_code_impl.sh b/build/teamcity/cockroach/ci/tests/check_generated_code_impl.sh index 8e8a0000a2c0..cf0489a5f2c8 100755 --- a/build/teamcity/cockroach/ci/tests/check_generated_code_impl.sh +++ b/build/teamcity/cockroach/ci/tests/check_generated_code_impl.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2022 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euo pipefail dir="$(dirname $(dirname $(dirname $(dirname $(dirname "${0}")))))" diff --git a/build/teamcity/cockroach/ci/tests/local_roachtest_impl.sh b/build/teamcity/cockroach/ci/tests/local_roachtest_impl.sh index d9a0b109cdd9..87885585f061 100755 --- a/build/teamcity/cockroach/ci/tests/local_roachtest_impl.sh +++ b/build/teamcity/cockroach/ci/tests/local_roachtest_impl.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2021 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euox pipefail if [[ "$(uname -m)" =~ (arm64|aarch64)$ ]]; then diff --git a/build/teamcity/cockroach/ci/tests/maybe_stress.sh b/build/teamcity/cockroach/ci/tests/maybe_stress.sh index 94e2c98405f0..19268d693964 100755 --- a/build/teamcity/cockroach/ci/tests/maybe_stress.sh +++ b/build/teamcity/cockroach/ci/tests/maybe_stress.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2021 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euo pipefail dir="$(dirname $(dirname $(dirname $(dirname $(dirname "${0}")))))" diff --git a/build/teamcity/cockroach/ci/tests/maybe_stress_impl.sh b/build/teamcity/cockroach/ci/tests/maybe_stress_impl.sh index 48f4578be3bd..0c3ee09cb256 100755 --- a/build/teamcity/cockroach/ci/tests/maybe_stress_impl.sh +++ b/build/teamcity/cockroach/ci/tests/maybe_stress_impl.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2021 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -exuo pipefail if [ -z "$1" ] diff --git a/build/teamcity/cockroach/ci/tests/maybe_stressrace.sh b/build/teamcity/cockroach/ci/tests/maybe_stressrace.sh index 0ad47258812f..e3d4e17de2bb 100755 --- a/build/teamcity/cockroach/ci/tests/maybe_stressrace.sh +++ b/build/teamcity/cockroach/ci/tests/maybe_stressrace.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2021 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euo pipefail dir="$(dirname $(dirname $(dirname $(dirname $(dirname "${0}")))))" diff --git a/build/teamcity/cockroach/ci/tests/testrace.sh b/build/teamcity/cockroach/ci/tests/testrace.sh index 9c78bd8ea8a4..55314ca6156a 100755 --- a/build/teamcity/cockroach/ci/tests/testrace.sh +++ b/build/teamcity/cockroach/ci/tests/testrace.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2021 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euo pipefail dir="$(dirname $(dirname $(dirname $(dirname $(dirname "${0}")))))" diff --git a/build/teamcity/cockroach/ci/tests/testrace_impl.sh b/build/teamcity/cockroach/ci/tests/testrace_impl.sh index cc23da9ceeab..fde5e4be7bda 100755 --- a/build/teamcity/cockroach/ci/tests/testrace_impl.sh +++ b/build/teamcity/cockroach/ci/tests/testrace_impl.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2021 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -xeuo pipefail # Usage: testrace_impl.sh PKG1 [PKG2 PKG3 PKG4...] diff --git a/build/teamcity/cockroach/ci/tests/ui_e2e_test_all.sh b/build/teamcity/cockroach/ci/tests/ui_e2e_test_all.sh index ff240e9cc2cd..ed2f952fba50 100755 --- a/build/teamcity/cockroach/ci/tests/ui_e2e_test_all.sh +++ b/build/teamcity/cockroach/ci/tests/ui_e2e_test_all.sh @@ -1,4 +1,10 @@ #!/usr/bin/env bash + +# Copyright 2022 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + set -euo pipefail build="$(dirname $(dirname $(dirname $(dirname $(dirname "${0}")))))" diff --git a/build/teamcity/cockroach/ci/tests/ui_e2e_test_health.sh b/build/teamcity/cockroach/ci/tests/ui_e2e_test_health.sh index ff240e9cc2cd..ed2f952fba50 100755 --- a/build/teamcity/cockroach/ci/tests/ui_e2e_test_health.sh +++ b/build/teamcity/cockroach/ci/tests/ui_e2e_test_health.sh @@ -1,4 +1,10 @@ #!/usr/bin/env bash + +# Copyright 2022 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + set -euo pipefail build="$(dirname $(dirname $(dirname $(dirname $(dirname "${0}")))))" diff --git a/build/teamcity/cockroach/ci/tests/ui_e2e_test_impl.sh b/build/teamcity/cockroach/ci/tests/ui_e2e_test_impl.sh index 2f2ea09f5bf4..045d3fd5f05e 100644 --- a/build/teamcity/cockroach/ci/tests/ui_e2e_test_impl.sh +++ b/build/teamcity/cockroach/ci/tests/ui_e2e_test_impl.sh @@ -1,4 +1,10 @@ #!/usr/bin/env bash + +# Copyright 2022 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + function load_cockroach_docker_image() { docker load --input upstream_artifacts/cockroach-docker-image.tar.gz &> artifacts/docker-load.log || (cat artifacts/docker-load.log && false) rm artifacts/docker-load.log diff --git a/build/teamcity/cockroach/coverage/publish_finalize.sh b/build/teamcity/cockroach/coverage/publish_finalize.sh index 7f0081eaf524..c1712530d4cf 100755 --- a/build/teamcity/cockroach/coverage/publish_finalize.sh +++ b/build/teamcity/cockroach/coverage/publish_finalize.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2023 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + # This script is the final step of the "Publish Coverage" build. # # It moves the HTML mini-websites into archives, so that it's easy to download diff --git a/build/teamcity/cockroach/coverage/publish_gen_html.sh b/build/teamcity/cockroach/coverage/publish_gen_html.sh index 2762d22501b3..3eada964ef35 100755 --- a/build/teamcity/cockroach/coverage/publish_gen_html.sh +++ b/build/teamcity/cockroach/coverage/publish_gen_html.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2023 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + # This script is the second step of the "Publish Coverage" build. # # It takes some of the lcov files produced by the previous step and generates diff --git a/build/teamcity/cockroach/coverage/publish_gen_lcov.sh b/build/teamcity/cockroach/coverage/publish_gen_lcov.sh index 5b2ddfb3fe0c..03c81ee978a2 100755 --- a/build/teamcity/cockroach/coverage/publish_gen_lcov.sh +++ b/build/teamcity/cockroach/coverage/publish_gen_lcov.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2023 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + # This script is the first step of the "Publish Coverage" build. # # It takes coverage data from dependent builds and generates lcov files. diff --git a/build/teamcity/cockroach/coverage/publish_upload.sh b/build/teamcity/cockroach/coverage/publish_upload.sh index eec9345406d1..d10416f0f158 100755 --- a/build/teamcity/cockroach/coverage/publish_upload.sh +++ b/build/teamcity/cockroach/coverage/publish_upload.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2023 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + # This script is the third step of the "Publish Coverage" build. # # It takes the HTML mini-websites produced by the previous step and uploads them diff --git a/build/teamcity/cockroach/coverage/roachtest_nightly_gce.sh b/build/teamcity/cockroach/coverage/roachtest_nightly_gce.sh index 5908ece239ab..b69426d079a3 100755 --- a/build/teamcity/cockroach/coverage/roachtest_nightly_gce.sh +++ b/build/teamcity/cockroach/coverage/roachtest_nightly_gce.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2023 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -exuo pipefail dir="$(dirname $(dirname $(dirname $(dirname "${0}"))))" diff --git a/build/teamcity/cockroach/coverage/roachtest_nightly_gce_impl.sh b/build/teamcity/cockroach/coverage/roachtest_nightly_gce_impl.sh index 9a0e04f7e9a0..74055f610b4f 100755 --- a/build/teamcity/cockroach/coverage/roachtest_nightly_gce_impl.sh +++ b/build/teamcity/cockroach/coverage/roachtest_nightly_gce_impl.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2023 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -exuo pipefail dir="$(dirname $(dirname $(dirname $(dirname "${0}"))))" diff --git a/build/teamcity/cockroach/coverage/unit_tests.sh b/build/teamcity/cockroach/coverage/unit_tests.sh index 7d52cfae2abc..8b235691c082 100755 --- a/build/teamcity/cockroach/coverage/unit_tests.sh +++ b/build/teamcity/cockroach/coverage/unit_tests.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2024 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euo pipefail dir="$(dirname $(dirname $(dirname $(dirname "${0}"))))" diff --git a/build/teamcity/cockroach/coverage/unit_tests_impl.sh b/build/teamcity/cockroach/coverage/unit_tests_impl.sh index add99d7579aa..e7209fbbc27c 100755 --- a/build/teamcity/cockroach/coverage/unit_tests_impl.sh +++ b/build/teamcity/cockroach/coverage/unit_tests_impl.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2024 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -xeuo pipefail bazel build //pkg/cmd/bazci --config=ci diff --git a/build/teamcity/cockroach/create-docs-issue.sh b/build/teamcity/cockroach/create-docs-issue.sh index 9c3029c52777..c409badc9ec6 100755 --- a/build/teamcity/cockroach/create-docs-issue.sh +++ b/build/teamcity/cockroach/create-docs-issue.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2022 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + # This script is called by the build configuration # "Cockroach > Create Docs Issue" in TeamCity. diff --git a/build/teamcity/cockroach/nightlies/cloud_unit_tests.sh b/build/teamcity/cockroach/nightlies/cloud_unit_tests.sh index d62c60c7563f..5468b3556403 100755 --- a/build/teamcity/cockroach/nightlies/cloud_unit_tests.sh +++ b/build/teamcity/cockroach/nightlies/cloud_unit_tests.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2022 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euo pipefail dir="$(dirname $(dirname $(dirname $(dirname "${0}"))))" diff --git a/build/teamcity/cockroach/nightlies/cloud_unit_tests_impl.sh b/build/teamcity/cockroach/nightlies/cloud_unit_tests_impl.sh index 4200b75c1d63..6b8c7a1ec72a 100755 --- a/build/teamcity/cockroach/nightlies/cloud_unit_tests_impl.sh +++ b/build/teamcity/cockroach/nightlies/cloud_unit_tests_impl.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2022 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -xeuo pipefail dir="$(dirname $(dirname $(dirname $(dirname "${0}"))))" diff --git a/build/teamcity/cockroach/nightlies/compose.sh b/build/teamcity/cockroach/nightlies/compose.sh index 290590bbd4e7..7d54719a9890 100755 --- a/build/teamcity/cockroach/nightlies/compose.sh +++ b/build/teamcity/cockroach/nightlies/compose.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2022 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -xeuo pipefail dir="$(dirname $(dirname $(dirname $(dirname "${0}"))))" diff --git a/build/teamcity/cockroach/nightlies/lint_urls.sh b/build/teamcity/cockroach/nightlies/lint_urls.sh index fc8f56ed9dc2..e016e945cda8 100755 --- a/build/teamcity/cockroach/nightlies/lint_urls.sh +++ b/build/teamcity/cockroach/nightlies/lint_urls.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2021 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euo pipefail dir="$(dirname $(dirname $(dirname $(dirname "${0}"))))" diff --git a/build/teamcity/cockroach/nightlies/lint_urls_impl.sh b/build/teamcity/cockroach/nightlies/lint_urls_impl.sh index 4c30f1e2052d..aac673307370 100755 --- a/build/teamcity/cockroach/nightlies/lint_urls_impl.sh +++ b/build/teamcity/cockroach/nightlies/lint_urls_impl.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2021 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -xeuo pipefail dir="$(dirname $(dirname $(dirname $(dirname "${0}"))))" diff --git a/build/teamcity/cockroach/nightlies/microbenchmark_weekly.sh b/build/teamcity/cockroach/nightlies/microbenchmark_weekly.sh index ac9a98bf4d35..f4d56ddc58de 100755 --- a/build/teamcity/cockroach/nightlies/microbenchmark_weekly.sh +++ b/build/teamcity/cockroach/nightlies/microbenchmark_weekly.sh @@ -1,4 +1,10 @@ #!/usr/bin/env bash + +# Copyright 2023 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + # # This script runs microbenchmarks across a roachprod cluster. # Parameters: diff --git a/build/teamcity/cockroach/nightlies/optimizer_tests.sh b/build/teamcity/cockroach/nightlies/optimizer_tests.sh index 2b7d43b12bc5..24c27f85ddd7 100755 --- a/build/teamcity/cockroach/nightlies/optimizer_tests.sh +++ b/build/teamcity/cockroach/nightlies/optimizer_tests.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2021 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euo pipefail dir="$(dirname $(dirname $(dirname $(dirname "${0}"))))" diff --git a/build/teamcity/cockroach/nightlies/optimizer_tests_impl.sh b/build/teamcity/cockroach/nightlies/optimizer_tests_impl.sh index e6c39650139d..879073e47870 100755 --- a/build/teamcity/cockroach/nightlies/optimizer_tests_impl.sh +++ b/build/teamcity/cockroach/nightlies/optimizer_tests_impl.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2021 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -xeuo pipefail dir="$(dirname $(dirname $(dirname $(dirname "${0}"))))" diff --git a/build/teamcity/cockroach/nightlies/pebble_nightly_build_test_binary.sh b/build/teamcity/cockroach/nightlies/pebble_nightly_build_test_binary.sh index e5f4f6e38266..81bbb8290133 100755 --- a/build/teamcity/cockroach/nightlies/pebble_nightly_build_test_binary.sh +++ b/build/teamcity/cockroach/nightlies/pebble_nightly_build_test_binary.sh @@ -1,4 +1,10 @@ #!/usr/bin/env bash + +# Copyright 2022 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + # # This script is run by pebble_nightly_metamorphic_crossversion.sh to build test # binaries of the pebble metamorphic package at different branches. This script diff --git a/build/teamcity/cockroach/nightlies/pebble_nightly_common.sh b/build/teamcity/cockroach/nightlies/pebble_nightly_common.sh index fede57343032..ed5e0882f318 100755 --- a/build/teamcity/cockroach/nightlies/pebble_nightly_common.sh +++ b/build/teamcity/cockroach/nightlies/pebble_nightly_common.sh @@ -1,4 +1,10 @@ #!/usr/bin/env bash + +# Copyright 2022 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + # # This script contains common configuration used by the Pebble Nightly runs. diff --git a/build/teamcity/cockroach/nightlies/pebble_nightly_metamorphic.sh b/build/teamcity/cockroach/nightlies/pebble_nightly_metamorphic.sh index 9b83ccf97855..0a5b26bc4498 100755 --- a/build/teamcity/cockroach/nightlies/pebble_nightly_metamorphic.sh +++ b/build/teamcity/cockroach/nightlies/pebble_nightly_metamorphic.sh @@ -1,4 +1,10 @@ #!/usr/bin/env bash + +# Copyright 2022 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + # # This script is run by the Pebble Nightly Metamorphic - TeamCity build # configuration. diff --git a/build/teamcity/cockroach/nightlies/pebble_nightly_metamorphic_crossversion.sh b/build/teamcity/cockroach/nightlies/pebble_nightly_metamorphic_crossversion.sh index 70e54d649246..5cfd8494cd78 100755 --- a/build/teamcity/cockroach/nightlies/pebble_nightly_metamorphic_crossversion.sh +++ b/build/teamcity/cockroach/nightlies/pebble_nightly_metamorphic_crossversion.sh @@ -1,4 +1,10 @@ #!/usr/bin/env bash + +# Copyright 2022 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + # # This script is run by the Pebble Nightly Crossversion Metamorphic - TeamCity # build configuration. diff --git a/build/teamcity/cockroach/nightlies/pebble_nightly_metamorphic_crossversion_impl.sh b/build/teamcity/cockroach/nightlies/pebble_nightly_metamorphic_crossversion_impl.sh index e99bec16c3b4..d941d0300710 100755 --- a/build/teamcity/cockroach/nightlies/pebble_nightly_metamorphic_crossversion_impl.sh +++ b/build/teamcity/cockroach/nightlies/pebble_nightly_metamorphic_crossversion_impl.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2022 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + dir="$(dirname $(dirname $(dirname $(dirname "${0}"))))" set -euxo pipefail diff --git a/build/teamcity/cockroach/nightlies/pebble_nightly_metamorphic_impl.sh b/build/teamcity/cockroach/nightlies/pebble_nightly_metamorphic_impl.sh index b4705955faa6..d689344928f9 100755 --- a/build/teamcity/cockroach/nightlies/pebble_nightly_metamorphic_impl.sh +++ b/build/teamcity/cockroach/nightlies/pebble_nightly_metamorphic_impl.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2022 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + dir="$(dirname $(dirname $(dirname $(dirname "${0}"))))" set -euxo pipefail diff --git a/build/teamcity/cockroach/nightlies/pebble_nightly_metamorphic_race.sh b/build/teamcity/cockroach/nightlies/pebble_nightly_metamorphic_race.sh index f5cb60abc44b..1130c7eba439 100755 --- a/build/teamcity/cockroach/nightlies/pebble_nightly_metamorphic_race.sh +++ b/build/teamcity/cockroach/nightlies/pebble_nightly_metamorphic_race.sh @@ -1,4 +1,10 @@ #!/usr/bin/env bash + +# Copyright 2022 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + # # This script is run by the Pebble Nightly Metamorphic Race - TeamCity build # configuration. diff --git a/build/teamcity/cockroach/nightlies/pebble_nightly_metamorphic_race_impl.sh b/build/teamcity/cockroach/nightlies/pebble_nightly_metamorphic_race_impl.sh index fdcc05e4adb1..0e3412f0bc78 100755 --- a/build/teamcity/cockroach/nightlies/pebble_nightly_metamorphic_race_impl.sh +++ b/build/teamcity/cockroach/nightlies/pebble_nightly_metamorphic_race_impl.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2022 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + dir="$(dirname $(dirname $(dirname $(dirname "${0}"))))" set -euxo pipefail diff --git a/build/teamcity/cockroach/nightlies/pebble_nightly_metamorphic_two_instance.sh b/build/teamcity/cockroach/nightlies/pebble_nightly_metamorphic_two_instance.sh index e2e62b2259a4..a9df3520c3bb 100755 --- a/build/teamcity/cockroach/nightlies/pebble_nightly_metamorphic_two_instance.sh +++ b/build/teamcity/cockroach/nightlies/pebble_nightly_metamorphic_two_instance.sh @@ -1,4 +1,10 @@ #!/usr/bin/env bash + +# Copyright 2024 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + # # This script is run by the Pebble Nightly Metamorphic Two Instance - TeamCity # build configuration. diff --git a/build/teamcity/cockroach/nightlies/pebble_nightly_metamorphic_two_instance_impl.sh b/build/teamcity/cockroach/nightlies/pebble_nightly_metamorphic_two_instance_impl.sh index 5610934d8686..494948ab3280 100755 --- a/build/teamcity/cockroach/nightlies/pebble_nightly_metamorphic_two_instance_impl.sh +++ b/build/teamcity/cockroach/nightlies/pebble_nightly_metamorphic_two_instance_impl.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2024 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + dir="$(dirname $(dirname $(dirname $(dirname "${0}"))))" set -euxo pipefail diff --git a/build/teamcity/cockroach/nightlies/pebble_nightly_race_common.sh b/build/teamcity/cockroach/nightlies/pebble_nightly_race_common.sh index a196678d9faa..6795a5b84876 100755 --- a/build/teamcity/cockroach/nightlies/pebble_nightly_race_common.sh +++ b/build/teamcity/cockroach/nightlies/pebble_nightly_race_common.sh @@ -1,4 +1,10 @@ #!/usr/bin/env bash + +# Copyright 2022 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + # # This script contains common configuration used by the Pebble Nightly race runs. diff --git a/build/teamcity/cockroach/nightlies/pebble_nightly_write_throughput.sh b/build/teamcity/cockroach/nightlies/pebble_nightly_write_throughput.sh index f0c87d3ceffa..782c6c303bc9 100755 --- a/build/teamcity/cockroach/nightlies/pebble_nightly_write_throughput.sh +++ b/build/teamcity/cockroach/nightlies/pebble_nightly_write_throughput.sh @@ -1,4 +1,10 @@ #!/usr/bin/env bash + +# Copyright 2022 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + # # This script runs the Pebble Nightly write-throughput benchmarks. # diff --git a/build/teamcity/cockroach/nightlies/pebble_nightly_write_throughput_impl.sh b/build/teamcity/cockroach/nightlies/pebble_nightly_write_throughput_impl.sh index b96af7fed49b..5f416946d9b3 100755 --- a/build/teamcity/cockroach/nightlies/pebble_nightly_write_throughput_impl.sh +++ b/build/teamcity/cockroach/nightlies/pebble_nightly_write_throughput_impl.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2022 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -eo pipefail _dir="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" diff --git a/build/teamcity/cockroach/nightlies/pebble_nightly_ycsb.sh b/build/teamcity/cockroach/nightlies/pebble_nightly_ycsb.sh index d77d08bb0e13..892be85d0034 100755 --- a/build/teamcity/cockroach/nightlies/pebble_nightly_ycsb.sh +++ b/build/teamcity/cockroach/nightlies/pebble_nightly_ycsb.sh @@ -1,4 +1,10 @@ #!/usr/bin/env bash + +# Copyright 2022 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + # # This script runs the Pebble Nightly YCSB benchmarks. # diff --git a/build/teamcity/cockroach/nightlies/pebble_nightly_ycsb_impl.sh b/build/teamcity/cockroach/nightlies/pebble_nightly_ycsb_impl.sh index ed08509aae4b..67df52be5fd5 100755 --- a/build/teamcity/cockroach/nightlies/pebble_nightly_ycsb_impl.sh +++ b/build/teamcity/cockroach/nightlies/pebble_nightly_ycsb_impl.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2022 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -eo pipefail _dir="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" diff --git a/build/teamcity/cockroach/nightlies/pebble_nightly_ycsb_race.sh b/build/teamcity/cockroach/nightlies/pebble_nightly_ycsb_race.sh index f667eb91f99f..d1f22479d20a 100755 --- a/build/teamcity/cockroach/nightlies/pebble_nightly_ycsb_race.sh +++ b/build/teamcity/cockroach/nightlies/pebble_nightly_ycsb_race.sh @@ -1,4 +1,10 @@ #!/usr/bin/env bash + +# Copyright 2022 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + # # This script runs the Pebble Nightly YCSB A benchmark with the race flag. # It is used to detect data races which may have been introduced to the latest diff --git a/build/teamcity/cockroach/nightlies/pebble_nightly_ycsb_race_impl.sh b/build/teamcity/cockroach/nightlies/pebble_nightly_ycsb_race_impl.sh index 0b5e85ed3067..3bbead091b34 100755 --- a/build/teamcity/cockroach/nightlies/pebble_nightly_ycsb_race_impl.sh +++ b/build/teamcity/cockroach/nightlies/pebble_nightly_ycsb_race_impl.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2022 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euo pipefail _dir="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" diff --git a/build/teamcity/cockroach/nightlies/random_syntax_tests.sh b/build/teamcity/cockroach/nightlies/random_syntax_tests.sh index 0d25c89ffe83..60444b2a89d8 100755 --- a/build/teamcity/cockroach/nightlies/random_syntax_tests.sh +++ b/build/teamcity/cockroach/nightlies/random_syntax_tests.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2021 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euo pipefail dir="$(dirname $(dirname $(dirname $(dirname "${0}"))))" diff --git a/build/teamcity/cockroach/nightlies/random_syntax_tests_impl.sh b/build/teamcity/cockroach/nightlies/random_syntax_tests_impl.sh index 60d2e5ed197f..b7622efd26bb 100755 --- a/build/teamcity/cockroach/nightlies/random_syntax_tests_impl.sh +++ b/build/teamcity/cockroach/nightlies/random_syntax_tests_impl.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2021 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -xeuo pipefail dir="$(dirname $(dirname $(dirname $(dirname "${0}"))))" diff --git a/build/teamcity/cockroach/nightlies/roachtest_compile_bits.sh b/build/teamcity/cockroach/nightlies/roachtest_compile_bits.sh index f22fb79974f3..55d222d44105 100755 --- a/build/teamcity/cockroach/nightlies/roachtest_compile_bits.sh +++ b/build/teamcity/cockroach/nightlies/roachtest_compile_bits.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2021 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euo pipefail # N.B. `$root` is defined in build/teamcity-support.sh; diff --git a/build/teamcity/cockroach/nightlies/roachtest_compile_component.sh b/build/teamcity/cockroach/nightlies/roachtest_compile_component.sh index e353346d8892..ccf0719a2a89 100755 --- a/build/teamcity/cockroach/nightlies/roachtest_compile_component.sh +++ b/build/teamcity/cockroach/nightlies/roachtest_compile_component.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2023 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euo pipefail source $root/build/teamcity/util/roachtest_arch_util.sh diff --git a/build/teamcity/cockroach/nightlies/roachtest_nightly_aws.sh b/build/teamcity/cockroach/nightlies/roachtest_nightly_aws.sh index 2567f112419c..fade1ac33f88 100755 --- a/build/teamcity/cockroach/nightlies/roachtest_nightly_aws.sh +++ b/build/teamcity/cockroach/nightlies/roachtest_nightly_aws.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2021 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -exuo pipefail dir="$(dirname $(dirname $(dirname $(dirname "${0}"))))" diff --git a/build/teamcity/cockroach/nightlies/roachtest_nightly_aws_fips.sh b/build/teamcity/cockroach/nightlies/roachtest_nightly_aws_fips.sh index 4ef69d1d0d28..b1f57f1c1ad8 100755 --- a/build/teamcity/cockroach/nightlies/roachtest_nightly_aws_fips.sh +++ b/build/teamcity/cockroach/nightlies/roachtest_nightly_aws_fips.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2023 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -exuo pipefail dir="$(dirname $(dirname $(dirname $(dirname "${0}"))))" diff --git a/build/teamcity/cockroach/nightlies/roachtest_nightly_azure.sh b/build/teamcity/cockroach/nightlies/roachtest_nightly_azure.sh index c78be95bdfd5..d5fcb36d2c33 100755 --- a/build/teamcity/cockroach/nightlies/roachtest_nightly_azure.sh +++ b/build/teamcity/cockroach/nightlies/roachtest_nightly_azure.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2023 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -exuo pipefail dir="$(dirname $(dirname $(dirname $(dirname "${0}"))))" diff --git a/build/teamcity/cockroach/nightlies/roachtest_nightly_gce.sh b/build/teamcity/cockroach/nightlies/roachtest_nightly_gce.sh index 387fffbc05c9..93647d1039b8 100755 --- a/build/teamcity/cockroach/nightlies/roachtest_nightly_gce.sh +++ b/build/teamcity/cockroach/nightlies/roachtest_nightly_gce.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2021 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -exuo pipefail dir="$(dirname $(dirname $(dirname $(dirname "${0}"))))" diff --git a/build/teamcity/cockroach/nightlies/roachtest_nightly_gce_fips.sh b/build/teamcity/cockroach/nightlies/roachtest_nightly_gce_fips.sh index f5ed27001f21..941492753dc8 100755 --- a/build/teamcity/cockroach/nightlies/roachtest_nightly_gce_fips.sh +++ b/build/teamcity/cockroach/nightlies/roachtest_nightly_gce_fips.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2023 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -exuo pipefail dir="$(dirname $(dirname $(dirname $(dirname "${0}"))))" diff --git a/build/teamcity/cockroach/nightlies/roachtest_nightly_impl.sh b/build/teamcity/cockroach/nightlies/roachtest_nightly_impl.sh index efd7016b1d2c..14a188afcec5 100755 --- a/build/teamcity/cockroach/nightlies/roachtest_nightly_impl.sh +++ b/build/teamcity/cockroach/nightlies/roachtest_nightly_impl.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2021 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -exuo pipefail dir="$(dirname $(dirname $(dirname $(dirname "${0}"))))" diff --git a/build/teamcity/cockroach/nightlies/roachtest_stress_impl.sh b/build/teamcity/cockroach/nightlies/roachtest_stress_impl.sh index 71ed81e6bbdd..9d64e1beaa62 100755 --- a/build/teamcity/cockroach/nightlies/roachtest_stress_impl.sh +++ b/build/teamcity/cockroach/nightlies/roachtest_stress_impl.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2023 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -exuo pipefail dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" diff --git a/build/teamcity/cockroach/nightlies/roachtest_weekly.sh b/build/teamcity/cockroach/nightlies/roachtest_weekly.sh index a8f0a665cf7c..6c4626e53d9c 100755 --- a/build/teamcity/cockroach/nightlies/roachtest_weekly.sh +++ b/build/teamcity/cockroach/nightlies/roachtest_weekly.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2021 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -exuo pipefail dir="$(dirname $(dirname $(dirname $(dirname "${0}"))))" diff --git a/build/teamcity/cockroach/nightlies/roachtest_weekly_aws.sh b/build/teamcity/cockroach/nightlies/roachtest_weekly_aws.sh index 1caa9616770c..cd4e2c994bba 100755 --- a/build/teamcity/cockroach/nightlies/roachtest_weekly_aws.sh +++ b/build/teamcity/cockroach/nightlies/roachtest_weekly_aws.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2023 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -exuo pipefail dir="$(dirname $(dirname $(dirname $(dirname "${0}"))))" diff --git a/build/teamcity/cockroach/nightlies/roachtest_weekly_impl.sh b/build/teamcity/cockroach/nightlies/roachtest_weekly_impl.sh index 2ffee0037d9d..bedafa29fa93 100755 --- a/build/teamcity/cockroach/nightlies/roachtest_weekly_impl.sh +++ b/build/teamcity/cockroach/nightlies/roachtest_weekly_impl.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2021 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -exuo pipefail dir="$(dirname $(dirname $(dirname $(dirname "${0}"))))" diff --git a/build/teamcity/cockroach/nightlies/schema_changer_comparator_nightly.sh b/build/teamcity/cockroach/nightlies/schema_changer_comparator_nightly.sh index c8a4daf577d7..71f610a7c88e 100755 --- a/build/teamcity/cockroach/nightlies/schema_changer_comparator_nightly.sh +++ b/build/teamcity/cockroach/nightlies/schema_changer_comparator_nightly.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2023 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euo pipefail dir="$(dirname $(dirname $(dirname $(dirname "${0}"))))" diff --git a/build/teamcity/cockroach/nightlies/schema_changer_comparator_nightly_impl.sh b/build/teamcity/cockroach/nightlies/schema_changer_comparator_nightly_impl.sh index e0f823fd12b1..e9c4178d619b 100755 --- a/build/teamcity/cockroach/nightlies/schema_changer_comparator_nightly_impl.sh +++ b/build/teamcity/cockroach/nightlies/schema_changer_comparator_nightly_impl.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2023 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -xeuo pipefail dir="$(dirname $(dirname $(dirname $(dirname "${0}"))))" diff --git a/build/teamcity/cockroach/nightlies/sqlite_logic_test.sh b/build/teamcity/cockroach/nightlies/sqlite_logic_test.sh index 1869f86a9b89..819a8d915675 100755 --- a/build/teamcity/cockroach/nightlies/sqlite_logic_test.sh +++ b/build/teamcity/cockroach/nightlies/sqlite_logic_test.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2021 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euo pipefail dir="$(dirname $(dirname $(dirname $(dirname "${0}"))))" diff --git a/build/teamcity/cockroach/nightlies/sqlite_logic_test_impl.sh b/build/teamcity/cockroach/nightlies/sqlite_logic_test_impl.sh index a31ac65ba5b2..f0babbdfe0f3 100755 --- a/build/teamcity/cockroach/nightlies/sqlite_logic_test_impl.sh +++ b/build/teamcity/cockroach/nightlies/sqlite_logic_test_impl.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2021 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -xeuo pipefail dir="$(dirname $(dirname $(dirname $(dirname "${0}"))))" diff --git a/build/teamcity/cockroach/nightlies/sqllogic_backup_restore.sh b/build/teamcity/cockroach/nightlies/sqllogic_backup_restore.sh index ec52084bf9a2..b68720890431 100755 --- a/build/teamcity/cockroach/nightlies/sqllogic_backup_restore.sh +++ b/build/teamcity/cockroach/nightlies/sqllogic_backup_restore.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2022 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euo pipefail dir="$(dirname $(dirname $(dirname $(dirname "${0}"))))" diff --git a/build/teamcity/cockroach/nightlies/sqllogic_backup_restore_impl.sh b/build/teamcity/cockroach/nightlies/sqllogic_backup_restore_impl.sh index 1c7412321aae..751a40c93277 100755 --- a/build/teamcity/cockroach/nightlies/sqllogic_backup_restore_impl.sh +++ b/build/teamcity/cockroach/nightlies/sqllogic_backup_restore_impl.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2022 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -xeuo pipefail dir="$(dirname $(dirname $(dirname $(dirname "${0}"))))" diff --git a/build/teamcity/cockroach/nightlies/sqllogic_corpus_nightly.sh b/build/teamcity/cockroach/nightlies/sqllogic_corpus_nightly.sh index b3a8d84b5082..7522e29a261f 100755 --- a/build/teamcity/cockroach/nightlies/sqllogic_corpus_nightly.sh +++ b/build/teamcity/cockroach/nightlies/sqllogic_corpus_nightly.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2022 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euo pipefail dir="$(dirname $(dirname $(dirname $(dirname "${0}"))))" diff --git a/build/teamcity/cockroach/nightlies/sqllogic_corpus_nightly_impl.sh b/build/teamcity/cockroach/nightlies/sqllogic_corpus_nightly_impl.sh index 6aa1bc75d29c..bd7b5de712e8 100755 --- a/build/teamcity/cockroach/nightlies/sqllogic_corpus_nightly_impl.sh +++ b/build/teamcity/cockroach/nightlies/sqllogic_corpus_nightly_impl.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2022 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -xeuo pipefail dir="$(dirname $(dirname $(dirname $(dirname "${0}"))))" diff --git a/build/teamcity/cockroach/nightlies/sqllogic_hi_vmodule_nightly.sh b/build/teamcity/cockroach/nightlies/sqllogic_hi_vmodule_nightly.sh index ac728175ac97..bc74ccf50184 100755 --- a/build/teamcity/cockroach/nightlies/sqllogic_hi_vmodule_nightly.sh +++ b/build/teamcity/cockroach/nightlies/sqllogic_hi_vmodule_nightly.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2021 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euo pipefail dir="$(dirname $(dirname $(dirname $(dirname "${0}"))))" diff --git a/build/teamcity/cockroach/nightlies/sqllogic_hi_vmodule_nightly_impl.sh b/build/teamcity/cockroach/nightlies/sqllogic_hi_vmodule_nightly_impl.sh index dc09685ae3c3..af5cc9bd94a5 100755 --- a/build/teamcity/cockroach/nightlies/sqllogic_hi_vmodule_nightly_impl.sh +++ b/build/teamcity/cockroach/nightlies/sqllogic_hi_vmodule_nightly_impl.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2021 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -xeuo pipefail dir="$(dirname $(dirname $(dirname $(dirname "${0}"))))" diff --git a/build/teamcity/cockroach/nightlies/stress.sh b/build/teamcity/cockroach/nightlies/stress.sh index fe3063aee965..9236d9e3ba01 100755 --- a/build/teamcity/cockroach/nightlies/stress.sh +++ b/build/teamcity/cockroach/nightlies/stress.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2021 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euo pipefail dir="$(dirname $(dirname $(dirname $(dirname "${0}"))))" diff --git a/build/teamcity/cockroach/nightlies/stress_engflow.sh b/build/teamcity/cockroach/nightlies/stress_engflow.sh index 339be14c5ee1..d7b5950b067a 100755 --- a/build/teamcity/cockroach/nightlies/stress_engflow.sh +++ b/build/teamcity/cockroach/nightlies/stress_engflow.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2023 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euo pipefail export EXTRA_TEST_ARGS="--config use_ci_timeouts" diff --git a/build/teamcity/cockroach/nightlies/stress_engflow_deadlock.sh b/build/teamcity/cockroach/nightlies/stress_engflow_deadlock.sh index 04b6cb157272..f1732ee5174c 100755 --- a/build/teamcity/cockroach/nightlies/stress_engflow_deadlock.sh +++ b/build/teamcity/cockroach/nightlies/stress_engflow_deadlock.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2023 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euo pipefail export RUNS_PER_TEST=3 diff --git a/build/teamcity/cockroach/nightlies/stress_engflow_impl.sh b/build/teamcity/cockroach/nightlies/stress_engflow_impl.sh index b823c9d4483b..6961e92d5346 100755 --- a/build/teamcity/cockroach/nightlies/stress_engflow_impl.sh +++ b/build/teamcity/cockroach/nightlies/stress_engflow_impl.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2023 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euo pipefail google_credentials="$GOOGLE_CREDENTIALS" diff --git a/build/teamcity/cockroach/nightlies/stress_engflow_race.sh b/build/teamcity/cockroach/nightlies/stress_engflow_race.sh index df981af128d5..714f87c13188 100755 --- a/build/teamcity/cockroach/nightlies/stress_engflow_race.sh +++ b/build/teamcity/cockroach/nightlies/stress_engflow_race.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2023 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euo pipefail export RUNS_PER_TEST=3 diff --git a/build/teamcity/cockroach/nightlies/stress_impl.sh b/build/teamcity/cockroach/nightlies/stress_impl.sh index fcb7b8efd1b9..4be6f1c70355 100755 --- a/build/teamcity/cockroach/nightlies/stress_impl.sh +++ b/build/teamcity/cockroach/nightlies/stress_impl.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2021 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -xeuo pipefail dir="$(dirname $(dirname $(dirname $(dirname "${0}"))))" diff --git a/build/teamcity/cockroach/nightlies/teamcity-roachtest-stress.sh b/build/teamcity/cockroach/nightlies/teamcity-roachtest-stress.sh index 158fcce3a782..a23b2c8988e2 100755 --- a/build/teamcity/cockroach/nightlies/teamcity-roachtest-stress.sh +++ b/build/teamcity/cockroach/nightlies/teamcity-roachtest-stress.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2023 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -exuo pipefail source "$(dirname "${0}")/../../../teamcity-support.sh" diff --git a/build/teamcity/cockroach/nightlies/url_check.sh b/build/teamcity/cockroach/nightlies/url_check.sh index 33ce64d9fb33..6ad780f6bdec 100755 --- a/build/teamcity/cockroach/nightlies/url_check.sh +++ b/build/teamcity/cockroach/nightlies/url_check.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2021 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -exuo pipefail dir="$(dirname $(dirname $(dirname $(dirname "${0}"))))" diff --git a/build/teamcity/cockroach/nightlies/url_check_impl.sh b/build/teamcity/cockroach/nightlies/url_check_impl.sh index 4e557c9999a4..d81a99810131 100755 --- a/build/teamcity/cockroach/nightlies/url_check_impl.sh +++ b/build/teamcity/cockroach/nightlies/url_check_impl.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2021 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -xeuo pipefail bazel run //pkg/cmd/urlcheck --config=ci --run_under="cd $PWD && " diff --git a/build/teamcity/cockroach/post-merge/publish-bleeding-edge-darwin-amd64.sh b/build/teamcity/cockroach/post-merge/publish-bleeding-edge-darwin-amd64.sh index 1e13330407d1..fa7adfdf5781 100755 --- a/build/teamcity/cockroach/post-merge/publish-bleeding-edge-darwin-amd64.sh +++ b/build/teamcity/cockroach/post-merge/publish-bleeding-edge-darwin-amd64.sh @@ -1,3 +1,9 @@ #!/usr/bin/env bash +# Copyright 2023 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + PLATFORM=darwin-amd64 ./build/teamcity/cockroach/post-merge/publish-bleeding-edge-per-platform.sh diff --git a/build/teamcity/cockroach/post-merge/publish-bleeding-edge-darwin-arm64.sh b/build/teamcity/cockroach/post-merge/publish-bleeding-edge-darwin-arm64.sh index 7fca3b20f7b0..d98bdc2b64eb 100755 --- a/build/teamcity/cockroach/post-merge/publish-bleeding-edge-darwin-arm64.sh +++ b/build/teamcity/cockroach/post-merge/publish-bleeding-edge-darwin-arm64.sh @@ -1,3 +1,9 @@ #!/usr/bin/env bash +# Copyright 2023 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + PLATFORM=darwin-arm64 ./build/teamcity/cockroach/post-merge/publish-bleeding-edge-per-platform.sh diff --git a/build/teamcity/cockroach/post-merge/publish-bleeding-edge-linux-amd64-fips.sh b/build/teamcity/cockroach/post-merge/publish-bleeding-edge-linux-amd64-fips.sh index 7ffb9f8dd1ba..fc0a408de89b 100755 --- a/build/teamcity/cockroach/post-merge/publish-bleeding-edge-linux-amd64-fips.sh +++ b/build/teamcity/cockroach/post-merge/publish-bleeding-edge-linux-amd64-fips.sh @@ -1,3 +1,9 @@ #!/usr/bin/env bash +# Copyright 2023 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + PLATFORM=linux-amd64-fips ./build/teamcity/cockroach/post-merge/publish-bleeding-edge-per-platform.sh diff --git a/build/teamcity/cockroach/post-merge/publish-bleeding-edge-linux-amd64.sh b/build/teamcity/cockroach/post-merge/publish-bleeding-edge-linux-amd64.sh index 0f7f3da51cb1..08a9a8895c13 100755 --- a/build/teamcity/cockroach/post-merge/publish-bleeding-edge-linux-amd64.sh +++ b/build/teamcity/cockroach/post-merge/publish-bleeding-edge-linux-amd64.sh @@ -1,3 +1,9 @@ #!/usr/bin/env bash +# Copyright 2023 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + PLATFORM=linux-amd64 ./build/teamcity/cockroach/post-merge/publish-bleeding-edge-per-platform.sh diff --git a/build/teamcity/cockroach/post-merge/publish-bleeding-edge-linux-arm64.sh b/build/teamcity/cockroach/post-merge/publish-bleeding-edge-linux-arm64.sh index 4474cb20c35e..586885da473b 100755 --- a/build/teamcity/cockroach/post-merge/publish-bleeding-edge-linux-arm64.sh +++ b/build/teamcity/cockroach/post-merge/publish-bleeding-edge-linux-arm64.sh @@ -1,3 +1,9 @@ #!/usr/bin/env bash +# Copyright 2023 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + PLATFORM=linux-arm64 ./build/teamcity/cockroach/post-merge/publish-bleeding-edge-per-platform.sh diff --git a/build/teamcity/cockroach/post-merge/publish-bleeding-edge-per-platform.sh b/build/teamcity/cockroach/post-merge/publish-bleeding-edge-per-platform.sh index 5efba16b99ea..7eeb8ca872b2 100755 --- a/build/teamcity/cockroach/post-merge/publish-bleeding-edge-per-platform.sh +++ b/build/teamcity/cockroach/post-merge/publish-bleeding-edge-per-platform.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2023 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + # This script is called by the build configuration # "Cockroach > Post Merge > Publish Bleeding Edge" in TeamCity. diff --git a/build/teamcity/cockroach/post-merge/publish-bleeding-edge-win-amd64.sh b/build/teamcity/cockroach/post-merge/publish-bleeding-edge-win-amd64.sh index 0a310ee91a0a..7da17f71f69d 100755 --- a/build/teamcity/cockroach/post-merge/publish-bleeding-edge-win-amd64.sh +++ b/build/teamcity/cockroach/post-merge/publish-bleeding-edge-win-amd64.sh @@ -1,4 +1,10 @@ #!/usr/bin/env bash +# Copyright 2023 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + PLATFORM=win-amd64 ./build/teamcity/cockroach/post-merge/publish-bleeding-edge-per-platform.sh diff --git a/build/teamcity/cockroach/publish-sql-grammar-diagrams-impl.sh b/build/teamcity/cockroach/publish-sql-grammar-diagrams-impl.sh index 9d7e9d8c9bd9..842733ff47b6 100755 --- a/build/teamcity/cockroach/publish-sql-grammar-diagrams-impl.sh +++ b/build/teamcity/cockroach/publish-sql-grammar-diagrams-impl.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2021 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -xeuo pipefail bazel build //pkg/cmd/bazci --config=ci diff --git a/build/teamcity/internal/cockroach/build/ci/build-and-push-bazel-builder-image-fips.sh b/build/teamcity/internal/cockroach/build/ci/build-and-push-bazel-builder-image-fips.sh index e69ac233cdf8..b3fceacabecc 100755 --- a/build/teamcity/internal/cockroach/build/ci/build-and-push-bazel-builder-image-fips.sh +++ b/build/teamcity/internal/cockroach/build/ci/build-and-push-bazel-builder-image-fips.sh @@ -1,4 +1,10 @@ #!/usr/bin/env bash + +# Copyright 2023 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + set -xeuo pipefail dir="$(dirname $(dirname $(dirname $(dirname $(dirname $(dirname "${0}"))))))" diff --git a/build/teamcity/internal/cockroach/build/ci/build-and-push-bazel-builder-image.sh b/build/teamcity/internal/cockroach/build/ci/build-and-push-bazel-builder-image.sh index 831cb27d6167..e409106d76f6 100755 --- a/build/teamcity/internal/cockroach/build/ci/build-and-push-bazel-builder-image.sh +++ b/build/teamcity/internal/cockroach/build/ci/build-and-push-bazel-builder-image.sh @@ -1,4 +1,10 @@ #!/usr/bin/env bash + +# Copyright 2022 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + set -xeuo pipefail dir="$(dirname $(dirname $(dirname $(dirname $(dirname $(dirname "${0}"))))))" diff --git a/build/teamcity/internal/cockroach/build/ci/nightly-bazel-builder-update-check.sh b/build/teamcity/internal/cockroach/build/ci/nightly-bazel-builder-update-check.sh index c2187df23d37..22701540ba61 100755 --- a/build/teamcity/internal/cockroach/build/ci/nightly-bazel-builder-update-check.sh +++ b/build/teamcity/internal/cockroach/build/ci/nightly-bazel-builder-update-check.sh @@ -1,4 +1,10 @@ #!/usr/bin/env bash + +# Copyright 2022 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + set -xeuo pipefail # We use a docker image mirror to avoid pulling from 3rd party repos, which sometimes have reliability issues. diff --git a/build/teamcity/internal/cockroach/build/ci/open-new-bazel-builder-image-pr.sh b/build/teamcity/internal/cockroach/build/ci/open-new-bazel-builder-image-pr.sh index 5fcf52fc7c36..58e049854395 100755 --- a/build/teamcity/internal/cockroach/build/ci/open-new-bazel-builder-image-pr.sh +++ b/build/teamcity/internal/cockroach/build/ci/open-new-bazel-builder-image-pr.sh @@ -1,4 +1,10 @@ #!/usr/bin/env bash + +# Copyright 2022 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + set -xeuo pipefail # This script expects the following env vars to be set: diff --git a/build/teamcity/internal/cockroach/nightlies/private_roachtest.sh b/build/teamcity/internal/cockroach/nightlies/private_roachtest.sh index ccd51e14c24d..6ebd1784ed25 100755 --- a/build/teamcity/internal/cockroach/nightlies/private_roachtest.sh +++ b/build/teamcity/internal/cockroach/nightlies/private_roachtest.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2023 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -exuo pipefail dir="$(dirname $(dirname $(dirname $(dirname $(dirname "${0}")))))" diff --git a/build/teamcity/internal/cockroach/nightlies/private_roachtest_impl.sh b/build/teamcity/internal/cockroach/nightlies/private_roachtest_impl.sh index 27309f497536..5f97df3853f1 100755 --- a/build/teamcity/internal/cockroach/nightlies/private_roachtest_impl.sh +++ b/build/teamcity/internal/cockroach/nightlies/private_roachtest_impl.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2023 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -exuo pipefail dir="$(dirname $(dirname $(dirname $(dirname $(dirname "${0}")))))" diff --git a/build/teamcity/internal/cockroach/release/process/cancel_release_date.sh b/build/teamcity/internal/cockroach/release/process/cancel_release_date.sh index bb3d935ae5da..ef7b647c6866 100644 --- a/build/teamcity/internal/cockroach/release/process/cancel_release_date.sh +++ b/build/teamcity/internal/cockroach/release/process/cancel_release_date.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2022 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euo pipefail dir="$(dirname $(dirname $(dirname $(dirname $(dirname $(dirname "${0}"))))))" diff --git a/build/teamcity/internal/cockroach/release/process/cancel_release_date_impl.sh b/build/teamcity/internal/cockroach/release/process/cancel_release_date_impl.sh index 7bbb16b71fb2..92f30f6c5b01 100644 --- a/build/teamcity/internal/cockroach/release/process/cancel_release_date_impl.sh +++ b/build/teamcity/internal/cockroach/release/process/cancel_release_date_impl.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2022 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -xeuo pipefail to=dev-inf+release-dev@cockroachlabs.com diff --git a/build/teamcity/internal/cockroach/release/process/pick_sha.sh b/build/teamcity/internal/cockroach/release/process/pick_sha.sh index 41613a2ab41f..3d7bc8fd5d22 100755 --- a/build/teamcity/internal/cockroach/release/process/pick_sha.sh +++ b/build/teamcity/internal/cockroach/release/process/pick_sha.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2022 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euo pipefail dir="$(dirname $(dirname $(dirname $(dirname $(dirname $(dirname "${0}"))))))" diff --git a/build/teamcity/internal/cockroach/release/process/pick_sha_impl.sh b/build/teamcity/internal/cockroach/release/process/pick_sha_impl.sh index 33b2be774fea..bfcb43ff6a81 100755 --- a/build/teamcity/internal/cockroach/release/process/pick_sha_impl.sh +++ b/build/teamcity/internal/cockroach/release/process/pick_sha_impl.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2022 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -xeuo pipefail dir="$(dirname $(dirname $(dirname $(dirname $(dirname $(dirname "${0}"))))))" diff --git a/build/teamcity/internal/cockroach/release/process/post_blockers.sh b/build/teamcity/internal/cockroach/release/process/post_blockers.sh index e05bd6a8914e..819bb3c2a9b4 100755 --- a/build/teamcity/internal/cockroach/release/process/post_blockers.sh +++ b/build/teamcity/internal/cockroach/release/process/post_blockers.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2022 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euo pipefail dir="$(dirname $(dirname $(dirname $(dirname $(dirname $(dirname "${0}"))))))" diff --git a/build/teamcity/internal/cockroach/release/process/post_blockers_impl.sh b/build/teamcity/internal/cockroach/release/process/post_blockers_impl.sh index dc715a268d41..26414ff74abd 100755 --- a/build/teamcity/internal/cockroach/release/process/post_blockers_impl.sh +++ b/build/teamcity/internal/cockroach/release/process/post_blockers_impl.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2022 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -xeuo pipefail to=dev-inf+release-dev@cockroachlabs.com diff --git a/build/teamcity/internal/cockroach/release/process/update_versions.sh b/build/teamcity/internal/cockroach/release/process/update_versions.sh index b4a86c31f772..f6433a0e2c87 100755 --- a/build/teamcity/internal/cockroach/release/process/update_versions.sh +++ b/build/teamcity/internal/cockroach/release/process/update_versions.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2022 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euo pipefail dir="$(dirname $(dirname $(dirname $(dirname $(dirname $(dirname "${0}"))))))" diff --git a/build/teamcity/internal/cockroach/release/process/update_versions_impl.sh b/build/teamcity/internal/cockroach/release/process/update_versions_impl.sh index 1cb4ab55bcfe..082a81036b7c 100755 --- a/build/teamcity/internal/cockroach/release/process/update_versions_impl.sh +++ b/build/teamcity/internal/cockroach/release/process/update_versions_impl.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2022 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -xeuo pipefail to=dev-inf+release-dev@cockroachlabs.com diff --git a/build/teamcity/internal/cockroach/release/publish/publish-redhat-release.sh b/build/teamcity/internal/cockroach/release/publish/publish-redhat-release.sh index e688b1ab9ed7..d453a5da7071 100755 --- a/build/teamcity/internal/cockroach/release/publish/publish-redhat-release.sh +++ b/build/teamcity/internal/cockroach/release/publish/publish-redhat-release.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2023 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euxo pipefail dir="$(dirname $(dirname $(dirname $(dirname $(dirname $(dirname "${0}"))))))" diff --git a/build/teamcity/internal/cockroach/release/publish/publish-staged-cockroach-release.sh b/build/teamcity/internal/cockroach/release/publish/publish-staged-cockroach-release.sh index b3b92f8d7287..18f8b7fea849 100755 --- a/build/teamcity/internal/cockroach/release/publish/publish-staged-cockroach-release.sh +++ b/build/teamcity/internal/cockroach/release/publish/publish-staged-cockroach-release.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2023 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euxo pipefail dir="$(dirname $(dirname $(dirname $(dirname $(dirname $(dirname "${0}"))))))" diff --git a/build/teamcity/internal/cockroach/release/publish/sign_macos_release.sh b/build/teamcity/internal/cockroach/release/publish/sign_macos_release.sh index 2ef305d8009b..1d13d9ab2e43 100755 --- a/build/teamcity/internal/cockroach/release/publish/sign_macos_release.sh +++ b/build/teamcity/internal/cockroach/release/publish/sign_macos_release.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2022 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -xeuo pipefail KEYCHAIN_NAME=signing diff --git a/build/teamcity/internal/cockroach/release/publish/sign_staged_macos_release.sh b/build/teamcity/internal/cockroach/release/publish/sign_staged_macos_release.sh index 0b7297f979e2..3d486ffaeb89 100755 --- a/build/teamcity/internal/cockroach/release/publish/sign_staged_macos_release.sh +++ b/build/teamcity/internal/cockroach/release/publish/sign_staged_macos_release.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2023 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -xeuo pipefail dir="$(dirname $(dirname $(dirname $(dirname $(dirname $(dirname "${0}"))))))" diff --git a/build/teamcity/internal/release/build-and-publish-cdeps.sh b/build/teamcity/internal/release/build-and-publish-cdeps.sh index 713d4354f9ba..787eb5fd0eda 100755 --- a/build/teamcity/internal/release/build-and-publish-cdeps.sh +++ b/build/teamcity/internal/release/build-and-publish-cdeps.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2022 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euo pipefail google_credentials="$GOOGLE_EPHEMERAL_CREDENTIALS" diff --git a/build/teamcity/internal/release/build-and-publish-cross-toolchains.sh b/build/teamcity/internal/release/build-and-publish-cross-toolchains.sh index e6f5e7149dcc..40bdefab7e47 100755 --- a/build/teamcity/internal/release/build-and-publish-cross-toolchains.sh +++ b/build/teamcity/internal/release/build-and-publish-cross-toolchains.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2022 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euo pipefail google_credentials="$GOOGLE_EPHEMERAL_CREDENTIALS" diff --git a/build/teamcity/internal/release/build-and-publish-osx-toolchains.sh b/build/teamcity/internal/release/build-and-publish-osx-toolchains.sh index 9562b07eaecc..766ff929f7e0 100755 --- a/build/teamcity/internal/release/build-and-publish-osx-toolchains.sh +++ b/build/teamcity/internal/release/build-and-publish-osx-toolchains.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2022 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euo pipefail google_credentials="$GOOGLE_EPHEMERAL_CREDENTIALS" diff --git a/build/teamcity/internal/release/build-and-publish-patched-go.sh b/build/teamcity/internal/release/build-and-publish-patched-go.sh index ac543dea6336..e402a80cd62a 100755 --- a/build/teamcity/internal/release/build-and-publish-patched-go.sh +++ b/build/teamcity/internal/release/build-and-publish-patched-go.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2022 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euo pipefail google_credentials="$GOOGLE_EPHEMERAL_CREDENTIALS" diff --git a/build/teamcity/internal/release/build-and-publish-patched-go/impl-fips.sh b/build/teamcity/internal/release/build-and-publish-patched-go/impl-fips.sh index f9b9826701e1..122536a4be2f 100755 --- a/build/teamcity/internal/release/build-and-publish-patched-go/impl-fips.sh +++ b/build/teamcity/internal/release/build-and-publish-patched-go/impl-fips.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2023 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -xeuo pipefail GO_FIPS_REPO=https://github.com/golang-fips/go diff --git a/build/teamcity/internal/release/build-and-publish-patched-go/impl.sh b/build/teamcity/internal/release/build-and-publish-patched-go/impl.sh index b592a96b5f46..6baff311e1ef 100755 --- a/build/teamcity/internal/release/build-and-publish-patched-go/impl.sh +++ b/build/teamcity/internal/release/build-and-publish-patched-go/impl.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2022 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -xeuo pipefail # When updating to a new Go version, update all of these variables. diff --git a/build/teamcity/internal/release/process/build-cockroach-release-darwin-amd64.sh b/build/teamcity/internal/release/process/build-cockroach-release-darwin-amd64.sh index bed0ee887880..51e79ecf523c 100755 --- a/build/teamcity/internal/release/process/build-cockroach-release-darwin-amd64.sh +++ b/build/teamcity/internal/release/process/build-cockroach-release-darwin-amd64.sh @@ -1,3 +1,9 @@ #!/usr/bin/env bash +# Copyright 2023 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + PLATFORM=darwin-amd64 ./build/teamcity/internal/release/process/build-cockroach-release-per-platform.sh diff --git a/build/teamcity/internal/release/process/build-cockroach-release-darwin-arm64.sh b/build/teamcity/internal/release/process/build-cockroach-release-darwin-arm64.sh index bcb4ac791651..dd9d9858a794 100755 --- a/build/teamcity/internal/release/process/build-cockroach-release-darwin-arm64.sh +++ b/build/teamcity/internal/release/process/build-cockroach-release-darwin-arm64.sh @@ -1,3 +1,9 @@ #!/usr/bin/env bash +# Copyright 2023 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + PLATFORM=darwin-arm64 ./build/teamcity/internal/release/process/build-cockroach-release-per-platform.sh diff --git a/build/teamcity/internal/release/process/build-cockroach-release-docker.sh b/build/teamcity/internal/release/process/build-cockroach-release-docker.sh index cf8f42955e11..ea606dc949f1 100755 --- a/build/teamcity/internal/release/process/build-cockroach-release-docker.sh +++ b/build/teamcity/internal/release/process/build-cockroach-release-docker.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2023 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euxo pipefail dir="$(dirname $(dirname $(dirname $(dirname $(dirname "${0}")))))" diff --git a/build/teamcity/internal/release/process/build-cockroach-release-linux-amd64-fips.sh b/build/teamcity/internal/release/process/build-cockroach-release-linux-amd64-fips.sh index 1843e7504242..ab281a3e9eeb 100755 --- a/build/teamcity/internal/release/process/build-cockroach-release-linux-amd64-fips.sh +++ b/build/teamcity/internal/release/process/build-cockroach-release-linux-amd64-fips.sh @@ -1,3 +1,9 @@ #!/usr/bin/env bash +# Copyright 2023 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + PLATFORM=linux-amd64-fips ./build/teamcity/internal/release/process/build-cockroach-release-per-platform.sh diff --git a/build/teamcity/internal/release/process/build-cockroach-release-linux-amd64.sh b/build/teamcity/internal/release/process/build-cockroach-release-linux-amd64.sh index 3998ea14a46c..f074eb90aea5 100755 --- a/build/teamcity/internal/release/process/build-cockroach-release-linux-amd64.sh +++ b/build/teamcity/internal/release/process/build-cockroach-release-linux-amd64.sh @@ -1,3 +1,9 @@ #!/usr/bin/env bash +# Copyright 2023 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + PLATFORM=linux-amd64 ./build/teamcity/internal/release/process/build-cockroach-release-per-platform.sh diff --git a/build/teamcity/internal/release/process/build-cockroach-release-linux-arm64.sh b/build/teamcity/internal/release/process/build-cockroach-release-linux-arm64.sh index 96839b907bdf..2875feb3b222 100755 --- a/build/teamcity/internal/release/process/build-cockroach-release-linux-arm64.sh +++ b/build/teamcity/internal/release/process/build-cockroach-release-linux-arm64.sh @@ -1,3 +1,9 @@ #!/usr/bin/env bash +# Copyright 2023 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + PLATFORM=linux-arm64 ./build/teamcity/internal/release/process/build-cockroach-release-per-platform.sh diff --git a/build/teamcity/internal/release/process/build-cockroach-release-per-platform.sh b/build/teamcity/internal/release/process/build-cockroach-release-per-platform.sh index d995f2294ecf..b1f94e61706a 100755 --- a/build/teamcity/internal/release/process/build-cockroach-release-per-platform.sh +++ b/build/teamcity/internal/release/process/build-cockroach-release-per-platform.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2023 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euxo pipefail dir="$(dirname $(dirname $(dirname $(dirname $(dirname "${0}")))))" diff --git a/build/teamcity/internal/release/process/build-cockroach-release-win-amd64.sh b/build/teamcity/internal/release/process/build-cockroach-release-win-amd64.sh index 18201ddffbdb..75a7f738f0e5 100755 --- a/build/teamcity/internal/release/process/build-cockroach-release-win-amd64.sh +++ b/build/teamcity/internal/release/process/build-cockroach-release-win-amd64.sh @@ -1,3 +1,9 @@ #!/usr/bin/env bash +# Copyright 2023 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + PLATFORM=win-amd64 ./build/teamcity/internal/release/process/build-cockroach-release-per-platform.sh diff --git a/build/teamcity/internal/release/process/check-gha.sh b/build/teamcity/internal/release/process/check-gha.sh index 1768cbd3cf48..d48728b02ff6 100755 --- a/build/teamcity/internal/release/process/check-gha.sh +++ b/build/teamcity/internal/release/process/check-gha.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2024 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -exuo pipefail dir="$(dirname $(dirname $(dirname $(dirname $(dirname "${0}")))))" diff --git a/build/teamcity/internal/release/process/make-and-publish-build-artifacts-darwin-amd64.sh b/build/teamcity/internal/release/process/make-and-publish-build-artifacts-darwin-amd64.sh index a38c358d24a0..09db8ed79218 100755 --- a/build/teamcity/internal/release/process/make-and-publish-build-artifacts-darwin-amd64.sh +++ b/build/teamcity/internal/release/process/make-and-publish-build-artifacts-darwin-amd64.sh @@ -1,3 +1,9 @@ #!/usr/bin/env bash +# Copyright 2023 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + PLATFORM=darwin-amd64 ./build/teamcity/internal/release/process/make-and-publish-build-artifacts-per-platform.sh diff --git a/build/teamcity/internal/release/process/make-and-publish-build-artifacts-darwin-arm64.sh b/build/teamcity/internal/release/process/make-and-publish-build-artifacts-darwin-arm64.sh index 0eea7fea4ee6..59f6e65a5354 100755 --- a/build/teamcity/internal/release/process/make-and-publish-build-artifacts-darwin-arm64.sh +++ b/build/teamcity/internal/release/process/make-and-publish-build-artifacts-darwin-arm64.sh @@ -1,3 +1,9 @@ #!/usr/bin/env bash +# Copyright 2023 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + PLATFORM=darwin-arm64 ./build/teamcity/internal/release/process/make-and-publish-build-artifacts-per-platform.sh diff --git a/build/teamcity/internal/release/process/make-and-publish-build-artifacts-docker.sh b/build/teamcity/internal/release/process/make-and-publish-build-artifacts-docker.sh index 26092363cf8c..1b5e97bdb17e 100755 --- a/build/teamcity/internal/release/process/make-and-publish-build-artifacts-docker.sh +++ b/build/teamcity/internal/release/process/make-and-publish-build-artifacts-docker.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2023 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euxo pipefail dir="$(dirname $(dirname $(dirname $(dirname $(dirname "${0}")))))" diff --git a/build/teamcity/internal/release/process/make-and-publish-build-artifacts-linux-amd64-fips.sh b/build/teamcity/internal/release/process/make-and-publish-build-artifacts-linux-amd64-fips.sh index e039223ef3f9..49a09c9356e5 100755 --- a/build/teamcity/internal/release/process/make-and-publish-build-artifacts-linux-amd64-fips.sh +++ b/build/teamcity/internal/release/process/make-and-publish-build-artifacts-linux-amd64-fips.sh @@ -1,3 +1,9 @@ #!/usr/bin/env bash +# Copyright 2023 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + PLATFORM=linux-amd64-fips ./build/teamcity/internal/release/process/make-and-publish-build-artifacts-per-platform.sh diff --git a/build/teamcity/internal/release/process/make-and-publish-build-artifacts-linux-amd64.sh b/build/teamcity/internal/release/process/make-and-publish-build-artifacts-linux-amd64.sh index 148c2b7e9d53..134b7009d0d7 100755 --- a/build/teamcity/internal/release/process/make-and-publish-build-artifacts-linux-amd64.sh +++ b/build/teamcity/internal/release/process/make-and-publish-build-artifacts-linux-amd64.sh @@ -1,3 +1,9 @@ #!/usr/bin/env bash +# Copyright 2023 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + PLATFORM=linux-amd64 ./build/teamcity/internal/release/process/make-and-publish-build-artifacts-per-platform.sh diff --git a/build/teamcity/internal/release/process/make-and-publish-build-artifacts-linux-arm64.sh b/build/teamcity/internal/release/process/make-and-publish-build-artifacts-linux-arm64.sh index 96fe44e2ef06..c304039ac1a5 100755 --- a/build/teamcity/internal/release/process/make-and-publish-build-artifacts-linux-arm64.sh +++ b/build/teamcity/internal/release/process/make-and-publish-build-artifacts-linux-arm64.sh @@ -1,3 +1,9 @@ #!/usr/bin/env bash +# Copyright 2023 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + PLATFORM=linux-arm64 ./build/teamcity/internal/release/process/make-and-publish-build-artifacts-per-platform.sh diff --git a/build/teamcity/internal/release/process/make-and-publish-build-artifacts-per-platform.sh b/build/teamcity/internal/release/process/make-and-publish-build-artifacts-per-platform.sh index ab9f0763dae0..258cd7437c03 100755 --- a/build/teamcity/internal/release/process/make-and-publish-build-artifacts-per-platform.sh +++ b/build/teamcity/internal/release/process/make-and-publish-build-artifacts-per-platform.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2023 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euxo pipefail dir="$(dirname $(dirname $(dirname $(dirname $(dirname "${0}")))))" diff --git a/build/teamcity/internal/release/process/make-and-publish-build-artifacts-win-amd64.sh b/build/teamcity/internal/release/process/make-and-publish-build-artifacts-win-amd64.sh index 2c7503f2a8ae..73e4f26d1f6b 100755 --- a/build/teamcity/internal/release/process/make-and-publish-build-artifacts-win-amd64.sh +++ b/build/teamcity/internal/release/process/make-and-publish-build-artifacts-win-amd64.sh @@ -1,3 +1,9 @@ #!/usr/bin/env bash +# Copyright 2023 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + PLATFORM=win-amd64 ./build/teamcity/internal/release/process/make-and-publish-build-artifacts-per-platform.sh diff --git a/build/teamcity/internal/release/process/make-and-publish-build-tagging.sh b/build/teamcity/internal/release/process/make-and-publish-build-tagging.sh index 6daa05885f2e..1787200f1326 100755 --- a/build/teamcity/internal/release/process/make-and-publish-build-tagging.sh +++ b/build/teamcity/internal/release/process/make-and-publish-build-tagging.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2022 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euo pipefail dir="$(dirname $(dirname $(dirname $(dirname $(dirname "${0}")))))" diff --git a/build/teamcity/internal/release/process/roachtest-release-qualification.sh b/build/teamcity/internal/release/process/roachtest-release-qualification.sh index 07c33ce49628..d49934d3914e 100755 --- a/build/teamcity/internal/release/process/roachtest-release-qualification.sh +++ b/build/teamcity/internal/release/process/roachtest-release-qualification.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2022 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euo pipefail dir="$(dirname $(dirname $(dirname $(dirname $(dirname "${0}")))))" diff --git a/build/teamcity/internal/release/process/roachtest-release-qualification_fips.sh b/build/teamcity/internal/release/process/roachtest-release-qualification_fips.sh index 7cedef19adae..b08f6e7a7daa 100755 --- a/build/teamcity/internal/release/process/roachtest-release-qualification_fips.sh +++ b/build/teamcity/internal/release/process/roachtest-release-qualification_fips.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2023 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euo pipefail FIPS_ENABLED=1 ./build/teamcity/internal/release/process/roachtest-release-qualification.sh diff --git a/build/teamcity/internal/release/publish-patched-go-for-mac.sh b/build/teamcity/internal/release/publish-patched-go-for-mac.sh index a10c5cb0392d..ed0ca8f73f5b 100755 --- a/build/teamcity/internal/release/publish-patched-go-for-mac.sh +++ b/build/teamcity/internal/release/publish-patched-go-for-mac.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2023 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euo pipefail google_credentials="$GOOGLE_EPHEMERAL_CREDENTIALS" diff --git a/build/teamcity/internal/release/sign-patched-go.sh b/build/teamcity/internal/release/sign-patched-go.sh index c0f350c8ce90..068be27a94cb 100755 --- a/build/teamcity/internal/release/sign-patched-go.sh +++ b/build/teamcity/internal/release/sign-patched-go.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2023 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -xeuo pipefail KEYCHAIN_NAME=signing diff --git a/build/teamcity/util.sh b/build/teamcity/util.sh index 8d14bc68e453..cdd289e062b4 100644 --- a/build/teamcity/util.sh +++ b/build/teamcity/util.sh @@ -1,3 +1,8 @@ +# Copyright 2021 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + # Some common utilities also used by Bazel build configs. tc_start_block() { diff --git a/build/teamcity/util/roachtest_arch_util.sh b/build/teamcity/util/roachtest_arch_util.sh index c27de99d4854..62135ab76ab7 100644 --- a/build/teamcity/util/roachtest_arch_util.sh +++ b/build/teamcity/util/roachtest_arch_util.sh @@ -1,3 +1,8 @@ +# Copyright 2024 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + # arch_to_config returns the bazel config for the given arch. function arch_to_config() { case "$1" in diff --git a/build/teamcity/util/roachtest_util.sh b/build/teamcity/util/roachtest_util.sh index 931310c6206b..3f9468ca991e 100644 --- a/build/teamcity/util/roachtest_util.sh +++ b/build/teamcity/util/roachtest_util.sh @@ -1,3 +1,8 @@ +# Copyright 2021 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + # Common logic used by the nightly roachtest scripts (Bazel and non-Bazel). # Set up Google credentials. Note that we need this for all clouds since we upload diff --git a/build/toolchains/toolchainbuild/crosstool-ng/buildtoolchains.sh b/build/toolchains/toolchainbuild/crosstool-ng/buildtoolchains.sh index 863a41537b4a..8baee3ead36d 100755 --- a/build/toolchains/toolchainbuild/crosstool-ng/buildtoolchains.sh +++ b/build/toolchains/toolchainbuild/crosstool-ng/buildtoolchains.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2022 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euxo pipefail this_dir="$(cd "$(dirname "${0}")"; pwd)" diff --git a/build/toolchains/toolchainbuild/crosstool-ng/perform-build.sh b/build/toolchains/toolchainbuild/crosstool-ng/perform-build.sh index 15d06cae02fc..a5f4de5c4a8b 100755 --- a/build/toolchains/toolchainbuild/crosstool-ng/perform-build.sh +++ b/build/toolchains/toolchainbuild/crosstool-ng/perform-build.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2022 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euxo pipefail apt-get update \ diff --git a/build/toolchains/toolchainbuild/osxcross/buildtoolchains.sh b/build/toolchains/toolchainbuild/osxcross/buildtoolchains.sh index 863a41537b4a..8baee3ead36d 100755 --- a/build/toolchains/toolchainbuild/osxcross/buildtoolchains.sh +++ b/build/toolchains/toolchainbuild/osxcross/buildtoolchains.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2022 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euxo pipefail this_dir="$(cd "$(dirname "${0}")"; pwd)" diff --git a/build/toolchains/toolchainbuild/osxcross/perform-build.sh b/build/toolchains/toolchainbuild/osxcross/perform-build.sh index f20d2729fcd6..63cb6fe0f006 100755 --- a/build/toolchains/toolchainbuild/osxcross/perform-build.sh +++ b/build/toolchains/toolchainbuild/osxcross/perform-build.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2022 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euxo pipefail apt-get update \ diff --git a/build/vendor_rebuild.sh b/build/vendor_rebuild.sh index cabe8595df98..8aa1e5cd2de3 100755 --- a/build/vendor_rebuild.sh +++ b/build/vendor_rebuild.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2020 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -Eeoux pipefail TMP_VENDOR_DIR=.vendor.tmp.$(date +"%Y-%m-%d.%H%M%S") diff --git a/build/verify-archive.sh b/build/verify-archive.sh index f1d3d8ec22b4..ee15937a0b19 100755 --- a/build/verify-archive.sh +++ b/build/verify-archive.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2017 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + # This script sanity-checks a source tarball, assuming a Debian-based Linux # environment with a Go version capable of building CockroachDB. Source tarballs # are expected to build, even after `make clean`, and install a functional diff --git a/build/werror.sh b/build/werror.sh index aaf39b32d3c0..1325cb2da4fc 100755 --- a/build/werror.sh +++ b/build/werror.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2017 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + # werror.sh promotes warnings produced by a command to fatal errors, just like # GCC's -Werror flag. # diff --git a/cloud/kubernetes/demo.sh b/cloud/kubernetes/demo.sh index 48c0e5986c4f..892cb3aff32a 100755 --- a/cloud/kubernetes/demo.sh +++ b/cloud/kubernetes/demo.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2016 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euo pipefail function sql() { diff --git a/cloud/kubernetes/multiregion/setup.py b/cloud/kubernetes/multiregion/setup.py index ef967463910e..69b64259e819 100755 --- a/cloud/kubernetes/multiregion/setup.py +++ b/cloud/kubernetes/multiregion/setup.py @@ -1,5 +1,11 @@ #!/usr/bin/env python +# Copyright 2018 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + import distutils.spawn import json import os diff --git a/cloud/kubernetes/multiregion/teardown.py b/cloud/kubernetes/multiregion/teardown.py index 5f55ae84d226..765ca3e9bbb3 100755 --- a/cloud/kubernetes/multiregion/teardown.py +++ b/cloud/kubernetes/multiregion/teardown.py @@ -1,5 +1,11 @@ #!/usr/bin/env python +# Copyright 2018 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + from shutil import rmtree from subprocess import call diff --git a/monitoring/demo/config/roach-init.sh b/monitoring/demo/config/roach-init.sh index 36b463fa4d59..4cd7a660fb70 100755 --- a/monitoring/demo/config/roach-init.sh +++ b/monitoring/demo/config/roach-init.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2021 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + # curl health endpoint while ! health=$(curl -s "http://roach1:8080/health?ready=1"); do sleep 0.1 diff --git a/pkg/Makefile b/pkg/Makefile index 540448933c10..1fae2fe0f7f7 100644 --- a/pkg/Makefile +++ b/pkg/Makefile @@ -1,3 +1,8 @@ +# Copyright 2016 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + # This is a convenience Makefile which defers all real work to # ../Makefile. The % rule is run for any target specified on the # command line. We use the builtin MAKECMDGOALS and MAKEFLAGS diff --git a/pkg/acceptance/compose/gss/build-push-gss.sh b/pkg/acceptance/compose/gss/build-push-gss.sh index 27c902b3c5b6..a62ec0096404 100755 --- a/pkg/acceptance/compose/gss/build-push-gss.sh +++ b/pkg/acceptance/compose/gss/build-push-gss.sh @@ -1,4 +1,10 @@ #!/bin/bash + +# Copyright 2022 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + set -xeuo pipefail TARGET=$1 diff --git a/pkg/acceptance/compose/gss/kdc/start.sh b/pkg/acceptance/compose/gss/kdc/start.sh index 9e451e776d56..34c8a4707991 100755 --- a/pkg/acceptance/compose/gss/kdc/start.sh +++ b/pkg/acceptance/compose/gss/kdc/start.sh @@ -1,5 +1,11 @@ #!/bin/sh +# Copyright 2018 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -e # The /keytab directory is volume mounted on both kdc and cockroach. kdc diff --git a/pkg/acceptance/compose/gss/psql/start.sh b/pkg/acceptance/compose/gss/psql/start.sh index bb647ae88d24..139df01bb9ae 100755 --- a/pkg/acceptance/compose/gss/psql/start.sh +++ b/pkg/acceptance/compose/gss/psql/start.sh @@ -1,5 +1,11 @@ #!/bin/sh +# Copyright 2018 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -e echo "Available certs:" diff --git a/pkg/acceptance/compose/gss/python/manage.py b/pkg/acceptance/compose/gss/python/manage.py index 852d2e5cbdeb..618e217f84ec 100755 --- a/pkg/acceptance/compose/gss/python/manage.py +++ b/pkg/acceptance/compose/gss/python/manage.py @@ -1,4 +1,10 @@ #!/usr/bin/env python + +# Copyright 2020 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + """Django's command-line utility for administrative tasks.""" import os import sys diff --git a/pkg/acceptance/compose/gss/python/python/__init__.py b/pkg/acceptance/compose/gss/python/python/__init__.py index e69de29bb2d1..0fe2f67498ac 100644 --- a/pkg/acceptance/compose/gss/python/python/__init__.py +++ b/pkg/acceptance/compose/gss/python/python/__init__.py @@ -0,0 +1,4 @@ +# Copyright 2022 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. diff --git a/pkg/acceptance/compose/gss/python/python/settings.py b/pkg/acceptance/compose/gss/python/python/settings.py index 2d48e784b958..2edfef38a173 100644 --- a/pkg/acceptance/compose/gss/python/python/settings.py +++ b/pkg/acceptance/compose/gss/python/python/settings.py @@ -1,3 +1,8 @@ +# Copyright 2020 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + """ Django settings for python project. diff --git a/pkg/acceptance/compose/gss/python/python/urls.py b/pkg/acceptance/compose/gss/python/python/urls.py index eefe6fb8eb55..882a51445478 100644 --- a/pkg/acceptance/compose/gss/python/python/urls.py +++ b/pkg/acceptance/compose/gss/python/python/urls.py @@ -1,3 +1,8 @@ +# Copyright 2020 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + """python URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: diff --git a/pkg/acceptance/compose/gss/python/python/wsgi.py b/pkg/acceptance/compose/gss/python/python/wsgi.py index 52ad9beed9bf..463f6338db6b 100644 --- a/pkg/acceptance/compose/gss/python/python/wsgi.py +++ b/pkg/acceptance/compose/gss/python/python/wsgi.py @@ -1,3 +1,8 @@ +# Copyright 2020 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + """ WSGI config for python project. diff --git a/pkg/acceptance/compose/gss/python/start.sh b/pkg/acceptance/compose/gss/python/start.sh index 6bd66984382d..a7bdaf111185 100755 --- a/pkg/acceptance/compose/gss/python/start.sh +++ b/pkg/acceptance/compose/gss/python/start.sh @@ -1,5 +1,11 @@ #!/bin/bash +# Copyright 2020 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -e echo "Available certs:" diff --git a/pkg/acceptance/run.sh b/pkg/acceptance/run.sh index 8377ca093b9d..c757e8bbf710 100755 --- a/pkg/acceptance/run.sh +++ b/pkg/acceptance/run.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2016 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euxo pipefail "$(dirname "${0}")"/prepare.sh diff --git a/pkg/acceptance/testdata/c/Makefile b/pkg/acceptance/testdata/c/Makefile index 3dcb6e8fb9f3..ab1a7e599265 100644 --- a/pkg/acceptance/testdata/c/Makefile +++ b/pkg/acceptance/testdata/c/Makefile @@ -1,3 +1,8 @@ +# Copyright 2018 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + CC += -std=c99 CPPFLAGS += -I/usr/include/postgresql LDLIBS += -lpq -lpqtypes diff --git a/pkg/acceptance/testdata/psql/test-psql-notls.sh b/pkg/acceptance/testdata/psql/test-psql-notls.sh index 27de409f2531..1d7a655e0c7e 100755 --- a/pkg/acceptance/testdata/psql/test-psql-notls.sh +++ b/pkg/acceptance/testdata/psql/test-psql-notls.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2020 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + CERTS_DIR=${CERTS_DIR:-/certs} crdb=$1 trap "set -x; cat /tmp/server_pid | xargs kill -9 || true" EXIT HUP diff --git a/pkg/acceptance/testdata/psql/test-psql-unix.sh b/pkg/acceptance/testdata/psql/test-psql-unix.sh index 54937e440af4..006f472c1785 100755 --- a/pkg/acceptance/testdata/psql/test-psql-unix.sh +++ b/pkg/acceptance/testdata/psql/test-psql-unix.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2020 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + CERTS_DIR=${CERTS_DIR:-/certs} crdb=$1 trap "set -x; cat /tmp/server_pid | xargs kill -9 || true" EXIT HUP diff --git a/pkg/acceptance/testdata/psql/test-psql.sh b/pkg/acceptance/testdata/psql/test-psql.sh index 6581f0129611..9782ded04ea2 100755 --- a/pkg/acceptance/testdata/psql/test-psql.sh +++ b/pkg/acceptance/testdata/psql/test-psql.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2018 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euo pipefail # Check that psql works in the first place. diff --git a/pkg/acceptance/testdata/python/test.py b/pkg/acceptance/testdata/python/test.py index dbc6d67f9dfb..bed8d99ffc6e 100644 --- a/pkg/acceptance/testdata/python/test.py +++ b/pkg/acceptance/testdata/python/test.py @@ -1,3 +1,8 @@ +# Copyright 2018 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + import decimal import sys import psycopg2 diff --git a/pkg/ccl/sqlproxyccl/run_proxy_direct_crdb.sh b/pkg/ccl/sqlproxyccl/run_proxy_direct_crdb.sh index 197331bea07e..b23eea525955 100755 --- a/pkg/ccl/sqlproxyccl/run_proxy_direct_crdb.sh +++ b/pkg/ccl/sqlproxyccl/run_proxy_direct_crdb.sh @@ -1,4 +1,10 @@ #!/bin/bash + +# Copyright 2021 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + set -euo pipefail # This script sets up an sql proxy, test directory server and a host server to help with end to end testing. diff --git a/pkg/ccl/sqlproxyccl/run_proxy_indirect_crdb.sh b/pkg/ccl/sqlproxyccl/run_proxy_indirect_crdb.sh index b6fbf61981e2..96f4ea16566c 100755 --- a/pkg/ccl/sqlproxyccl/run_proxy_indirect_crdb.sh +++ b/pkg/ccl/sqlproxyccl/run_proxy_indirect_crdb.sh @@ -1,4 +1,10 @@ #!/bin/bash + +# Copyright 2021 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + set -euo pipefail # This script sets up an sql proxy, test directory server and a host server to help with end to end testing. diff --git a/pkg/ccl/sqlproxyccl/run_tenant.sh b/pkg/ccl/sqlproxyccl/run_tenant.sh index dffa33376eb2..cc29b5f5a023 100755 --- a/pkg/ccl/sqlproxyccl/run_tenant.sh +++ b/pkg/ccl/sqlproxyccl/run_tenant.sh @@ -1,4 +1,10 @@ #!/bin/bash + +# Copyright 2021 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + set -euo pipefail # This script is used by run_proxy_indirect_crdb.sh to start a new tenant sql process. It can be customized to do diff --git a/pkg/cli/interactive_tests/netcat.py b/pkg/cli/interactive_tests/netcat.py index e44d594aac46..7e97e9d51076 100644 --- a/pkg/cli/interactive_tests/netcat.py +++ b/pkg/cli/interactive_tests/netcat.py @@ -1,3 +1,8 @@ +# Copyright 2018 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + import socket import sys diff --git a/pkg/cli/interactive_tests/test_auth_cookie.py b/pkg/cli/interactive_tests/test_auth_cookie.py index 6cf62b3d63a2..19833feec3a5 100644 --- a/pkg/cli/interactive_tests/test_auth_cookie.py +++ b/pkg/cli/interactive_tests/test_auth_cookie.py @@ -1,3 +1,8 @@ +# Copyright 2020 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + import urllib2 import ssl import sys diff --git a/pkg/cli/interactive_tests/unzip.py b/pkg/cli/interactive_tests/unzip.py index e2fdc586627c..09286ac4451d 100644 --- a/pkg/cli/interactive_tests/unzip.py +++ b/pkg/cli/interactive_tests/unzip.py @@ -1,3 +1,8 @@ +# Copyright 2022 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + import zipfile import sys diff --git a/pkg/cmd/drt/monitoring/prometheus/generate_config.sh b/pkg/cmd/drt/monitoring/prometheus/generate_config.sh index f9ed1a14dad5..a4ed9c0dfb93 100755 --- a/pkg/cmd/drt/monitoring/prometheus/generate_config.sh +++ b/pkg/cmd/drt/monitoring/prometheus/generate_config.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2024 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + # The prometheus config is generated based on these constants PROJECT="cockroach-drt" WORKLOAD_PORT_RANGE=(2112 2120) diff --git a/pkg/cmd/drt/scripts/cct_232_setup.sh b/pkg/cmd/drt/scripts/cct_232_setup.sh index 8bfb4474021e..cdea0670bd6b 100644 --- a/pkg/cmd/drt/scripts/cct_232_setup.sh +++ b/pkg/cmd/drt/scripts/cct_232_setup.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2024 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -eux CLUSTER=cct-232 diff --git a/pkg/cmd/drt/scripts/cct_tpcc_drop.sh b/pkg/cmd/drt/scripts/cct_tpcc_drop.sh index 3c96295beed0..5871f3de5192 100755 --- a/pkg/cmd/drt/scripts/cct_tpcc_drop.sh +++ b/pkg/cmd/drt/scripts/cct_tpcc_drop.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2024 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + CLUSTER_NAME=cct-232 PG_URL_N1=$(./roachprod pgurl $CLUSTER_NAME:1 --secure --cluster=application --external | sed s/\'//g) PGURLS=$(./roachprod pgurl cct-232 --external --secure --cluster application | sed s/\'//g) diff --git a/pkg/cmd/drt/scripts/chaos_test.sh b/pkg/cmd/drt/scripts/chaos_test.sh index 573c5313c789..0e41594cb60f 100755 --- a/pkg/cmd/drt/scripts/chaos_test.sh +++ b/pkg/cmd/drt/scripts/chaos_test.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2024 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -u set -o pipefail diff --git a/pkg/cmd/drt/scripts/grafanaAnnotate.sh b/pkg/cmd/drt/scripts/grafanaAnnotate.sh index c83741b3c259..529600f9e72c 100644 --- a/pkg/cmd/drt/scripts/grafanaAnnotate.sh +++ b/pkg/cmd/drt/scripts/grafanaAnnotate.sh @@ -1,4 +1,10 @@ #!/usr/bin/env bash + +# Copyright 2024 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + set -o errexit set -x diff --git a/pkg/cmd/drt/scripts/kv_run.sh b/pkg/cmd/drt/scripts/kv_run.sh index c4322355dec7..d5a8568f8add 100755 --- a/pkg/cmd/drt/scripts/kv_run.sh +++ b/pkg/cmd/drt/scripts/kv_run.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2024 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -o pipefail PGURLS=$(./roachprod pgurl cct-232 --external --secure --cluster application | sed s/\'//g) diff --git a/pkg/cmd/drt/scripts/roachtest_operations_run.sh b/pkg/cmd/drt/scripts/roachtest_operations_run.sh index a2ba9a9e6e9c..cd9458d3ba0f 100755 --- a/pkg/cmd/drt/scripts/roachtest_operations_run.sh +++ b/pkg/cmd/drt/scripts/roachtest_operations_run.sh @@ -1,5 +1,11 @@ #! /bin/bash +# Copyright 2024 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + cd ~ while true; do diff --git a/pkg/cmd/drt/scripts/schemachange_run.sh b/pkg/cmd/drt/scripts/schemachange_run.sh index aed955ef6463..4c6a7caefb0d 100644 --- a/pkg/cmd/drt/scripts/schemachange_run.sh +++ b/pkg/cmd/drt/scripts/schemachange_run.sh @@ -1,4 +1,10 @@ #!/usr/bin/env bash + +# Copyright 2024 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + set -o pipefail PGURLS=$(./roachprod pgurl cct-232 --external --secure --cluster application | sed s/\'//g) diff --git a/pkg/cmd/drt/scripts/start_all_workloads.sh b/pkg/cmd/drt/scripts/start_all_workloads.sh index 71989591b12c..6e6b6697d75b 100755 --- a/pkg/cmd/drt/scripts/start_all_workloads.sh +++ b/pkg/cmd/drt/scripts/start_all_workloads.sh @@ -1,3 +1,8 @@ +# Copyright 2024 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + sudo systemd-run --working-directory=/home/ubuntu --service-type exec --collect --unit cct_kv --uid 1000 --gid 1000 ./kv_run.sh sudo systemd-run --working-directory=/home/ubuntu --service-type exec --collect --unit cct_tpcc --uid 1000 --gid 1000 ./tpcc_run.sh sudo systemd-run --working-directory=/home/ubuntu --service-type exec --collect --unit cct_tpcc_drop --uid 1000 --gid 1000 ./cct_tpcc_drop.sh diff --git a/pkg/cmd/drt/scripts/stop_all_workloads.sh b/pkg/cmd/drt/scripts/stop_all_workloads.sh index aebc5064d4c2..7cd87f062826 100755 --- a/pkg/cmd/drt/scripts/stop_all_workloads.sh +++ b/pkg/cmd/drt/scripts/stop_all_workloads.sh @@ -1,3 +1,8 @@ +# Copyright 2024 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + sudo systemctl stop cct_schemachange sudo systemctl stop cct_kv sudo systemctl stop cct_tpcc diff --git a/pkg/cmd/drt/scripts/tpcc_run.sh b/pkg/cmd/drt/scripts/tpcc_run.sh index 8accae8dbf5f..f8ac92bd664e 100755 --- a/pkg/cmd/drt/scripts/tpcc_run.sh +++ b/pkg/cmd/drt/scripts/tpcc_run.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2024 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -o pipefail TPCC_DB=cct_tpcc diff --git a/pkg/cmd/label-merged-pr/label-merged-pr-wrapper.sh b/pkg/cmd/label-merged-pr/label-merged-pr-wrapper.sh index 85b7bcc161ef..34c4ccab81c1 100755 --- a/pkg/cmd/label-merged-pr/label-merged-pr-wrapper.sh +++ b/pkg/cmd/label-merged-pr/label-merged-pr-wrapper.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2021 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -uo pipefail this_dir=$(cd "$(dirname "$0")" && pwd) diff --git a/pkg/cmd/roachprod/docker/build.sh b/pkg/cmd/roachprod/docker/build.sh index d76c8d4a14c5..ca774b07cf19 100755 --- a/pkg/cmd/roachprod/docker/build.sh +++ b/pkg/cmd/roachprod/docker/build.sh @@ -1,4 +1,10 @@ #!/bin/bash + +# Copyright 2020 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + # This script is used to build the docker image. set -e diff --git a/pkg/cmd/roachprod/docker/entrypoint.sh b/pkg/cmd/roachprod/docker/entrypoint.sh index 634dbb07eea3..f42d473c5bd3 100755 --- a/pkg/cmd/roachprod/docker/entrypoint.sh +++ b/pkg/cmd/roachprod/docker/entrypoint.sh @@ -1,4 +1,10 @@ #!/bin/bash + +# Copyright 2020 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + set -e # Unpack all of the keys, configs, etc. and then run roachprod diff --git a/pkg/cmd/roachprod/docker/push.sh b/pkg/cmd/roachprod/docker/push.sh index d83ba4da0f5c..fee08f50d72a 100755 --- a/pkg/cmd/roachprod/docker/push.sh +++ b/pkg/cmd/roachprod/docker/push.sh @@ -1,4 +1,10 @@ #!/bin/bash + +# Copyright 2021 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + set -euo pipefail # root is the absolute path to the root directory of the repository. diff --git a/pkg/cmd/roachtest/roachstress.sh b/pkg/cmd/roachtest/roachstress.sh index e59cfefb162b..1c16f98fb06f 100755 --- a/pkg/cmd/roachtest/roachstress.sh +++ b/pkg/cmd/roachtest/roachstress.sh @@ -1,4 +1,10 @@ #!/usr/bin/env bash + +# Copyright 2021 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + set -euo pipefail # This script is an opinionated helper around building binaries and artifacts. diff --git a/pkg/compose/run.sh b/pkg/compose/run.sh index 23e6f5aea345..1c94008ff45f 100755 --- a/pkg/compose/run.sh +++ b/pkg/compose/run.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2020 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euxo pipefail "$(dirname "${0}")"/prepare.sh diff --git a/pkg/geo/geomfn/bench.sh b/pkg/geo/geomfn/bench.sh index ae28727131ac..c1bf87c9bf8f 100755 --- a/pkg/geo/geomfn/bench.sh +++ b/pkg/geo/geomfn/bench.sh @@ -1,4 +1,10 @@ #!/bin/sh + +# Copyright 2021 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + set -eux if [ $# -eq 0 ] || [ "$1" == "" ]; then diff --git a/pkg/internal/sqlsmith/Makefile b/pkg/internal/sqlsmith/Makefile index 9394b02deaf2..15b4ac8b2bc5 100644 --- a/pkg/internal/sqlsmith/Makefile +++ b/pkg/internal/sqlsmith/Makefile @@ -1,3 +1,8 @@ +# Copyright 2019 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + # Use FORCE here because we want to regenerate when this makefile changes. gen-sampler-gen.go: FORCE genny -in=sampler.tmpl -out=sampler.go gen "element=statement,tableExpr,selectStatement,scalarExpr" diff --git a/pkg/roachprod/install/scripts/download.sh b/pkg/roachprod/install/scripts/download.sh index 4d067461ce30..8070972f827b 100644 --- a/pkg/roachprod/install/scripts/download.sh +++ b/pkg/roachprod/install/scripts/download.sh @@ -1,14 +1,10 @@ #!/usr/bin/env bash -# + # Copyright 2021 The Cockroach Authors. # -# Use of this software is governed by the Business Source License -# included in the file licenses/BSL.txt. -# -# As of the Change Date specified in that file, in accordance with -# the Business Source License, use of this software will be governed -# by the Apache License, Version 2.0, included in the file -# licenses/APL.txt. +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + set -euo pipefail # These values are substituted in the Go code that uses this. SOURCE_URL="%s" diff --git a/pkg/roachprod/install/scripts/open_ports.sh b/pkg/roachprod/install/scripts/open_ports.sh index daba385b072c..faa572eda702 100644 --- a/pkg/roachprod/install/scripts/open_ports.sh +++ b/pkg/roachprod/install/scripts/open_ports.sh @@ -1,14 +1,10 @@ #!/usr/bin/env bash -# + # Copyright 2023 The Cockroach Authors. # -# Use of this software is governed by the Business Source License -# included in the file licenses/BSL.txt. -# -# As of the Change Date specified in that file, in accordance with -# the Business Source License, use of this software will be governed -# by the Apache License, Version 2.0, included in the file -# licenses/APL.txt. +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + set -euo pipefail start_port=#{.StartPort#} diff --git a/pkg/roachprod/install/scripts/start.sh b/pkg/roachprod/install/scripts/start.sh index 017cee3674a1..2b317b9a7097 100755 --- a/pkg/roachprod/install/scripts/start.sh +++ b/pkg/roachprod/install/scripts/start.sh @@ -1,14 +1,10 @@ #!/usr/bin/env bash -# + # Copyright 2021 The Cockroach Authors. # -# Use of this software is governed by the Business Source License -# included in the file licenses/BSL.txt. -# -# As of the Change Date specified in that file, in accordance with -# the Business Source License, use of this software will be governed -# by the Apache License, Version 2.0, included in the file -# licenses/APL.txt. +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + set -euo pipefail # These values are substituted in the Go code that uses this. We use custom diff --git a/pkg/roachprod/install/scripts/start_test.sh b/pkg/roachprod/install/scripts/start_test.sh index 524f62879b9b..ae482e228fdb 100755 --- a/pkg/roachprod/install/scripts/start_test.sh +++ b/pkg/roachprod/install/scripts/start_test.sh @@ -1,14 +1,10 @@ #!/usr/bin/env bash -# + # Copyright 2021 The Cockroach Authors. # -# Use of this software is governed by the Business Source License -# included in the file licenses/BSL.txt. -# -# As of the Change Date specified in that file, in accordance with -# the Business Source License, use of this software will be governed -# by the Apache License, Version 2.0, included in the file -# licenses/APL.txt. +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + set -euo pipefail rm bin/roachprod || true diff --git a/pkg/roachprod/install/testdata/start/start.txt b/pkg/roachprod/install/testdata/start/start.txt index 84c2e1daa520..60744a520a01 100644 --- a/pkg/roachprod/install/testdata/start/start.txt +++ b/pkg/roachprod/install/testdata/start/start.txt @@ -2,16 +2,12 @@ data1 ---- ---- #!/usr/bin/env bash -# + # Copyright 2021 The Cockroach Authors. # -# Use of this software is governed by the Business Source License -# included in the file licenses/BSL.txt. -# -# As of the Change Date specified in that file, in accordance with -# the Business Source License, use of this software will be governed -# by the Apache License, Version 2.0, included in the file -# licenses/APL.txt. +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + set -euo pipefail # These values are substituted in the Go code that uses this. We use custom diff --git a/pkg/security/securitytest/test_certs/regenerate.sh b/pkg/security/securitytest/test_certs/regenerate.sh index 1d6fc05cbd31..4afdc7313a50 100755 --- a/pkg/security/securitytest/test_certs/regenerate.sh +++ b/pkg/security/securitytest/test_certs/regenerate.sh @@ -1,4 +1,10 @@ #!/bin/sh + +# Copyright 2020 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + set -eux dir_n="pkg/security/securitytest/test_certs" diff --git a/pkg/sql/lexbase/sql-gen.sh b/pkg/sql/lexbase/sql-gen.sh index b242ab6110c5..3d5f2dee0045 100755 --- a/pkg/sql/lexbase/sql-gen.sh +++ b/pkg/sql/lexbase/sql-gen.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2022 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + # This is used through bazel when generating sql.go and plpgsql.go. # Look at BUILD.bazel in pkg/sql/parser or pkg/plpgsql/parser for # usage. diff --git a/pkg/sql/opt/testutils/opttester/testfixtures/rewrite_stats.sh b/pkg/sql/opt/testutils/opttester/testfixtures/rewrite_stats.sh index 83ed5994760b..3f793c5ea22b 100755 --- a/pkg/sql/opt/testutils/opttester/testfixtures/rewrite_stats.sh +++ b/pkg/sql/opt/testutils/opttester/testfixtures/rewrite_stats.sh @@ -1,4 +1,10 @@ #!/bin/bash + +# Copyright 2021 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + set -euo pipefail if [[ $# < 3 || $# > 4 ]]; then diff --git a/pkg/sql/parser/help_gen_test.sh b/pkg/sql/parser/help_gen_test.sh index 702efbc90ac7..2a58fac75a92 100755 --- a/pkg/sql/parser/help_gen_test.sh +++ b/pkg/sql/parser/help_gen_test.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2017 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + # Trigger this script by running `make generate PKG=./pkg/sql/parser` from the # repository root to ensure your PATH includes vendored binaries. diff --git a/pkg/sql/pgwire/pgcode/generate.sh b/pkg/sql/pgwire/pgcode/generate.sh index 7006eb885297..6e24a3ee9192 100755 --- a/pkg/sql/pgwire/pgcode/generate.sh +++ b/pkg/sql/pgwire/pgcode/generate.sh @@ -1,5 +1,11 @@ #!/bin/sh +# Copyright 2019 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -eu # This script will generate a list of error codes. It will not perform diff --git a/pkg/sql/pgwire/pgcode/generate_names.sh b/pkg/sql/pgwire/pgcode/generate_names.sh index 1d4b316941b4..d2ea06d4266b 100644 --- a/pkg/sql/pgwire/pgcode/generate_names.sh +++ b/pkg/sql/pgwire/pgcode/generate_names.sh @@ -1,5 +1,11 @@ #!/bin/sh +# Copyright 2023 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -eu # This script will generate a mapping from condition names to error codes. diff --git a/pkg/sql/sem/cast/cast_map_gen.sh b/pkg/sql/sem/cast/cast_map_gen.sh index 99597d170e0d..a9feca5dec82 100755 --- a/pkg/sql/sem/cast/cast_map_gen.sh +++ b/pkg/sql/sem/cast/cast_map_gen.sh @@ -1,5 +1,11 @@ #!/bin/bash +# Copyright 2022 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + # casts_gen.sh generates castMap entries by reading from Postgres's pg_cast # table. To use this script, Postgres must be installed with the PostGIS # extension and already running. diff --git a/pkg/sql/sem/eval/cast_test/testdata/assignment_casts_gen.sh b/pkg/sql/sem/eval/cast_test/testdata/assignment_casts_gen.sh index 6282152b607c..f76b24658253 100755 --- a/pkg/sql/sem/eval/cast_test/testdata/assignment_casts_gen.sh +++ b/pkg/sql/sem/eval/cast_test/testdata/assignment_casts_gen.sh @@ -1,4 +1,10 @@ #!/usr/bin/env bash + +# Copyright 2022 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + set -euo pipefail # assignment_casts_gen.sh generates a CSV file of test cases for use by diff --git a/pkg/sql/sem/eval/cast_test/testdata/explicit_casts_gen.sh b/pkg/sql/sem/eval/cast_test/testdata/explicit_casts_gen.sh index 5d6b49dd60c6..05327578302d 100755 --- a/pkg/sql/sem/eval/cast_test/testdata/explicit_casts_gen.sh +++ b/pkg/sql/sem/eval/cast_test/testdata/explicit_casts_gen.sh @@ -1,4 +1,10 @@ #!/usr/bin/env bash + +# Copyright 2022 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + set -euo pipefail # explicit_casts_gen.sh generates a CSV file of test cases for use by diff --git a/pkg/testutils/lint/lint_test.go b/pkg/testutils/lint/lint_test.go index 5f95677e9197..a3dad7ffc9d1 100644 --- a/pkg/testutils/lint/lint_test.go +++ b/pkg/testutils/lint/lint_test.go @@ -43,6 +43,12 @@ var ( // Use of this software is governed by the CockroachDB Software License // included in the /LICENSE file. `) + cslHeaderHash = regexp.MustCompile(`# Copyright 20\d\d The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. +`) + // etcdApacheHeader is the header of pkg/raft at the time it was imported. etcdApacheHeader = regexp.MustCompile(`// Copyright 20\d\d The etcd Authors // @@ -253,7 +259,7 @@ func TestLint(t *testing.T) { } }) - t.Run("TestCopyrightHeaders", func(t *testing.T) { + t.Run("TestCopyrightHeadersWithSlash", func(t *testing.T) { t.Parallel() // These extensions identify source files that should have copyright headers. @@ -319,6 +325,53 @@ func TestLint(t *testing.T) { } }) + t.Run("TestCopyrightHeadersWithHash", func(t *testing.T) { + t.Parallel() + + // These extensions identify source files that should have copyright headers. + extensions := []string{"GNUmakefile", "Makefile", "*.py", "*.sh"} + + cmd, stderr, filter, err := dirCmd(crdbDir, "git", append([]string{"ls-files"}, extensions...)...) + if err != nil { + t.Fatal(err) + } + + if err := cmd.Start(); err != nil { + t.Fatal(err) + } + + if err := stream.ForEach(stream.Sequence(filter, + stream.GrepNot(`^c-deps/.*`), + // These files are copied from raft upstream with its own license. + stream.GrepNot(`^raft/.*`), + ), func(filename string) { + file, err := os.Open(filepath.Join(crdbDir, filename)) + if err != nil { + t.Error(err) + return + } + defer file.Close() + data := make([]byte, 1024) + n, err := file.Read(data) + if err != nil { + t.Errorf("reading start of %s: %s", filename, err) + } + data = data[0:n] + + if cslHeaderHash.Find(data) == nil { + t.Errorf("did not find expected CSL license header in %s", filename) + } + }); err != nil { + t.Fatal(err) + } + + if err := cmd.Wait(); err != nil { + if out := stderr.String(); len(out) > 0 { + t.Fatalf("err=%s, stderr=%s", err, out) + } + } + }) + // TestRaftCopyrightHeaders checks that all the source files in pkg/raft have // the original copyright headers from etcd-io/raft, and the modified files // have Cockroach attribution. diff --git a/pkg/ui/Makefile b/pkg/ui/Makefile index ee5e2dd1bf92..4641a56710b4 100644 --- a/pkg/ui/Makefile +++ b/pkg/ui/Makefile @@ -1,16 +1,7 @@ # Copyright 2017 The Cockroach Authors. # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or -# implied. See the License for the specific language governing -# permissions and limitations under the License. +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. # This is a convenience Makefile which defers all real work to the top-level # Makefile. The % rule is run for any target specified on the command line. We diff --git a/pkg/ui/workspaces/e2e-tests/build/compose-entrypoint.sh b/pkg/ui/workspaces/e2e-tests/build/compose-entrypoint.sh index ad009f45b92a..8b32aa10bcd9 100755 --- a/pkg/ui/workspaces/e2e-tests/build/compose-entrypoint.sh +++ b/pkg/ui/workspaces/e2e-tests/build/compose-entrypoint.sh @@ -1,4 +1,10 @@ #!/usr/bin/env bash + +# Copyright 2022 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + set -uemo pipefail set -x diff --git a/pkg/ui/workspaces/e2e-tests/build/start-crdb-then.sh b/pkg/ui/workspaces/e2e-tests/build/start-crdb-then.sh index bd6a547d50ca..641cc329babd 100755 --- a/pkg/ui/workspaces/e2e-tests/build/start-crdb-then.sh +++ b/pkg/ui/workspaces/e2e-tests/build/start-crdb-then.sh @@ -1,4 +1,10 @@ #!/usr/bin/env bash + +# Copyright 2022 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + set -ueo pipefail # Compute the absolute path to the root of the cockroach repo. diff --git a/pkg/util/fsm/gen/reports.sh b/pkg/util/fsm/gen/reports.sh index 2f0fdb48e646..5ad60c4da53e 100755 --- a/pkg/util/fsm/gen/reports.sh +++ b/pkg/util/fsm/gen/reports.sh @@ -1,4 +1,10 @@ #!/usr/bin/env bash + +# Copyright 2017 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + # # reports.sh generates reports about the finite state machine. # diff --git a/pkg/util/interval/generic/gen.sh b/pkg/util/interval/generic/gen.sh index bc609e09ebc2..8c3ad8e489d6 100755 --- a/pkg/util/interval/generic/gen.sh +++ b/pkg/util/interval/generic/gen.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2020 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -eu -o pipefail if [ $# -ne 2 ]; then diff --git a/pkg/util/leaktest/add-leaktest.sh b/pkg/util/leaktest/add-leaktest.sh index dabff161eaad..bd65595566d1 100755 --- a/pkg/util/leaktest/add-leaktest.sh +++ b/pkg/util/leaktest/add-leaktest.sh @@ -1,4 +1,10 @@ #!/bin/sh + +# Copyright 2016 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + # # Add leaktest.AfterTest(t) to all tests in the given files. # In addition to running this script, add a main_test.go file similar diff --git a/pkg/util/leaktest/check-leaktest.sh b/pkg/util/leaktest/check-leaktest.sh index be3900059377..fb189688052d 100755 --- a/pkg/util/leaktest/check-leaktest.sh +++ b/pkg/util/leaktest/check-leaktest.sh @@ -1,5 +1,11 @@ #!/bin/sh +# Copyright 2016 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -e pkgs=$(git grep 'go:generate' | grep add-leaktest.sh | awk -F: '{print $1}' | xargs -n1 dirname) diff --git a/scripts/authors.sh b/scripts/authors.sh index 94ccf6d3fcc8..1308f02cc591 100755 --- a/scripts/authors.sh +++ b/scripts/authors.sh @@ -1,5 +1,11 @@ #! /bin/sh +# Copyright 2017 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + # This script produces the list of authors for a given source file, # listed in decreasing order of the number of commits by that author # that have touched the file. diff --git a/scripts/azworker.sh b/scripts/azworker.sh index 14a9c74ec120..5b4ec266df13 100755 --- a/scripts/azworker.sh +++ b/scripts/azworker.sh @@ -1,4 +1,10 @@ #!/usr/bin/env bash + +# Copyright 2017 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + # # Prerequisites: # - Cockroach Labs employees: ask an admin to create an Azure account for you. diff --git a/scripts/bump-pebble.sh b/scripts/bump-pebble.sh index 2005a8aa39e4..a37e179a23f3 100755 --- a/scripts/bump-pebble.sh +++ b/scripts/bump-pebble.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2021 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + # NOTE: After a new release has been cut, update this to the appropriate # Cockroach branch name (i.e. release-23.2, etc.), and corresponding Pebble # branch name (e.g. crl-release-23.2, etc.). Also update pebble nightly scripts diff --git a/scripts/check-pebble-dep.sh b/scripts/check-pebble-dep.sh index e53cacebe55a..f8cbccec1567 100755 --- a/scripts/check-pebble-dep.sh +++ b/scripts/check-pebble-dep.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2024 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euo pipefail #set -x diff --git a/scripts/deplicense.sh b/scripts/deplicense.sh index bd59d9be512b..f20d8e20598a 100755 --- a/scripts/deplicense.sh +++ b/scripts/deplicense.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2017 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euo pipefail # Output the license info for the current directory's dependencies. diff --git a/scripts/diff-example.sh b/scripts/diff-example.sh index 755c5f704b46..cda363393eae 100755 --- a/scripts/diff-example.sh +++ b/scripts/diff-example.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2017 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + # Diff a failed Go example [0] against its expected output. # # By default, when an example fails, Go prints "got:", followed by the diff --git a/scripts/gceworker.sh b/scripts/gceworker.sh index 4e1db4fcc792..db4c9165562c 100755 --- a/scripts/gceworker.sh +++ b/scripts/gceworker.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2016 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euo pipefail cd "$(dirname "${0}")/.." diff --git a/scripts/git-blame-stats.sh b/scripts/git-blame-stats.sh index 0a0475d2c967..16c77df62969 100755 --- a/scripts/git-blame-stats.sh +++ b/scripts/git-blame-stats.sh @@ -1,5 +1,11 @@ #!/bin/sh +# Copyright 2017 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + # This script produces the list of authors that are "git blame"d for lines in # .go files under the current directory. # diff --git a/scripts/localmetrics/import-csv.sh b/scripts/localmetrics/import-csv.sh index 9a22629dd3b7..b5b6f41b0672 100755 --- a/scripts/localmetrics/import-csv.sh +++ b/scripts/localmetrics/import-csv.sh @@ -1,5 +1,11 @@ #!/bin/sh +# Copyright 2020 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euo pipefail psql 'postgresql://postgres:postgres@127.0.0.1?sslmode=disable' \ diff --git a/scripts/log2html.sh b/scripts/log2html.sh index d02857f732bf..978dc03d080e 100755 --- a/scripts/log2html.sh +++ b/scripts/log2html.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2016 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + # Script that converts a log file to html, using cockroach-specific log syntax # highlighting. Requires vim to be installed. # diff --git a/scripts/ls-files.sh b/scripts/ls-files.sh index bb6d82beb3c0..bdda05ae6a21 100755 --- a/scripts/ls-files.sh +++ b/scripts/ls-files.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2017 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + # Recursively list all files in this Git checkout, including files in # submodules. diff --git a/scripts/pprof-loop.sh b/scripts/pprof-loop.sh index 221e56759e50..ec1356631508 100755 --- a/scripts/pprof-loop.sh +++ b/scripts/pprof-loop.sh @@ -1,4 +1,10 @@ #!/usr/bin/env bash + +# Copyright 2022 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + set -eu if [ "$#" -ne 1 ]; then diff --git a/scripts/pprof-post.sh b/scripts/pprof-post.sh index e70f850c759b..f396b4ad3fbe 100755 --- a/scripts/pprof-post.sh +++ b/scripts/pprof-post.sh @@ -1,4 +1,10 @@ #!/usr/bin/env bash + +# Copyright 2021 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + set -euo pipefail if ! which pprofme; then diff --git a/scripts/purge-terraform.sh b/scripts/purge-terraform.sh index 18c6f577171f..3856627741e0 100755 --- a/scripts/purge-terraform.sh +++ b/scripts/purge-terraform.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2017 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + # Destroy any Terraform resources found in tfstate files within the repository. set -euo pipefail diff --git a/scripts/release-notes.py b/scripts/release-notes.py index 343850a9a39d..c41393264eb5 100755 --- a/scripts/release-notes.py +++ b/scripts/release-notes.py @@ -1,4 +1,10 @@ #! /usr/bin/env python3 + +# Copyright 2018 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + # # Show a compact release note summary of a range of Git commits. # diff --git a/scripts/release-notes/Makefile b/scripts/release-notes/Makefile index ba20e19d2566..b80596b0992e 100644 --- a/scripts/release-notes/Makefile +++ b/scripts/release-notes/Makefile @@ -1,3 +1,8 @@ +# Copyright 2018 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + TESTS := $(wildcard test*.sh) BASH ?= /usr/bin/env bash PYTHON ?= python diff --git a/scripts/release-notes/common.sh b/scripts/release-notes/common.sh index b2470a37e80a..cf6bfc5d8102 100644 --- a/scripts/release-notes/common.sh +++ b/scripts/release-notes/common.sh @@ -1,5 +1,11 @@ #!/bin/sh +# Copyright 2018 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + # Initialize a test. function test_init() { PYTHON=${PYTHON:-python} diff --git a/scripts/release-notes/test1.sh b/scripts/release-notes/test1.sh index 32148f74f242..b6f44f598dcf 100644 --- a/scripts/release-notes/test1.sh +++ b/scripts/release-notes/test1.sh @@ -1,4 +1,10 @@ #!/bin/sh + +# Copyright 2018 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + set -eux . common.sh diff --git a/scripts/release-notes/test2.sh b/scripts/release-notes/test2.sh index 27c9312c1f5b..57fccfa5c52b 100644 --- a/scripts/release-notes/test2.sh +++ b/scripts/release-notes/test2.sh @@ -1,4 +1,10 @@ #!/bin/sh + +# Copyright 2018 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + set -eux . common.sh diff --git a/scripts/release-notes/test3.sh b/scripts/release-notes/test3.sh index ab41cc63b230..4682a214381c 100644 --- a/scripts/release-notes/test3.sh +++ b/scripts/release-notes/test3.sh @@ -1,4 +1,10 @@ #!/bin/sh + +# Copyright 2018 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + set -eux . common.sh diff --git a/scripts/release-notes/test4.sh b/scripts/release-notes/test4.sh index 9bb322b042ab..342c5439821b 100644 --- a/scripts/release-notes/test4.sh +++ b/scripts/release-notes/test4.sh @@ -1,4 +1,10 @@ #!/bin/sh + +# Copyright 2018 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + set -eux . common.sh diff --git a/scripts/release-notes/test5.sh b/scripts/release-notes/test5.sh index b0c24a7b75f1..f9a1dedc85f6 100644 --- a/scripts/release-notes/test5.sh +++ b/scripts/release-notes/test5.sh @@ -1,4 +1,10 @@ #!/bin/sh + +# Copyright 2018 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + set -eux . common.sh diff --git a/scripts/release-notes/test6.sh b/scripts/release-notes/test6.sh index b2f42df4c070..65b8e1badda4 100644 --- a/scripts/release-notes/test6.sh +++ b/scripts/release-notes/test6.sh @@ -1,4 +1,10 @@ #!/bin/sh + +# Copyright 2018 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + set -eux . common.sh diff --git a/scripts/release-notes/test7.sh b/scripts/release-notes/test7.sh index 4bd90be75aa0..189b76a6b7d9 100644 --- a/scripts/release-notes/test7.sh +++ b/scripts/release-notes/test7.sh @@ -1,4 +1,10 @@ #!/bin/sh + +# Copyright 2018 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + set -eux . common.sh diff --git a/scripts/release-notes/test8.sh b/scripts/release-notes/test8.sh index d33d3815baad..2d26f8c8f6bb 100644 --- a/scripts/release-notes/test8.sh +++ b/scripts/release-notes/test8.sh @@ -1,4 +1,10 @@ #!/bin/sh + +# Copyright 2019 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + set -eux . common.sh diff --git a/scripts/roachprod-get-latest.sh b/scripts/roachprod-get-latest.sh index a8a69c4933f8..5dd2a14ae9b6 100755 --- a/scripts/roachprod-get-latest.sh +++ b/scripts/roachprod-get-latest.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2023 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + # Downloads the _latest_ roachprod binary (on master) from GCS to the specified directory # or the current directory if none is specified. # Assumes that you have gsutil installed and authenticated; see [1] for those details. diff --git a/scripts/roachtest-gobench.sh b/scripts/roachtest-gobench.sh index 29ad5a887d86..a0df2ea54148 100755 --- a/scripts/roachtest-gobench.sh +++ b/scripts/roachtest-gobench.sh @@ -1,4 +1,10 @@ #!/bin/bash + +# Copyright 2021 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + # # Converts roachtest benchmark results (for kv or ycsb workloads) into Go # benchmark format, suitable for use with e.g. benchstat. diff --git a/scripts/rt-ts-admin.sh b/scripts/rt-ts-admin.sh index 06a7a1425c3b..7a42d532c698 100755 --- a/scripts/rt-ts-admin.sh +++ b/scripts/rt-ts-admin.sh @@ -1,4 +1,10 @@ #!/bin/bash + +# Copyright 2022 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + # if you have a roachtest that save tsdump files you can run this from the artifacts dir and it # will try to start a admin for each tsdump-gob-run.sh it finds. It prints out the adminurl. # Requirements: diff --git a/scripts/tag-custom-build.sh b/scripts/tag-custom-build.sh index a3c30017f391..f7756d1e28a9 100755 --- a/scripts/tag-custom-build.sh +++ b/scripts/tag-custom-build.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2020 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + # This script makes it easy to make custom builds. # # It creates a tag for a SHA that triggers a build in the Make and Publish diff --git a/scripts/todo_diff.sh b/scripts/todo_diff.sh index e4d9d4a7f4df..7d59bc8bacba 100755 --- a/scripts/todo_diff.sh +++ b/scripts/todo_diff.sh @@ -1,5 +1,11 @@ #!/bin/bash +# Copyright 2021 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + # The command runs git diff between two refspecs to find all instances of TODO # added between them. diff --git a/scripts/winworker.sh b/scripts/winworker.sh index bd4d343893dd..a0abbc13def0 100755 --- a/scripts/winworker.sh +++ b/scripts/winworker.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Copyright 2018 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + set -euo pipefail cd "$(dirname "${0}")/.." diff --git a/tools/claim_output_base.sh b/tools/claim_output_base.sh index d9ea569b7e48..653c8398bef6 100644 --- a/tools/claim_output_base.sh +++ b/tools/claim_output_base.sh @@ -1,5 +1,11 @@ #!/bin/bash +# Copyright 2023 The Cockroach Authors. +# +# Use of this software is governed by the CockroachDB Software License +# included in the /LICENSE file. + + # Typically only one bazel server can be running in one output_base at # a time, which means if we always use the default base, only one bazel server # can be running for a given workspace at a time. Instead, we'll keep a few