Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
ee17745
pkg/set: convert check to require (#2557)
dveeden Jul 24, 2025
db8bc30
meta: replace pingcap/check with testing (#2559)
dveeden Jul 24, 2025
122e47c
embed: replace pingcap/check with testing (#2555)
dveeden Jul 24, 2025
25c571d
base52: replace pingcap/check with testing (#2556)
dveeden Jul 24, 2025
88a64ad
localdata: replace pingcap/check with testing (#2561)
dveeden Jul 24, 2025
bf4ad1f
utils: replace pingcap/check with testing (#2562)
dveeden Jul 24, 2025
97a3aa7
telemetry: remove (#2564)
dveeden Jul 24, 2025
031a8ea
repo: exclude prerelease version from version list if possible (#2550)
xhebox Jul 28, 2025
bba8e00
repo: abstract v1repoapi as interface (#2542)
xhebox Jul 29, 2025
4b06d03
cluster: also check exporter ports (#2563)
xhebox Jul 30, 2025
11b3c12
cluster: improve SELinux compatibility (#2501)
dveeden Jul 30, 2025
7f4b505
cluster: update --ssh desc (#2380)
glkappe Jul 30, 2025
6282d0d
cluster: add stop/start timeout for systemd service (#2568)
xhebox Aug 1, 2025
97eb4d7
*: move insight to tiup (#2553)
dveeden Aug 1, 2025
f2a5db1
*: check_to_require for cluster (#2566)
dveeden Aug 1, 2025
d2f2267
*: update dmpb (#2569)
dveeden Aug 2, 2025
f57cbe3
*: replace otiai10/copy with os.CopyFS (#2571)
dveeden Aug 2, 2025
8509f60
ci: add staging mirror option to release workflow (#2576)
wuhuizuo Aug 11, 2025
22060bb
ci: fix STAGING version competition (#2579)
wuhuizuo Aug 11, 2025
67b528d
playground: fix config typo (#2578)
rleungx Aug 11, 2025
e7bbbeb
ci: add ci for feature branch (#2577)
Lloyd-Pottiger Aug 11, 2025
8db1656
ci: fix staging version string (#2582)
wuhuizuo Aug 12, 2025
ffc1b92
playground: add tici component in playground (#2546)
kolafish Jul 21, 2025
4792c1e
tici: Update the default config filename & default port of tici (#2567)
JaySon-Huang Aug 1, 2025
beaeced
tici: refine binpath (#2572)
Lloyd-Pottiger Aug 4, 2025
c95958c
tici: read bucket and prefix from config file to create changefeed (#…
Lloyd-Pottiger Aug 11, 2025
daeb91c
playground: make the tici changefeed endpoint configurable (#2581)
winoros Aug 13, 2025
87aacce
*: support start a TiDB playground cluster with TiCI without any self…
Lloyd-Pottiger Aug 14, 2025
8e360f9
fix
Lloyd-Pottiger Aug 14, 2025
044b087
fix
Lloyd-Pottiger Aug 14, 2025
7fd9dbd
Merge branch 'feature/fts' into rebase-master
Lloyd-Pottiger Aug 14, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ coverage:
ignore:
- "pkg/cluster/api/dmpb"
- "pkg/cluster/api/typeutil"
- "pkg/telemetry/*.pb.go"

flags:
tiup:
Expand Down
56 changes: 30 additions & 26 deletions .github/workflows/integrate-cluster-cmd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,41 +30,44 @@ on:

jobs:
cluster:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
cases:
- 'test_cmd'
# - 'test_cmd_tls_native_ssh'
- 'test_cmd_tls_native_ssh'
- 'test_upgrade'
- 'test_upgrade_tls'
- 'test_tikv_cdc'
env:
working-directory: ${{ github.workspace }}/go/src/github.com/${{ github.repository }}
steps:
- name: Set up Go 1.21
uses: actions/setup-go@v4
with:
go-version: 1.21.x
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
path: go/src/github.com/${{ github.repository }}
- name: Set up Go 1.24
uses: actions/setup-go@v4
with:
go-version: 1.24.x
id: go
- name: Build build_integration_test
working-directory: ${{ env.working-directory }}
run: |
export GOPATH=${GITHUB_WORKSPACE}/go
export PATH=$PATH:$GOPATH/bin
make build_integration_test
sudo apt-get update
sudo apt-get install -y build-essential python-is-python3 python3-pip ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
$(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}") stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install -y docker-compose-plugin
make build_integration_test tiup

- name: Build the docker-compose stack
working-directory: ${{ env.working-directory }}
# with --dev the first run will fail for unknow reason, just retry it and will success now..
run: TIUP_CLUSTER_ROOT=${{ env.working-directory }} ./docker/up.sh --daemon --dev || TIUP_CLUSTER_ROOT=${{ env.working-directory }} ./docker/up.sh --daemon --dev
run: TIUP_CLUSTER_ROOT=$(pwd) ./docker/up.sh --daemon

- name: Check running containers
run: |
Expand All @@ -74,7 +77,6 @@ jobs:

- name: Run test suite
id: test
working-directory: ${{ env.working-directory }}
run: |
# ensuere docker ssh is ready
sleep 3
Expand All @@ -83,15 +85,12 @@ jobs:
docker exec tiup-cluster-control bash /tiup-cluster/tests/tiup-cluster/run.sh ${{ matrix.cases }}

- name: Collect component log
working-directory: ${{ env.working-directory }}
if: ${{ failure() }}
# if: always()
run: |
docker exec tiup-cluster-control bash /tiup-cluster/tests/tiup-cluster/script/pull_log.sh /tiup-cluster/logs
ls ${{ env.working-directory }}

- name: Detect error log
working-directory: ${{ env.working-directory }}
if: ${{ failure() }}
# if: always()
run: |
Expand All @@ -104,22 +103,27 @@ jobs:
with:
overwrite: true
name: component_logs
path: ${{ env.working-directory }}/logs/
path: ./logs

- name: Output cluster debug log
working-directory: ${{ env.working-directory }}
if: ${{ failure() }}
# if: always()
run: |
pwd
docker ps
df -h
free -h
find ${{ env.working-directory }}/logs -type f -exec sh -c 'echo "{}" && cat {} && echo "\n"' \; || true
find ./logs -type f -exec sh -c 'echo "{}" && cat {} && echo "\n"' \; || true

- name: Upload coverage to Codecov
working-directory: ${{ env.working-directory }}
run: |
curl -Os https://uploader.codecov.io/latest/linux/codecov
chmod +x codecov
./codecov -F cluster -s ${{ env.working-directory }}/tests/tiup-cluster/cover -f '*.out'
./codecov -F cluster -s ./tests/tiup-cluster/cover -f '*.out'

- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
if: ${{ failure() }}
with:
limit-access-to-actor: true

46 changes: 22 additions & 24 deletions .github/workflows/integrate-cluster-scale.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ on:

jobs:
cluster:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
Expand All @@ -40,31 +40,36 @@ jobs:
- 'test_scale_core_tls'
- 'test_scale_tools_tls'
- 'test_scale_tiproxy'
env:
working-directory: ${{ github.workspace }}/go/src/github.com/${{ github.repository }}
steps:
- name: Set up Go 1.21
uses: actions/setup-go@v4
with:
go-version: 1.21.x
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
path: go/src/github.com/${{ github.repository }}
- name: Set up Go 1.24
uses: actions/setup-go@v4
with:
go-version: 1.24.x
id: go

- name: Build build_integration_test
working-directory: ${{ env.working-directory }}
run: |
export GOPATH=${GITHUB_WORKSPACE}/go
export PATH=$PATH:$GOPATH/bin
sudo apt-get update
sudo apt-get install -y build-essential python-is-python3 python3-pip ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
$(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}") stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install -y docker-compose-plugin
make build_integration_test

- name: Build the docker-compose stack
working-directory: ${{ env.working-directory }}
# with --dev the first run will fail for unknow reason, just retry it and will success now..
run: TIUP_CLUSTER_ROOT=${{ env.working-directory }} ./docker/up.sh --daemon --dev || TIUP_CLUSTER_ROOT=${{ env.working-directory }} ./docker/up.sh --daemon --dev
run: TIUP_CLUSTER_ROOT=$(pwd) ./docker/up.sh --daemon

- name: Check running containers
run: |
Expand All @@ -74,7 +79,6 @@ jobs:

- name: Run test suite
id: test
working-directory: ${{ env.working-directory }}
run: |
# ensuere docker ssh is ready
sleep 5
Expand All @@ -83,17 +87,13 @@ jobs:
docker exec tiup-cluster-control bash /tiup-cluster/tests/tiup-cluster/run.sh ${{ matrix.cases }}

- name: Collect component log
working-directory: ${{ env.working-directory }}
if: ${{ failure() }}
# if: always()
run: |
docker exec tiup-cluster-control bash /tiup-cluster/tests/tiup-cluster/script/pull_log.sh /tiup-cluster/logs
ls ${{ env.working-directory }}

- name: Detect error log
working-directory: ${{ env.working-directory }}
if: ${{ failure() }}
# if: always()
run: |
bash ./tests/tiup-cluster/script/detect_error.sh ./logs/

Expand All @@ -104,22 +104,20 @@ jobs:
with:
overwrite: true
name: cluster_logs
path: ${{ env.working-directory }}/logs/
path: ./logs

- name: Output cluster debug log
working-directory: ${{ env.working-directory }}
if: ${{ failure() }}
# if: always()
run: |
pwd
docker ps
df -h
free -h
find ${{ env.working-directory }}/logs -type f -exec sh -c 'echo "{}" && cat {} && echo "\n"' \; || true
find ./logs -type f -exec sh -c 'echo "{}" && cat {} && echo "\n"' \; || true

- name: Upload coverage to Codecov
working-directory: ${{ env.working-directory }}
run: |
curl -Os https://uploader.codecov.io/latest/linux/codecov
chmod +x codecov
./codecov -F cluster -s ${{ env.working-directory }}/tests/tiup-cluster/cover -f '*.out'
./codecov -F cluster -s ./tests/tiup-cluster/cover -f '*.out'
38 changes: 18 additions & 20 deletions .github/workflows/integrate-dm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ on:

jobs:
dm:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
Expand All @@ -39,35 +39,39 @@ jobs:
- '--do-cases test_upgrade'
- '--native-ssh --do-cases test_cmd'
- '--native-ssh --do-cases test_upgrade'
env:
working-directory: ${{ github.workspace }}/go/src/github.com/${{ github.repository }}
steps:
- name: Set up Go 1.21
- name: Set up Go 1.24
uses: actions/setup-go@v4
with:
go-version: 1.21.x
go-version: 1.24.x
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
path: go/src/github.com/${{ github.repository }}

- name: Build build_integration_test
working-directory: ${{ env.working-directory }}
run: |
export GOPATH=${GITHUB_WORKSPACE}/go
export PATH=$PATH:$GOPATH/bin
sudo apt-get update
sudo apt-get install -y build-essential python-is-python3 python3-pip ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
$(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}") stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install -y docker-compose-plugin
make build_integration_test
make tiup

- name: Build the docker-compose stack
working-directory: ${{ env.working-directory }}
# with --dev the first run will fail for unknow reason, just retry it and will success now..
run: |
cd ${{ env.working-directory }}/docker
TIUP_CLUSTER_ROOT=${{ env.working-directory }} ./up.sh --daemon --dev --compose ./docker-compose.dm.yml
TIUP_CLUSTER_ROOT=$(pwd) ./docker/up.sh --daemon --compose ./docker-compose.dm.yml

- name: Check running containers
run: |
Expand All @@ -77,7 +81,6 @@ jobs:

- name: Run test suite
id: test
working-directory: ${{ env.working-directory }}
run: |
# ensuere docker ssh is ready
sleep 4
Expand All @@ -86,13 +89,10 @@ jobs:
docker exec tiup-cluster-control bash /tiup-cluster/tests/tiup-dm/run.sh ${{ matrix.cases }}

- name: Collect component log
working-directory: ${{ env.working-directory }}
if: ${{ failure() }}
# if: ${{ failure() }}
run: |
docker exec tiup-cluster-control bash -c 'mkdir -p /tiup-cluster/logs; [[ -d ~/.tiup/logs ]] && find ~/.tiup/logs -type f -name "*.log" -exec cp {} /tiup-cluster/logs \; || true'
ls ${{ env.working-directory }}
tar czvf ${{ env.working-directory }}/dm.logs.tar.gz ${{ env.working-directory }}/logs/

- name: Upload component log
if: ${{ failure() }}
Expand All @@ -101,22 +101,20 @@ jobs:
with:
overwrite: true
name: dm_logs
path: ${{ env.working-directory }}/dm.logs.tar.gz
path: ./logs

- name: Output dm debug log
working-directory: ${{ env.working-directory }}
if: ${{ failure() }}
# if: always()
run: |
pwd
docker ps
df -h
free -h
find ${{ env.working-directory }}/logs -type f -exec sh -c 'echo "{}" && cat {} && echo "\n"' \; || true
find ./logs -type f -exec sh -c 'echo "{}" && cat {} && echo "\n"' \; || true

- name: Upload coverage to Codecov
working-directory: ${{ env.working-directory }}
run: |
curl -Os https://uploader.codecov.io/latest/linux/codecov
chmod +x codecov
./codecov -F dm -s ${{ env.working-directory }}/tests/tiup-dm/cover -f '*.out'
./codecov -F dm -s ./tests/tiup-dm/cover -f '*.out'
Loading
Loading