Skip to content

Commit

Permalink
Merge remote-tracking branch 'pingcap/master' into telemetry-interval…
Browse files Browse the repository at this point in the history
…-partitioning
  • Loading branch information
mjonss committed Sep 8, 2022
2 parents fec2b03 + a1f61f0 commit 9fb3ce6
Show file tree
Hide file tree
Showing 834 changed files with 36,324 additions and 18,209 deletions.
23 changes: 16 additions & 7 deletions .bazelrc
@@ -1,18 +1,27 @@
startup --host_jvm_args=-Xmx8g
startup --unlimit_coredumps

run:ci --color=yes

build --announce_rc
build --java_language_version=17
build --java_runtime_version=17
build --tool_java_language_version=17
build --tool_java_runtime_version=17

run --color=yes
build:release --workspace_status_command=./build/print-workspace-status.sh --stamp
build:release --config=ci
build --incompatible_strict_action_env --incompatible_enable_cc_toolchain_resolution
build:ci --color=yes
build:ci --experimental_remote_cache_compression
test:ci --verbose_failures
test:ci --test_env=GO_TEST_WRAP_TESTV=1 --test_verbose_timeout_warnings
test:ci --test_env=TZ=Asia/Shanghai --test_output=errors --experimental_ui_max_stdouterr_bytes=104857600
build:release --workspace_status_command=./build/print-workspace-status.sh --stamp
build:release --config=ci
build:race --config=ci
build:race --@io_bazel_rules_go//go/config:race --test_env=GORACE=halt_on_error=1 --test_sharding_strategy=disabled

test --test_env=TZ=Asia/Shanghai
test --test_output=errors --test_summary=testcase
test:ci --color=yes
test:ci --verbose_failures --test_verbose_timeout_warnings
test:ci --test_env=GO_TEST_WRAP_TESTV=1
test:ci --experimental_ui_max_stdouterr_bytes=104857600
test:race --test_timeout=1200,6000,18000,72000

try-import /data/bazel
3 changes: 0 additions & 3 deletions .cilinter.yaml
Expand Up @@ -3,9 +3,6 @@ run:
linters:
disable-all: true
enable:
- varcheck
- structcheck
- deadcode
- rowserrcheck
- prealloc

Expand Down
42 changes: 0 additions & 42 deletions .github/labeler.yml

This file was deleted.

70 changes: 35 additions & 35 deletions .github/licenserc.yml
Expand Up @@ -3,39 +3,39 @@ header:
spdx-id: Apache-2.0
copyright-owner: PingCAP, Inc.
paths-ignore:
- 'docs/'
- 'br/'
- '.gitignore'
- '.gitattributes'
- '.cilinter.yaml'
- '.golangci.yml'
- '.golangci_br.yml'
- 'LICENSES/'
- '**/BUILD.bazel'
- 'WORKSPACE'
- '.bazelrc'
- '**/*.key'
- '**/*.md'
- '**/*.json'
- '**/*.toml'
- '**/*.pem'
- '**/*.crt'
- '**/*.test'
- '**/*.result'
- '**/*.example'
- '**/*.patch'
- '**/*.bzl'
- '.codecov.yml'
- 'Jenkinsfile'
- '.editorconfig'
- 'hooks/pre-commit'
- '**/go.mod'
- '**/go.sum'
- 'LICENSE'
- '.github/'
- 'parser/'
- 'dumpling/'
- 'tidb-binlog/driver/example'
- 'tidb-binlog/proto/go-binlog/secondary_binlog.pb.go'
- '**/*.sql'
- "docs/"
- "br/"
- ".gitignore"
- ".gitattributes"
- ".cilinter.yaml"
- ".golangci.yml"
- ".golangci_br.yml"
- "LICENSES/"
- "**/BUILD.bazel"
- "WORKSPACE"
- ".bazelrc"
- "**/*.key"
- "**/*.md"
- "**/*.json"
- "**/*.toml"
- "**/*.pem"
- "**/*.crt"
- "**/*.test"
- "**/*.result"
- "**/*.example"
- "**/*.patch"
- "**/*.bzl"
- ".codecov.yml"
- "Jenkinsfile"
- ".editorconfig"
- "hooks/pre-commit"
- "**/go.mod"
- "**/go.sum"
- "LICENSE"
- ".github/"
- "parser/"
- "dumpling/"
- "tidb-binlog/driver/example"
- "tidb-binlog/proto/go-binlog/secondary_binlog.pb.go"
- "**/*.sql"
comment: on-failure
81 changes: 40 additions & 41 deletions .github/workflows/integration-test-br-compatibility.yml
Expand Up @@ -2,19 +2,19 @@ name: BR / Compatibility Test

on:
push:
# merged git action
# merged git action
branches:
- master
- 'release-[0-9].[0-9]*'
- "release-[0-9].[0-9]*"
paths:
- 'br/**'
- '!**.html'
- '!**.md'
- '!CNAME'
- '!LICENSE'
- '!br/docs/**'
- '!br/tests/**'
- '!br/docker/**'
- "br/**"
- "!**.html"
- "!**.md"
- "!CNAME"
- "!LICENSE"
- "!br/docs/**"
- "!br/tests/**"
- "!br/docker/**"
# disable pull request only keep the merge action since it is very costly to run those tests
# pull_request:

Expand All @@ -27,34 +27,33 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 25
steps:

- uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.18

- name: Generate compatibility test backup data
timeout-minutes: 15
run: sh br/compatibility/prepare_backup.sh

- name: Start server
run: |
TAG=nightly PORT_SUFFIX=1 docker-compose -f br/compatibility/backup_cluster.yaml rm -s -v
TAG=nightly PORT_SUFFIX=1 docker-compose -f br/compatibility/backup_cluster.yaml build
TAG=nightly PORT_SUFFIX=1 docker-compose -f br/compatibility/backup_cluster.yaml up --remove-orphans -d
TAG=nightly PORT_SUFFIX=1 docker-compose -f br/compatibility/backup_cluster.yaml exec -T control go mod tidy
TAG=nightly PORT_SUFFIX=1 docker-compose -f br/compatibility/backup_cluster.yaml exec -T control make build_br
TAG=nightly PORT_SUFFIX=1 docker-compose -f br/compatibility/backup_cluster.yaml exec -T control br/tests/run_compatible.sh run
- name: Collect component log
if: ${{ failure() }}
run: |
tar czvf ${{ github.workspace }}/logs.tar.gz /tmp/br/docker/backup_logs/*
- uses: actions/upload-artifact@v2
if: ${{ failure() }}
with:
name: logs
path: ${{ github.workspace }}/logs.tar.gz
- uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version-file: 'go.mod'

- name: Generate compatibility test backup data
timeout-minutes: 15
run: sh br/compatibility/prepare_backup.sh

- name: Start server
run: |
TAG=nightly PORT_SUFFIX=1 docker-compose -f br/compatibility/backup_cluster.yaml rm -s -v
TAG=nightly PORT_SUFFIX=1 docker-compose -f br/compatibility/backup_cluster.yaml build
TAG=nightly PORT_SUFFIX=1 docker-compose -f br/compatibility/backup_cluster.yaml up --remove-orphans -d
TAG=nightly PORT_SUFFIX=1 docker-compose -f br/compatibility/backup_cluster.yaml exec -T control go mod tidy
TAG=nightly PORT_SUFFIX=1 docker-compose -f br/compatibility/backup_cluster.yaml exec -T control make build_br
TAG=nightly PORT_SUFFIX=1 docker-compose -f br/compatibility/backup_cluster.yaml exec -T control br/tests/run_compatible.sh run
- name: Collect component log
if: ${{ failure() }}
run: |
tar czvf ${{ github.workspace }}/logs.tar.gz /tmp/br/docker/backup_logs/*
- uses: actions/upload-artifact@v2
if: ${{ failure() }}
with:
name: logs
path: ${{ github.workspace }}/logs.tar.gz
48 changes: 24 additions & 24 deletions .github/workflows/integration-test-compile-br.yml
@@ -1,34 +1,34 @@
name: BR & Lightning
name: BR & Lightning
on:
push:
branches:
- master
- 'release-[0-9].[0-9]*'
- "release-[0-9].[0-9]*"
paths:
- 'br/**'
- '!**.html'
- '!**.md'
- '!CNAME'
- '!LICENSE'
- '!br/docs/**'
- '!br/tests/**'
- '!br/docker/**'
#change trigger policy
- "br/**"
- "!**.html"
- "!**.md"
- "!CNAME"
- "!LICENSE"
- "!br/docs/**"
- "!br/tests/**"
- "!br/docker/**"
#change trigger policy
pull_request:
types:
- labeled # <--
- labeled # <--
branches:
- master
- 'release-[0-9].[0-9]*'
- "release-[0-9].[0-9]*"
paths:
- 'br/**'
- '!**.html'
- '!**.md'
- '!CNAME'
- '!LICENSE'
- '!br/docs/**'
- '!br/tests/**'
- '!br/docker/**'
- "br/**"
- "!**.html"
- "!**.md"
- "!CNAME"
- "!LICENSE"
- "!br/docs/**"
- "!br/tests/**"
- "!br/docker/**"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand All @@ -45,13 +45,13 @@ jobs:
- uses: actions/checkout@v2.1.0

- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v3
with:
go-version: 1.18
go-version-file: 'go.mod'

- name: Run build
run: make build_tools

compile:
if: github.event_name == 'pull_request' && github.event.label.name == 'action/run-br-cross-platform-build'
name: Compile for ${{ matrix.os }} / ${{ matrix.target}}
Expand Down

0 comments on commit 9fb3ce6

Please sign in to comment.