Commit Graph

2192 Commits

Author SHA1 Message Date
jiajingbin 7450a8584d update 2023-09-01 20:43:56 +08:00
jiajingbin ae100c06e3 update 2023-09-01 20:43:56 +08:00
jiajingbin 91269075c7 test: add stream cases 2023-09-01 20:43:43 +08:00
dapan1121 cc17848b78 fix: merge 3.0 to main 2023-09-01 13:24:47 +08:00
chenhaoran a0c5d130ae test:repire test case for windows 2023-08-07 18:32:58 +08:00
Hui Li 1bc8c751a5
Merge pull request #22064 from taosdata/test/TD-24996
test:add testcase of rolling upgdade
2023-07-17 10:49:37 +08:00
Alex Duan 9085dac1a2 add create sma index case 2023-07-14 16:31:37 +08:00
chenhaoran f5e3e574ae test:add testcase of rolling upgdade 2023-07-07 16:19:39 +08:00
Shuduo Sang 500493b157
fix: remove -y from taosdump test (#21661)
* fix: remove -y from taosdump test

* fix: taosdumpTestNanoSupport.py
2023-06-09 09:20:43 +08:00
Haojun Liao 5301c5756a other: merge main into 3.0. 2023-06-01 09:29:18 +08:00
dmchen 0e41f82bb7 test case parameter 2023-05-25 11:26:11 +08:00
Ping Xiao f2b438622a skip some errors 2023-05-24 19:47:56 +08:00
Dingle Zhang 984211f3b4
Feature/3.0 geometry (#21037)
* Add GEOMETRY data type and make sql.c able to parse it. The GEMETRY works like BINARY so far.

* add GEOMETRY type into gConvertTypes to fix some issues like DELETE calling

* change some test cases to make sure no same timestamp is inserted, and add my smoketest.sh

* Add a function MakePoint() and introduce a lib geometry

* implement sql functions GeomFromText() and AsText()

* Use GEOS *_r funcions instead for thread safety

* Handle with TSDB_DATA_TYPE_GEOMETRY when INSERT geometry data by converting WKT.
Add geosWrapper to wrap the basic GEOS functions for TDEngine.

* refactor AsText and MakePoint functions to be like GeomFromText

* Show WKT when print geometry data in screen
Dump hex data when dump geometry data in a file

* define TYPE_BYTES item for TSDB_DATA_TYPE_GEOMETRY, which casued some strange issues.

* set number of decimals of WKT to 6

* Implement SQL function Intersects()

* refactor geometry sql functions

* Add geosErrMsgeHandler() to get the GEOS error detail

* use threadlocal to instantiate SGeosContext
call destroyGeosContext() only if the thread exists

* remove SGeosContext *context param for all geometry functions since we use thread local one,
so that all caller do not need to know the context.

* Modify Intersects() to call PreparedIntersects() when one of param is a constant, which has higher performance.

* rename prepareFn() to initCtxFn() to avoid confusion with PreparedFn

* Add prefix "ST_" for all geometry functions

* move getThreadLocalGeosCtx() and destroyThreadLocalGeosCtx() into util,
so that all unit test tools can compile

* Add unit test for geometry lib, only test MakePoint so far

* refactor and enhance existing cases in geomFuncTest

* implement NULL type and NULL value test for geomFuncTest

* add test on geomFromText()

* add unit test on AsText() in geomFuncTest

* combine some makePointFunction test items

* add intersectsFunctionTwoColumns test
refactor on callGeomFromTextWrapper functions

* enhance intersectsFunction test to add cases like input constant , NULL type, NULL value, or wrong content

* add more cases into intersectsFunction test

* Add basic test on geometry in system test

* Add ST_GeomFromText and ST_AsText function test in system test on geometry

* add ST_Intersects function test in system test on geometry

* support to check expectedErrno in system test on geometry

* adjust geomTest unit test and geometry system test

* add geometry data type and functions in doc english version

* implement touchesFunction() in geometry lib
refactor geometry relation functions model

* separate gemFuncTest into several src files

* add unit test on touchesFunction

* support sql function ST_Touches()
add system test on ST_Touches

* add docs for ST_Touches()

* Add ST_Contains()

* Add ST_Covers()

* Add ST_Equals()

* add swapAllowed param for geomRelationFunction()
read geom2 earlier intead of at doGeosRelation()

* Add ST_ContainsProperly()

* build on windows

* Merge from 3.0 to 3.0_geometry

* change macro definition TSDB_DATA_TYPE_GEOMETRY as the last one for compatibility

* change '\\NULL' to 'NULL' back in shellDumpFieldToFile()

* add /usr/local/include into include directory

* add /usr/local/inlcude and /usr/local/lib in cmake.platform for DARWIN
2023-05-24 15:36:46 +08:00
Ping Xiao 7b20d2fa7d update crash_gen 2023-05-22 20:13:32 +08:00
wade zhang 1ade314043
Merge pull request #21325 from taosdata/feat/force-drop-dnode
Feat/force drop dnode
2023-05-19 09:23:54 +08:00
Shuduo Sang c01e0f692c test: fix old pytest to make them pass with 3.0 2023-05-17 21:33:33 -04:00
dmchen 32c6ef4b6e fix ci 2023-05-17 23:09:16 +08:00
Alex Duan 89be6dbdeb test: reset dnodes modify and add test case 2023-05-16 19:07:16 +08:00
Alex Duan 1ccf9ed4ff test: add cluster global tdDnodes 2023-05-16 10:03:18 +08:00
Haojun Liao 7ef16e1922 other: merge main. 2023-05-12 11:49:53 +08:00
chenhaoran 03594cdf5d Merge branch 'main' of https://github.com/taosdata/TDengine into test/main/TS-3260 2023-05-09 20:13:58 +08:00
chenhaoran 60c6d480f2 test:add testcases of learner in election 2023-05-09 20:13:25 +08:00
Ping Xiao 116f7dbbc7 Merge branch 'main' into test/update_push_message 2023-05-09 18:11:39 +08:00
Ping Xiao 5d643fcf91 Merge branch 'main' into test/update_push_message 2023-05-09 18:04:11 +08:00
Ping Xiao 760ccfd991 update push message 2023-05-06 13:52:19 +08:00
Ping Xiao 5119594584 update push message 2023-05-05 20:11:48 +08:00
Ping Xiao 1e9bca79a4 update crash gen push message 2023-05-05 19:41:45 +08:00
Haojun Liao 72ddd1676d refactor: do some internal refactor. 2023-04-23 13:31:41 +08:00
Alex Duan e03a6c2f35 test: autogen.py remove radom select 2023-04-10 16:45:59 +08:00
Alex Duan 927390f38e test: change random to fixed 2023-04-07 11:00:53 +08:00
Alex Duan 1f953a422d Merge branch '3.0' into test/TD-22889-3.0 2023-03-29 09:32:32 +08:00
Xuefeng Tan cebe53a483
fix: fix test `cast.py` for windows (#20676) 2023-03-28 19:08:43 +08:00
Alex Duan 1434fea2de Merge branch '3.0' into test/TD-22889-3.0 2023-03-24 10:18:14 +08:00
t_max d4a81c11d2 fix: fix check timestamp data 2023-03-23 14:07:43 +08:00
t_max 6e66b74b38 fix: fix check timestamp data 2023-03-23 14:00:48 +08:00
Alex Duan 6345952f88 test: debug python file 2023-03-22 20:30:25 +08:00
dapan1121 5b02af6a91 fix: merge main to 3.0 2023-03-22 16:08:16 +08:00
Xuefeng Tan 449f7115e4
fix: windows test (#20256)
* fix: windows sim test

* fix: windows sim test

* fix: random on windows

* fix: taosd online check

* fix: windows path in python test

* fix: windows python test

* fix: windows python test

* fix: windows python test

* fix: windows python test

* fix: windows python test

* fix: windows python test

* fix: windows python test

* fix: windows python test

* fix: windows python test

* fix: make_install.bat

* fix: python test

* fix: jdbc test

* fix: develop test

* fix: develop test

* fix:add log

* test:add win case file

* test:add win case file

* test:add win case file

* fix: python test get taosBenchmark path

* test:add win case file

* test:comment some failed cases in win

* test:add win case file

* test:add win case file

* test:comment some win case file

* test:add some win case file

---------

Co-authored-by: wangmm0220 <wangmm0220@gmail.com>
Co-authored-by: chenhaoran <haoran920c@163.com>
2023-03-16 10:18:06 +08:00
Haojun Liao 3730ea4b57 test: update the sim to speedup this case and set the tqdebugflag to be 135. 2023-03-02 10:00:00 +08:00
sunpeng 7e8823d594
build: delete TaosConsumer and TaosTmq from taospy (#20076) 2023-02-21 19:00:50 +08:00
Shuduo Sang ea5d925c50
fix: alpine support (#19353)
* fix: alpine support

* fix: ostimer thread_id

* fix: taosPrintTrace and tsStreamMax

* fix: make_install.sh and dnodes.py for alpine

* fix: cmake.platform and cut option for alpine

* fix: timer sigev and string convert

* fix: test case for alpine

* fix: fix test script for alpine

* fix: fix test script for alpine

* fix: fix taosLogTrace for Alpine

* fix: fix taosSort

* fix: vnode and mnode compare functions and test cases

* fix: sorting algorithms and unit tests

* fix: libtaosws.so build error on Alpine

* fix: libtaosws.so build error on Alpine

---------

Co-authored-by: t_max <1172915550@qq.com>
2023-02-10 13:00:55 +08:00
wangmm0220 b493b8d2e1 fix:cols error because delete json cols value 2023-01-28 10:33:00 +08:00
Xiaoyu Wang fdde287ca9 merge main 2023-01-04 11:43:20 +08:00
Ping Xiao f14e2ed3f9 update script for crash gen 2022-12-30 18:24:45 +08:00
Alex Duan 6eeddb4b53 add case feature function with loop check data 2022-12-30 15:19:44 +08:00
Shengliang Guan 664dcb6b4e Merge branch 'main' into merge/mainto3.0_1226 2022-12-26 09:26:54 +08:00
Ping Xiao 3c5f07f70b test: add test cases 2022-12-23 18:39:21 +08:00
Ping Xiao 889872c24d test: update script to stop taosadapter service 2022-12-21 19:31:28 +08:00
chenhaoran a1415183b5 test:modify default vnodes numbers in create clusters 2022-12-16 15:11:02 +08:00
Shuduo Sang 31ae21aab9 fix: merge with 3.0 2022-12-05 15:19:04 +08:00
Shuduo Sang 8c85bda408 fix: disable tmq auto commit callback temporarily 2022-12-05 15:13:03 +08:00
Hui Li d638019a93
Merge pull request #18700 from taosdata/TD-20967
test:comment commit of tmq consumer in crashGen
2022-12-05 15:11:31 +08:00
chenhaoran 2f37e915a0 test: temp commit 2022-12-05 14:41:55 +08:00
chenhaoran 85ff9eaacf test:commit commit of tmq consumer in crashGen 2022-12-05 14:40:46 +08:00
Benguang Zhao f1991ac882 enh: improve runOneLinux and TDTestCase of python test scripts 2022-11-29 17:19:47 +08:00
Shengliang Guan 099b80906f test: adjust cluster case for asan mode 2022-11-28 11:19:02 +08:00
Shengliang Guan 2dc23cdfe5 test: adjust tmqCommon cases 2022-11-27 17:49:23 +08:00
Hui Li b138a30ebd
Merge pull request #18440 from taosdata/test/update_vnode
test/update vnode
2022-11-25 12:30:32 +08:00
wenzhouwww f7c5a82fc8
Update crash_gen_main.py 2022-11-25 10:59:40 +08:00
Shengliang Guan 991795ca6e test: add asan case 2022-11-24 13:52:09 +08:00
wenzhouwww bc40b7d360 update 2022-11-23 22:21:21 +08:00
wenzhouwww ca3c1f7147 add docker run exec script 2022-11-22 16:08:14 +08:00
wenzhouwww cbcdf6e496 Merge remote-tracking branch 'origin/3.0' into test/crash_gen_enh_exec 2022-11-22 16:02:50 +08:00
wenzhouwww ea591977bc
Update crash_gen_main.py 2022-11-22 15:48:47 +08:00
Shengliang Guan dfa88ea4d1
Merge pull request #18285 from taosdata/fix/TD-20530
test: python asan
2022-11-21 10:48:25 +08:00
Hui Li 7dd2af7866
Merge pull request #18004 from taosdata/enh/crash_gen
enh: enh   crash_gen  for 3.0 new functions
2022-11-21 09:43:43 +08:00
wenzhouwww bb6ca0c028
Update crash_gen_main.py 2022-11-21 09:32:51 +08:00
Shengliang Guan 15c0bb9446 test: python asan 2022-11-20 21:26:54 +08:00
Shengliang Guan 40b2d3673b test: python asan 2022-11-20 15:04:44 +08:00
Shengliang Guan 5831efd379 test: adjust asan dir 2022-11-20 12:23:59 +08:00
Shengliang Guan 0464a21d0e test: adjust pytest frame 2022-11-19 22:57:38 +08:00
wenzhouwww@live.cn 0e6481a4a0 update 2022-11-18 15:10:23 +08:00
wenzhouwww@live.cn 9f5a406441 update 2022-11-18 14:59:42 +08:00
wenzhouwww@live.cn 7602e57987 Merge remote-tracking branch 'origin/3.0' into enh/crash_gen 2022-11-18 14:23:49 +08:00
jiacy-jcy 0d7787387b test:add test case for boundary check 2022-11-17 16:58:04 +08:00
wenzhouwww 9c7913b00b
Update crash_gen_main.py 2022-11-16 10:39:37 +08:00
wenzhouwww@live.cn b47052b7af update 2022-11-15 09:12:42 +08:00
wenzhouwww@live.cn 6175929113 update 2022-11-11 13:50:37 +08:00
wenzhouwww@live.cn 4eb5c2cae7 update 2022-11-11 13:49:01 +08:00
wenzhouwww@live.cn 4774696aae update errorno 2022-11-10 20:32:08 +08:00
wenzhouwww@live.cn 20071f09a7 update 2022-11-10 20:23:00 +08:00
wenzhouwww@live.cn 0f8bb6faa7 update enh crash_gen tasks 2022-11-10 20:16:04 +08:00
wenzhouwww@live.cn e48d057f70 update 2022-11-10 18:36:45 +08:00
wenzhouwww@live.cn 119c4c7cab update 2022-11-10 10:38:53 +08:00
wenzhouwww@live.cn 86b5b89531 update 2022-11-10 10:37:16 +08:00
wenzhouwww@live.cn 3e133a8661 updaate 2022-11-10 09:35:22 +08:00
wenzhouwww@live.cn f4aedc9ec2 update tmq subscript 2022-11-10 09:31:18 +08:00
wenzhouwww@live.cn e1ca6a5e9c update 2022-11-09 18:54:21 +08:00
wenzhouwww 30b1c576e1
Update crash_gen_main.py 2022-11-09 18:45:21 +08:00
wenzhouwww@live.cn f6de1a8634 enh crash_gen for 3.0 about [stream processing] , [data subscription] ,[delete data] 2022-11-09 18:42:01 +08:00
wenzhouwww@live.cn 05f0ac62e7 update 2022-11-09 18:32:31 +08:00
wenzhouwww@live.cn dde87a3746 update 2022-11-09 18:21:43 +08:00
wenzhouwww@live.cn 59f50ae8c5 update 2022-11-09 18:08:02 +08:00
Shuduo Sang fd7d0f5928 test: enable telnet_tcp.py case 2022-11-09 14:51:14 +08:00
wenzhouwww@live.cn ca00459abb update 2022-11-08 11:56:18 +08:00
wenzhouwww@live.cn 908f0d719f update 2022-11-08 11:47:00 +08:00
wenzhouwww@live.cn 937631085f update 2022-11-08 11:44:42 +08:00
wenzhouwww@live.cn 7aac106650 update 2022-11-08 10:54:57 +08:00
wenzhouwww@live.cn 8a5427c95b update 2022-11-08 09:41:42 +08:00
wenzhouwww@live.cn 17a502f569 update 2022-11-07 13:44:12 +08:00
wenzhouwww@live.cn 66bf9b30b9 Merge remote-tracking branch 'origin/3.0' into test/crash_gen_enh_exec 2022-11-07 13:43:40 +08:00
Shengliang Guan 06d538bf9f
Merge pull request #17888 from taosdata/test/TD-20160
test:add parameter for mixed deployed mnodes in testcase framework
2022-11-05 13:32:38 +08:00
chenhaoran f995723f20 test:add compatibility cases: 4096 columns of table data and tests that need to recover data from wal files 2022-11-04 16:17:05 +08:00
Ping Xiao d2a675dbcb update query script 2022-11-04 15:39:11 +08:00
chenhaoran 32cbaa25a8 test:add parameter for mixed deployed mnodes in testcase framework 2022-11-03 17:48:16 +08:00
chenhaoran 691b9ac54b Merge branch '3.0' of https://github.com/taosdata/TDengine into test/TD-19790 2022-10-31 14:42:26 +08:00
chenhaoran 851f34ff36 test:add replica 3 for all testcases and frameworks 2022-10-31 14:41:59 +08:00
wenzhouwww cdf8ea1389 test: enh crash_gen function and let it run 2022-10-30 18:55:22 +08:00
Hui Li 8f9c2904ab
Update dnodes.py 2022-10-27 19:22:42 +08:00
Shengliang Guan 7f9548ac46 test: comment out unstable case 2022-10-22 10:42:13 +08:00
afwerar 15f8b60cdb os: mac test error 2022-09-26 14:49:19 +08:00
afwerar 00a9491a97 os: fix Mac test error 2022-09-23 17:50:43 +08:00
Shuduo Sang 8a0040d36a
feat: update taostools for3.0 (#16588)
* feat: update taos-tools d2b5dec for 3.0

* test: remove 'show vnodes' from tools/taosdumpTest2.py
2022-09-01 22:18:05 +08:00
Shuduo Sang 5d02a24359
fix: tools/taosdumpTest2.py (#16556) 2022-09-01 12:06:32 +08:00
cpwu 2fc2000c7a fix case 2022-08-31 11:00:25 +08:00
cpwu f3d5ac49b1 fix dnodes cfg 2022-08-30 11:16:27 +08:00
cpwu bea875aea7 add case to support rest API 2022-08-19 17:46:24 +08:00
cpwu 8ae2907dcb fix sql 2022-08-18 11:14:20 +08:00
cpwu 53e3b2e5f5 fix case, add case support rest api 2022-08-18 11:14:05 +08:00
cpwu 3a5f3203a0 fix case 2022-08-17 16:11:37 +08:00
Hui Li 5680bf3e22
Merge pull request #16114 from taosdata/test/crash_gen_enh_datetime
test : update method about get current time
2022-08-16 09:56:36 +08:00
wenzhouwww@live.cn b04bc1aee2 test:update metchod about get current datetime 2022-08-15 16:34:38 +08:00
cpwu 8922b48b11 add case to rest API CI 2022-08-12 18:00:11 +08:00
Xiaoyu Wang 15fae2418c enh: show command optimize 2022-08-11 23:13:45 +08:00
Xiaoyu Wang 4155a3bef4 enh: show command optimize 2022-08-11 21:55:20 +08:00
Xiaoyu Wang d9d892bf29 enh: show command optimize 2022-08-11 21:21:59 +08:00
Xiaoyu Wang 44df51f98f enh: show command optimize 2022-08-11 20:56:31 +08:00
Shuduo Sang 270f24c3d7
test: taosdump functest for 3.0 (#15981)
* test: update taostools 0ad4712

* fix: update b46a3cf taostools

* test: remove nextedquery/nestedqueryjson.py

* test: remove unused taosdemo test casese

* test: update cmake/taostools_CMakeLists.txt.in with 78e877a

* test: update cmake/taostools_CMakeLists.txt.in

* test: update taostools 79bf23d for 3.0
2022-08-11 18:44:44 +08:00
Shengliang Guan 01b4e8bb97 test: set default supportVnodes value 2022-08-09 13:35:01 +08:00
tomchon 9e32cd4fca test: modify testcases of muti-mnodes 2022-08-06 21:30:38 +08:00
gccgdb1234 77d8657e69 fix: correct wrong parameter thread_count_create_tbl 2022-08-06 10:48:50 +08:00
Steven Li e3c206f2c7 Merge remote-tracking branch 'origin/3.0' into enh/crash_gen 2022-08-02 23:22:38 +05:30
Steven Li 71bfef2ca9 Responding to TD-17768, adding 0x2662 as alternative table-not-found error to be acceptable 2022-08-02 23:22:26 +05:30
Shuduo Sang f1f7d6f8c3
fix: tools/taosdumpTest2.py for 3.0 (#15691)
* fix: tools/taosdumpTest2.py for 3.0

* fix: tools/taosdumpTestNanoSupport.py for 3.0
2022-08-03 00:35:56 +08:00
Yang Zhao e95c1356ef
test: migrate 3.0 test case (#15635)
* test: add test case in 3.0

* fix: remove result file

* test: change test cases

* fix: change test case

* test: add test to ci

* test: add test case of taosbenchmark in system-test

* fix: fix test case

* test: unknown error in ci
2022-08-01 18:50:32 +08:00
cpwu 737f623d81 fix case 2022-07-30 17:38:46 +08:00
tomchon c2e4807a93 test: modify testcases of muti-mnodes 2022-07-29 09:51:35 +08:00
haoranchen b7de929d85
Merge branch '3.0' into test/chr/TD-14699 2022-07-28 14:42:19 +08:00
xiangyang guo 83ecd5176f
Merge pull request #15453 from taosdata/cpwu/3.0
test: fix tSma, add some case to support rest API
2022-07-28 10:38:54 +08:00
tomchon e44593414d test:modify the way to stop taosd from "SIGINT" to "SIGILL" in test framework 2022-07-27 17:08:28 +08:00
Xiaoyu Wang f977117c6c fix: db options rename 2022-07-27 11:55:19 +08:00
cpwu cfb71e15c9 Merge branch '3.0' into cpwu/3.0 2022-07-26 15:57:51 +08:00
cpwu c71b1440cf fix case 2022-07-26 15:38:54 +08:00
cpwu 2cb144664e fix case 2022-07-26 15:15:54 +08:00
cpwu 5b06d8dff6 fix case 2022-07-26 14:31:36 +08:00
Steven Li d2e2a658a1 Merge remote-tracking branch 'origin/3.0' into enh/crash_gen 2022-07-26 09:57:49 +05:30
Steven Li 203e54c068 Enhanced crash_gen tool to report better error for deadlocks 2022-07-26 09:57:40 +05:30
afwerar 8b42d73742 test: fix win test stop taosd error 2022-07-25 20:31:21 +08:00
Steven Li 4d8fc705d8 Added 2 acceptable error codes to crash_gen tool 2022-07-25 09:50:44 +05:30
Hui Li c57a04a6c1
Merge pull request #15325 from taosdata/test/cluster_vnode_case
test : cluster test case about vnode
2022-07-23 12:45:49 +08:00