Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge 3.0 to main #370

Merged
merged 65 commits into from
Dec 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
2bb3e29
fix: add max number of concurrent calls allowed for the C method conf…
huskar-t Oct 22, 2024
c4130da
enh: rename config item
huskar-t Oct 23, 2024
03cd37e
Merge pull request #353 from taosdata/feat/xftan/TS-5540
sheyanjie-qq Oct 24, 2024
ef072e6
Merge pull request #357 from taosdata/main
huskar-t Nov 5, 2024
eb88166
test: add unit test
huskar-t Nov 8, 2024
c292a68
test: add unit test
huskar-t Nov 8, 2024
d2ce335
Merge pull request #358 from taosdata/tests/xftan/add-tests-3.0
huskar-t Nov 11, 2024
9272bb2
ci: add golangci-lint
huskar-t Nov 13, 2024
ed6b139
test: fix stmt bind block test
huskar-t Nov 13, 2024
a10c944
test: fix stmt bind test
huskar-t Nov 13, 2024
1318d7a
test: add unit test
huskar-t Nov 13, 2024
31d0a95
Merge pull request #359 from taosdata/enh/xftan/TD-32226
zitsen Nov 15, 2024
c37974c
enh: refactor websocket
huskar-t Nov 21, 2024
cf5e8e7
test: add unit test
huskar-t Nov 22, 2024
fc6687f
test: compatible with go version 1.17
huskar-t Nov 22, 2024
51d0f53
enh: wait for all action finish before close
huskar-t Nov 22, 2024
bfa7c47
enh: use jsoniter instead of std json
huskar-t Nov 25, 2024
8f35374
enh: use std json
huskar-t Nov 25, 2024
7bd82f5
enh: avoid goroutine leaks when subscription fails
huskar-t Nov 28, 2024
f96f248
enh: remove unnecessary session check
huskar-t Nov 28, 2024
2a49c4c
fix: influxdb test use same db
huskar-t Nov 28, 2024
7b6b062
fix: stmt test use same db
huskar-t Nov 28, 2024
1dd516e
ci: upgrade go version and artifact version
huskar-t Nov 28, 2024
c7dfad4
Merge pull request #360 from taosdata/enh/xftan/TD-30186
zitsen Nov 29, 2024
020b8ac
test: use file log in unit test
huskar-t Nov 29, 2024
ddba0c7
Merge pull request #361 from taosdata/enh/xftan/unit-test-logger
huskar-t Nov 29, 2024
7b550ca
refactor: remove driver-go dependency
huskar-t Dec 2, 2024
3b36a59
fix: unit test using wrong sql
huskar-t Dec 2, 2024
4fc6cb0
ci: remove go 1.17 test on macOS
huskar-t Dec 3, 2024
b8bf0cb
test: remove stmt2 bind with wrong column count
huskar-t Dec 3, 2024
86c9837
ci: add go 1.17 test on macOS
huskar-t Dec 3, 2024
126b611
ci: add macos-13 runner
huskar-t Dec 3, 2024
2b811e9
ci: add macos-13 runner
huskar-t Dec 3, 2024
a0259c9
ci: remove test on macOS
huskar-t Dec 3, 2024
d1e1fc3
Merge pull request #362 from taosdata/refactor/xftan/remove-go-driver
zitsen Dec 3, 2024
fb30be1
enh: support taos_stmt2_get_stb_fields
huskar-t Dec 3, 2024
f164041
test: add stmt2 query test
huskar-t Dec 4, 2024
4779825
Merge pull request #363 from taosdata/enh/xftan/TD-33100-3.0
zitsen Dec 5, 2024
7f78719
enh: remove stmt2_get_fields
huskar-t Dec 5, 2024
808b859
enh: fix race in go test
huskar-t Dec 5, 2024
977cf5d
test: add set tbname test
huskar-t Dec 5, 2024
b313ef2
Merge pull request #364 from taosdata/enh/xftan/TD-33138
zitsen Dec 9, 2024
11b2769
fix: stmt2 bind crash
huskar-t Dec 9, 2024
064359b
test: add stmt2 bind table name as value test
huskar-t Dec 9, 2024
c90f5a2
feat: support set connection options
huskar-t Dec 10, 2024
d701c43
enh: stmt2 use result response change result_id to id and fix version…
huskar-t Dec 10, 2024
3bd2d74
enh: stmt2 bind binary check minimum length
huskar-t Dec 10, 2024
ba9edd5
fix: stmt2 bind binary add table name length check and add asan test
huskar-t Dec 10, 2024
ef58e3b
enh: rename generate_stmt2_binds to go_generate_stmt2_binds
huskar-t Dec 10, 2024
13e5919
Merge pull request #365 from taosdata/fix/xftan/TD-33153
zitsen Dec 10, 2024
8fd893f
Merge branch '3.0' into enh/xftan/TD-33164-3.0
huskar-t Dec 10, 2024
1b2f232
Merge pull request #367 from taosdata/enh/xftan/TD-33164-3.0
zitsen Dec 10, 2024
5ddbb59
Merge branch '3.0' into feat/xftan/TD-33010-3.0
huskar-t Dec 10, 2024
51a6986
fix: Remove tmq set options test as it is not supported yet
huskar-t Dec 10, 2024
07eeb21
fix: get client version without request id
huskar-t Dec 11, 2024
71cf69d
Merge pull request #368 from taosdata/fix/xftan/taosx-version
zitsen Dec 11, 2024
7723643
Merge branch '3.0' into feat/xftan/TD-33010-3.0
huskar-t Dec 11, 2024
a2a2c8e
test: add block test
huskar-t Dec 11, 2024
0b45ad9
fix: user password restrictions
huskar-t Dec 12, 2024
e979d6a
fix: get taos error string in http
huskar-t Dec 12, 2024
d5916c2
test: add tmq test
huskar-t Dec 12, 2024
640f3e4
fix: tmq new consumer return error
huskar-t Dec 12, 2024
c0dd734
Merge pull request #366 from taosdata/feat/xftan/TD-33010-3.0
zitsen Dec 16, 2024
dfa4db2
feat: rename taos_stmt2_get_stb_fields to taos_stmt2_get_fields
huskar-t Dec 16, 2024
156956d
Merge pull request #369 from taosdata/enh/xftan/TD-33174-3.0
zitsen Dec 17, 2024
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
129 changes: 124 additions & 5 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ jobs:
needs: build
strategy:
matrix:
go: [ '1.17', '1.20' ]
go: [ '1.17', 'stable' ]
name: Build taosAdapter ${{ matrix.go }}
steps:
- name: get cache server by pr
Expand Down Expand Up @@ -183,7 +183,7 @@ jobs:
needs: build
strategy:
matrix:
go: [ '1.17', '1.20' ]
go: [ '1.17', 'stable' ]
name: test taosAdapter ${{ matrix.go }}
steps:
- name: get cache server by pr
Expand Down Expand Up @@ -249,15 +249,134 @@ jobs:
run: sudo go test -v --count=1 -coverprofile=coverage.txt -covermode=atomic ./...

- name: Upload coverage to Codecov
if: ${{ matrix.go }} == '1.20'
uses: codecov/codecov-action@v4-beta
with:
files: ./coverage.txt
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_ORG_TOKEN }}

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: always() && (steps.test.outcome == 'failure' || steps.test.outcome == 'cancelled')
with:
name: ${{ runner.os }}-${{ matrix.go }}-log
path: /var/log/taos/
path: /var/log/taos/

golangci:
name: lint
runs-on: ubuntu-latest
needs: build
steps:
- name: get cache server by pr
if: github.event_name == 'pull_request'
id: get-cache-server-pr
uses: actions/cache@v4
with:
path: server.tar.gz
key: ${{ runner.os }}-build-${{ github.base_ref }}-${{ needs.build.outputs.commit_id }}
restore-keys: |
${{ runner.os }}-build-${{ github.base_ref }}-

- name: get cache server by push
if: github.event_name == 'push'
id: get-cache-server-push
uses: actions/cache@v4
with:
path: server.tar.gz
key: ${{ runner.os }}-build-${{ github.ref_name }}-${{ needs.build.outputs.commit_id }}
restore-keys: |
${{ runner.os }}-build-${{ github.ref_name }}-

- name: get cache server manually
if: github.event_name == 'workflow_dispatch'
id: get-cache-server-manually
uses: actions/cache@v4
with:
path: server.tar.gz
key: ${{ runner.os }}-build-${{ inputs.tbBranch }}-${{ needs.build.outputs.commit_id }}
restore-keys: |
${{ runner.os }}-build-${{ inputs.tbBranch }}-


- name: install
run: |
tar -zxvf server.tar.gz
cd release && sudo sh install.sh

- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: stable
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.61.0

test_go_asan:
runs-on: ubuntu-latest
needs: build
strategy:
matrix:
go: [ 'stable' ]
name: test taosAdapter with asan ${{ matrix.go }}
steps:
- name: get cache server by pr
if: github.event_name == 'pull_request'
id: get-cache-server-pr
uses: actions/cache@v4
with:
path: server.tar.gz
key: ${{ runner.os }}-build-${{ github.base_ref }}-${{ needs.build.outputs.commit_id }}
restore-keys: |
${{ runner.os }}-build-${{ github.base_ref }}-

- name: get cache server by push
if: github.event_name == 'push'
id: get-cache-server-push
uses: actions/cache@v4
with:
path: server.tar.gz
key: ${{ runner.os }}-build-${{ github.ref_name }}-${{ needs.build.outputs.commit_id }}
restore-keys: |
${{ runner.os }}-build-${{ github.ref_name }}-

- name: get cache server manually
if: github.event_name == 'workflow_dispatch'
id: get-cache-server-manually
uses: actions/cache@v4
with:
path: server.tar.gz
key: ${{ runner.os }}-build-${{ inputs.tbBranch }}-${{ needs.build.outputs.commit_id }}
restore-keys: |
${{ runner.os }}-build-${{ inputs.tbBranch }}-


- name: install
run: |
tar -zxvf server.tar.gz
cd release && sudo sh install.sh

- name: checkout
uses: actions/checkout@v4

- name: copy taos cfg
run: |
sudo mkdir -p /etc/taos
sudo cp ./.github/workflows/taos.cfg /etc/taos/taos.cfg

- uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
cache-dependency-path: go.sum

- name: start shell
run: |
cat >start.sh<<EOF
ulimit -n 65535 && TAOS_SUPPORT_VNODES=256 taosd
EOF

- name: start taosd
run: nohup sudo sh ./start.sh & disown

- name: test
id: test
run: sudo go test -v --count=1 -asan ./...
Loading
Loading