-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/3.0' into feat/TD-30268
- Loading branch information
Showing
583 changed files
with
64,212 additions
and
17,155 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: TaosKeeper CI | ||
|
||
on: | ||
push: | ||
paths: | ||
- tools/keeper/** | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
name: Run unit tests | ||
|
||
steps: | ||
- name: Checkout the repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: 1.18 | ||
|
||
- name: Install system dependencies | ||
run: | | ||
sudo apt update -y | ||
sudo apt install -y build-essential cmake libgeos-dev | ||
- name: Install TDengine | ||
run: | | ||
mkdir debug | ||
cd debug | ||
cmake .. -DBUILD_HTTP=false -DBUILD_JDBC=false -DBUILD_TOOLS=false -DBUILD_TEST=off -DBUILD_KEEPER=true -DBUILD_DEPENDENCY_TESTS=false | ||
make -j 4 | ||
sudo make install | ||
which taosd | ||
which taosadapter | ||
which taoskeeper | ||
- name: Start taosd | ||
run: | | ||
cp /etc/taos/taos.cfg ./ | ||
sudo echo "supportVnodes 256" >> taos.cfg | ||
nohup sudo taosd -c taos.cfg & | ||
- name: Start taosadapter | ||
run: nohup sudo taosadapter & | ||
|
||
- name: Run tests with coverage | ||
working-directory: tools/keeper | ||
run: | | ||
go mod tidy | ||
sudo go test -v -ldflags="-X 'github.com/taosdata/taoskeeper/version.IsEnterprise=true'" -coverpkg=./... -coverprofile=coverage.out ./... | ||
go tool cover -func=coverage.out | ||
- name: Clean up | ||
if: always() | ||
run: | | ||
if pgrep taosd; then sudo pkill taosd; fi | ||
if pgrep taosadapter; then sudo pkill taosadapter; fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# lemon | ||
|
||
ExternalProject_Add( | ||
lemon | ||
SOURCE_DIR ${TD_CONTRIB_DIR}/lemon | ||
CONFIGURE_COMMAND "" | ||
BUILD_COMMAND "${C_COMPILER_LEMON}" -o ${TD_CONTRIB_DIR}/lemon/lemon ${TD_CONTRIB_DIR}/lemon/lemon.c | ||
INSTALL_COMMAND "" | ||
BUILD_IN_SOURCE 1 | ||
BUILD_ALWAYS 1 | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.