Commit graph

939 commits

Author SHA1 Message Date
Linhe Huo
6c377e7dbd
fix: release build error and make install sudo lost (#30928)
Close [TD-34660](https://jira.taosdata.com:18080/browse/TD-34660)
2025-04-28 15:43:25 +08:00
Xuefeng Tan
5f3e13e5aa
ci: fix taosAdapter build errors (#30914)
* fix: taosAdapter build

* fix: simplify taos version handling in CMakeLists.txt

* fix: update build command for taosadapter in CMakeLists.txt
2025-04-27 20:28:30 +08:00
Haojun Liao
f0d741bfdb
feat(gpt): support return confidence interval for timesfm. (#30894) 2025-04-27 11:10:44 +08:00
kevin men
c2116c7752
fix: tag data from a CSV file cause core dump (#30855)
* fix: tag data from a CSV file, a core dump occurred.

* fix: add auto create table case

* fix: modfify auto create table case

* fix: modfify auto create table json

* fix: modify stmt2 automatic table creation tag binding
2025-04-25 09:09:36 +08:00
guozhenwei
46c34e7cfa
fix(taosws-rs): modify the git tag of taosws-rs [TD-34624]
fix(taosws-rs): modify the git tag of taosws-rs [TD-34624]
2025-04-22 20:14:27 +08:00
Haojun Liao
d270d9715f
feat(gpt): add tdtsfm server (#30831) 2025-04-19 15:10:18 +08:00
freemine
6267763e85
Freemine.cmake.3.0 (#30663)
* chore(ci): with cmake verbose, temporarily

* chore(cmake): prefer Threads::Threads

* fix(cmake): debug building gtest on ubuntu 20.04 for the moment

* fix(cmake): try adding Threads::Threads

* fix(cmake): debug building gtest on ubuntu 20.04 for the moment

* fix(cmake): revert taosd-ci-build.yml

* fix(cmake): debug building on ubuntu 20.04 for the moment

* fix(cmake): debug building on ubuntu 20.04 for the moment

* fix(cmake): debug building on ubuntu 20.04 for the moment, adding dl right after DEP_ext_libuv

* fix(cmake): debug building on ubuntu 20.04 for the moment, try full run

* fix(cmake): fix building on ubuntu 20.04

* fix(cmake): dl is only valid in non-windows platform

* fix(cmake): dl order

* refactor(cmake): adjust option/cache variables for external dependencies

* refactor(cmake): mv patch files from contrib/ to cmake/

* refactor(cmake): typo

* refactor(cmake): adding cache on ci

* refactor(cmake):
1. ext_lzma2 is only used by Linux
2. fix bug in taosd-ci-build.yml

* enh: adding functionalities of build.sh

* fix(ci): `cmake -B` shall maintain consistency

* refactor(cmake): LOCAL_REPO/LOCAL_URL as cache variable

* refactor(cmake): taosadapter to be built in main build directory rather than .externals

* refactor(cmake): adding rpath for taosadapter, linux now

* refactor(cmake): adding rpath for taosadapter, macos now

* chore(cmake): remove some comments

* debug(ci): bypass TD_EXTERNALS_USE_ONLY

* debug(ci): bypass .externals caching for the moment

* fix(cmake): temporarily use taosadapter/main branch because this branch(freemine.cmake.3.0) has not include taos_fetch_fields_e from upstream

* refactor(cmake): clean GIT_TAG/GIT_SHALLOW pairs

* enh(ci): use build.sh rather than hard-coded in taosd-ci-build.yml, linux for now

* debug(ci): undefined __isoc23_strtoull

* debug(ci): benchmarkTest

* debug(ci): what if use_only = off

* debug(ci): remove .externals to make a refresh build

* debug(ci): back to cache, and ls files of gtest

* debug(ci): remove find coz {} not escaped

* debug(ci): cache key seems missing "matrix.os"

* refactor(ci): fixed cache key and reopen macos/windows

* chore(ci): literally -j4

* chore(ci): Trigger GitHub Actions re-run

* chore(ci): Trigger GitHub Actions re-run

* fix(ci): typo

* chore(ci): JOBS calculated by build.sh itself

* refactor(ci): enable WEBSOCKET in build.sh by default

* refactor(ci): enable WEBSOCKET in build.sh by default, macOS

* chore(cmake): remove obsoletes

* refactor(ci): stop service before running taosd

* chore(ci): `./build.sh install` just install TDengine, you will have to start taosd by `./build.sh start`

* refactor(cmake): adding source code found on http://emfisis.physics.uiowa.edu/Software/C/libargp/

* refactor(cmake): moving jansson/snappy/avro to .externals, and porting BUILD_TEST/WEBSOCKET on Windows

* refactor(cmake): porting linux

* refactor(cmake): porting macos
1. check argp.h
2. re-enable building taosdump

* refactor(cmake): porting linux
1. adjust CMAKE_C/CXX_FLAGS

* refactor(cmake): porting windows, adjust CMAKE_C/CXX_FLAGS

* refactor(cmake): use cmake_parse_arguments in macro INIT_EXT

* refactor(cmake): format ci cache directives

* refactor(cmake): adding comments for ci externals-cache directives

* refactor(cmake): adding check_env.cmake to checking libraries installed on the system

* refactor(cmake): porting linux, make homebrew-installed-libs available

* refactor(cmake): remove BYPRODUCTS from INIT_EXT macro

* refactor(cmake): INC_DIR is oneValueArg

* refactor(cmake): taosdump depends on ext_xz(LZMA)

* refactor(cmake): add copy_pthreadVC3 target on windows

* refactor(cmake): mv taosd-ci-build.yml to tdengine-build.yml

* chore(ci): try to fix yml syntax error

* refactor(cmake): use brew --prefix to get HomeBrew's install path

* refactor(cmake): typo

* debug(ci): build and cache externals first

* debug(ci): adding -Wno-stringop-overread for the moment

* debug(ci): make Threads::Threads public from os target

* debug(ci): make os public

* debug(ci): re-enable start and test

* debug(ci): let it go even if taosBenchmark failed

* debug(ci): copy logic from TDengine/main

* debug(ci): try ./build.sh start/test

* debug(ci): revert to original simple test logic in ci, taosBenchark/taos

* chore(cmake): code-convention and ci-logic

* debug(ci): show versions

* debug(ci): forcefully use specific GIT_TAG by commit-id for taos-connector-rust.git and taosadapter.git

* refactor(cmake): remove empty lines

* debug(ci): typo

* debug(ci): set supportVnodes to 256 before starting taosd

* debug(ci): fix: sudo and pipe

* debug(ci): cat /etc/taos/taos.cfg to check if supportVnodes effective

* debug(ci): cat forceReadConfig to taos.cfg

* debug(ci): adding taos -s "show dnodes"

* debug(ci): print more info

* debug(ci):
1. git log .... in an independant step
2. sleep 3 deliberately

* build: release ver-3.3.6.0

* chore(ci): comment and remove unnecessary code

* refactor(ci): cleanup tools/CMakeLists.txt
1. remove unnecessary or uneffective codes
2. better approach to pass compile flags to go

* chore(cmake): remove unnecessary code

* merge(cmake): porting linux

* merge(cmake): porting macOS

* merge(cmake): porting windows

* merge(cmake): pitfall fix: use literal format string instead

* merge(cmake): ver-3.3.6.0 for both taosadatper and taosws

* merge(cmake): adjust ci for debug purposes

* merge(cmake): add dependenices to make sure native built

* merge(main): link os

* merge(main): revert to main

* chore(cmake): remove freemine'd comments

* chore(cmake): make github ci to run with empty change

* refactor(cmake): remove unnecessaries

* refactor(cmake): remove unnecessaries

* chore(cmake):
1. remove taosudf in build.sh::do_purge
2. packaging taosBenchmark

* chore(cmake):
1. typo corrections
2. add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to bypass compatibility check imposed by latest cmake since 4.0

* chore(cmake): show cmake version

* chore(cmake): add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to bypass compatibility check imposed by latest cmake since 4.0

* chore(cmake): typo

* chore(cmake): remove unnecessaries

* cmake: debug enterprise compilation

* refactor: preparatory work before merging the freemin PR

* refactor(cmake): revert to d91205594a

* refactor(cmake): optimize by adjusting cache key

* chore(cmake): make github ci to run with empty change

* refactor(cmake): move libs3 and azure to external.cmake

* refactor(cmake): porting macOS

* refactor(cmake): move cos to external.cmake

* refactor(cmake): bypass s3/azure/cos on windows for the moment

* refactor(cmake): try find_package(Threads)

* refactor(cmake): add dl/pthread in libs3

* refactor(cmake): enable s3/azure for the moment, hard-coded

* refactor(cmake): adjust BUILD_WITH_ANALYSIS option

* refactor(cmake):
1. enum AVROTYPE => enum enAVROTYPE
2. remove INSTALL(CODE ...) from tools/taos-tools/CMakeLists.txt

* refactor(cmake): portint macOS and typo

* refactor(cmake): ticking external cache key to force refresh external building

* refactor(cmake): remove obsoletes

* refactor(cmake): remove obsoletes

* refactor(cmake): remove obsoletes, contrib/deps-download related

* refactor(cmake): adding build.bat, and use build.bat in .github/workflows/tdengine-build.yml

* refactor(cmake):
1. call .\build.bat
2. remove POST_BUILD which is not valid in this signature of add_custom_command

* refactor(ci): use 'NMake Makefiles JOM'

* refactor(ci): typo

* refactor(ci): debug

* refactor(ci): debug

* refactor(ci): debug

* refactor(ci): use call on windows

* refactor(cmake): move utils/TSZ to contrib/TSZ

* chore(cmake): make github ci to run with empty change

* refactor(cmake): mv cmake.* -> *.cmake and related in CMakeLists.txt

* refactor(cmake): debugging integrating community

* refactor(cmake): debugging integrating community

* chore(cmake): make github ci to run with empty change

* refactor(cmake): revert geos.git back to 3.12.0

* refactor(cmake): revert doc/** to main branch

* refactor(cmake): revert tests/** to main branch, except tests/taosc_test/CMakeLists.txt

* refactor(cmake): revert test/cases/** to main branch

* refactor(cmake): revert test/docs/** to main branch

* refactor(cmake): revert tools/taos-tools/deps/{avro,jansson,libargp,snappy,zlib-1.2.13} to main branch, which need to be removed later

* refactor(ci): revert .github/workflows/{deploy-case-docs.yml,tdengine-doc-build.yml} to main branch

* refactor(cmake): revert tcommon.h and related to main branch

* refactor(cmake): revert test/* stuffs back to main branch

* refactor(cmake): revert libuv.git back to v1.49.2

* refactor(cmake): revert .h/.c and related to main branch

* refactor(cmake): typo format string

* refactor(cmake): typo correction, incorrect use of macro `assert`

* refactor(cmake): adding /wd4028 to bypass thttp.c under enterprise build for the moment

* refactor(cmake):
1. adding some rules to .gitignore for the last resort to save
2. adding source files manually to source/libs/parser/CMakeLists.txt to exclude potential sql.c generated by old build system

* refactor(cmake): add -Wno-unused-result for the moment

* refactor(cmake): adjust target dependencies

* refactor(cmake): tweaking building of mxml

* refactor(cmake): adjust externals CMAKE_ARGS to save compilation time

* refactor(cmake): temporarily use tomchon-patch-3

* refactor(cmake): temporarily adding dumpbin directives

* refactor(cmake): adding NODEFAULTLIB temporarily for debugging purpose

* refactor(cmake): adding NODEFAULTLIB:libcpmt temporarily for debugging purpose

* refactor(cmake): adding NODEFAULTLIB:cpmt temporarily for debugging purpose

* chore(cmake): make github ci to run with empty change

* chore(cmake): make github ci to run with empty change

* refactor(ci): use freemine.debug branch for the moment

* refactor(ci): revert back to use run-tests-on-windows.yml of tomchon-patch-3 branch

* chore(cmake): make github ci to run with empty change

* refactor(cmake): remove temporary debug directives

* refactor(cmake): move cmake_policy(..CMP0135..) to the root of this project

* refactor(cmake): Remove temporary debugging conditional and restore original logic

* chore(cmake): adding -B in army tests

* chore(cmake): make github ci to run with empty change

* chore(cmake): revert: adding -B in army tests

* refactor(cmake):
1. use ver-3.3.6.3 of taosadapter
2. pitfall fix: do not link with taosws for taos shell

* refactor(cmake): revert taosadapter to ver-3.3.6.0

* chore(cmake): adding logging message in more detail

* chore(cmake): adding logging message in more detail

* chore(ci): debugging by using ls -l

* chore(ci): typo

* chore(ci): typo

* refactor(cmake): revert to remove debug code, and taosadapter to ver-3.3.6.3

* refactor(cmake): remove DEP_ext_taosws

* chore(cmake): make github ci to run with empty change

* chore(cmake): make github ci to run with empty change

* chore(cmake): make github ci to run with empty change

* chore(cmake): make github ci to run with empty change

* chore(cmake): typo correction: utils/test/c/sml_test.c

* debug(cmake): test cases debug

* chore(cmake): make github ci to run with empty change

* chore(ci): using tomchon-patch-3 branch for run-tests-on-linux for the moment

* chore(cmake): make github ci to run with empty change

* debug(test): revert utils/test/c/sml_test.c back to tdengine/main branch

* debug(test): adding VERBOSE=1 and gcc --version

* debug(test): revert tests/parallel_test/cases.task back to tdengine/main branch

* debug: add log in run_case.sh

* fix: test log

* fix: docker run privileged

* tes: add debug test in  cases.task

* refactor(cmake): remove ref to \contrib\<dep-name> and ~/.cos-local-{1,2} from CMakeLists.txt(s)

* refactor(cmake): make taosudf link with libtaos.so

* chore(cmake): fix compiler warning as error problem

* refactor(cmake): revert 7d7f03832d

* chore(cmake): only udf.sim and udfpy.sim for the moment

* debug(ci): debug udf.sim for the moment

* debug(ci): debug udf.sim for the moment

* debug(ci): debug udf.sim for the moment

* debug(ci): debug only udf.sim for the moment

* debug(ci): debug only udf.sim for the moment, using tee

* debug(ci): debug only udf.sim for the moment, revert using tee

* debug(ci): debug only udf.sim for the moment, adding TAOS_LIB again

* debug(cmake): adding -rdynamic for the moment

* debug(cmake): re-adding udfpy.sim

* debug(cmake): do NOT run with Sanitizer for udfpy.sim for the moment

* chore(cmake): revert cases.task, and remove ubuntu-20.04 from tdengine-build.yml

* refactor(cmake): using ENABLE_EXPORTS to export symbols in taosudf

* chore(cmake): make github ci to run with empty change

* chore(cmake): remove stuffs for debug purpose and revert

---------

Co-authored-by: support-platform <it@taosdata.com>
Co-authored-by: Simon Guan <slguan@taosdata.com>
Co-authored-by: Simon Guan <guanshengliang@qq.com>
Co-authored-by: haoranchen <haoran920c@163.com>
2025-04-19 14:03:29 +08:00
kevin men
33833eacb2
fix: modify the taosBenchmark parameter issue in the Mac environment (#30818)
* fix: modify the taosBenchmark parameter issue in the Mac environment

* fix: modify the taosBenchmark parameter error input
2025-04-18 17:02:46 +08:00
Haojun Liao
7a724c84f4
feat(gpt): support covariate forecasting (#30806) 2025-04-18 14:01:54 +08:00
Alex Duan
b6a63a76f5
merge: taos-tools and case 3.0 to main branch (#30802)
* merge: taos-tools and case 3.0 to main branch

* add -s option and modify concurrent name to threads
2025-04-17 15:29:23 +08:00
kevin men
55dbdb81c9
fix: json configuration not effective (#30785)
* fix: json configuration not effective

* fix: add ci cases config
2025-04-16 19:33:59 +08:00
Alex Duan
b322b0d456
fix: memcpy with snprintf (#30790) 2025-04-15 21:14:59 +08:00
She Yanjie
ebd19ecfc3
feat: taoskeeper support new adapter metrics: connection pool and status (#30760) 2025-04-14 09:49:25 +08:00
kevin men
f1b45f2298
fix: taosBenchmark online issues (#30722)
* fix: add abnormal exit logic

* fix: add interrupt exit mechanism

* fix: add insert error case

* fix: add Mac memory statistics

* fix: multi threaded table building with skip logic added

* fix: multi threaded table building increases task allocation

* fix: add csv tag file multi-threaded table creation case

* fix: add 'contrl c' to tmq and exit

* fix: add 'contrl c'  cases

* fix: add 'contrl c'  cases

* fix: add tmq cancel cases

* fix: add ci execute cases

* fix: restore mistakenly deleted files

---------

Co-authored-by: taos-support <it@taosdata.com>
2025-04-10 22:04:15 +08:00
haoranchen
540a89a7d0
fix: prevent installation script from failing on missing model files (#30747) 2025-04-10 19:02:59 +08:00
freemine
9897d85f86
enh(test): adding TD_ALWAYS_ASSERT macro for test cases to use (#30739) 2025-04-10 16:52:55 +08:00
Xuefeng Tan
4d17a58e64
feat: upgrade go version to 1.23 or above (#30725) 2025-04-10 15:09:52 +08:00
chenhaoran
56125343f4 fix: correct logical operator in installation script for model copying 2025-04-10 14:23:05 +08:00
chenhaoran
dc657817fa fix: update installation scripts for improved model handling 2025-04-10 14:17:53 +08:00
Alex Duan
11162b9639
enh: taosdump support cols or tags changed in anywhere(main) (#30633)
* enh: support cols or tags changed in anywhere

* fix: build error

* fix: replace strncpy with strcpy

* fix: windows curl build with static runtime library

* fix: modify ssl static lib

* fix: add CMAKE_VERBOSE_MAKEFILE ON

* fix: restore cmake.options

* test: add child table case

* fix: remove support 2.x code

* test: already have -gg test

* fix: add no same column case

* fix: modify show failed tips

* add another except with no tags have cols

* fix: fix case error

* fix: memory leak for no same cols on des table
2025-04-09 15:04:17 +08:00
WANG Xu
bca47a1311
Merge pull request #30476 from taosdata/pkg/main/add-modle2pgt
enh:add two models to tdgpt pkg
2025-04-08 15:50:13 +08:00
Haojun Liao
311cb53509
feat(tdgpt): auto load tsfm from amazon/google/salesforce (#30634) 2025-04-08 15:01:12 +08:00
Alex Duan
2d2e6c8f54
feat: taosdump support add or del cols/tags (#30624)
This reverts commit ae1c982ed6.
2025-04-02 21:16:03 +08:00
Simon Guan
ae1c982ed6
Revert "feat: taosdump support add or del cols/tags (#30604)" (#30618)
This reverts commit 862fd41d78.
2025-04-02 19:54:46 +08:00
Alex Duan
862fd41d78
feat: taosdump support add or del cols/tags (#30604) 2025-04-02 19:37:02 +08:00
Haojun Liao
841ae19707
Merge pull request #30520 from taosdata/doc/analysis
fix(gpt): check for the number of rows for analysis
2025-04-02 09:51:16 +08:00
Haojun Liao
1f9e6ca765 fix(gpt): use 'TNC' as the default optimized function for holtwinters 2025-04-01 14:01:32 +08:00
Alex Duan
df3c43694e
fix: remove windows MurmurHash3_32 impl on benchUtil.c (#30573) 2025-03-31 19:39:06 +08:00
Haojun Liao
4ca8cbf8b1 Merge remote-tracking branch 'origin/doc/analysis' into doc/analysis 2025-03-31 17:55:33 +08:00
Haojun Liao
434b834e98 fix(gpt): add check for seasonal parameter before invoking SimpleExpSmoothing. 2025-03-31 17:54:57 +08:00
Alex Duan
7dea804fcd
fix: taosBenchmark firstEp not work in taos.cfg (#30494) 2025-03-27 20:36:21 +08:00
chenhaoran
55bb9eb12e Merge remote-tracking branch 'origin' into pkg/main/add-modle2pgt 2025-03-27 17:35:19 +08:00
dependabot[bot]
c95ae1e14f
chore(deps): bump keras from 3.6.0 to 3.9.0 in /tools/tdgpt (#30434)
Bumps [keras](https://github.com/keras-team/keras) from 3.6.0 to 3.9.0.
- [Release notes](https://github.com/keras-team/keras/releases)
- [Commits](https://github.com/keras-team/keras/compare/v3.6.0...v3.9.0)

---
updated-dependencies:
- dependency-name: keras
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-27 09:56:52 +08:00
dependabot[bot]
f7e6afc92f
chore(deps): bump jinja2 from 3.1.4 to 3.1.6 in /tools/tdgpt (#30433)
Bumps [jinja2](https://github.com/pallets/jinja) from 3.1.4 to 3.1.6.
- [Release notes](https://github.com/pallets/jinja/releases)
- [Changelog](https://github.com/pallets/jinja/blob/main/CHANGES.rst)
- [Commits](https://github.com/pallets/jinja/compare/3.1.4...3.1.6)

---
updated-dependencies:
- dependency-name: jinja2
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-27 09:56:40 +08:00
dependabot[bot]
a2aee0f6cb
chore(deps): bump werkzeug from 3.0.4 to 3.0.6 in /tools/tdgpt (#30431)
Bumps [werkzeug](https://github.com/pallets/werkzeug) from 3.0.4 to 3.0.6.
- [Release notes](https://github.com/pallets/werkzeug/releases)
- [Changelog](https://github.com/pallets/werkzeug/blob/main/CHANGES.rst)
- [Commits](https://github.com/pallets/werkzeug/compare/3.0.4...3.0.6)

---
updated-dependencies:
- dependency-name: werkzeug
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-27 09:56:27 +08:00
Yaming Pei
4d16f5bfe1
feat(taosBenchmark): supports decimal data type on main branch (#30504)
* feat: taosBenchmark supports decimal data type

* build: decimal script not use pytest.sh

* fix: fix typo for decimal script

* test: insertBasic.py debug

* build: update python connector version to 2.7.23

* docs: add decimal data type for python connector

* docs: format optimization

* docs: fix typo

* build: update docker taospy version to v2.7.23
2025-03-26 20:28:37 +08:00
Haojun Liao
4c246a4587
doc: update docs. (#30510) 2025-03-26 18:43:31 +08:00
chenhaoran
5c2c12ea25 enh: specify transformers version to ensure compatibility in installation script 2025-03-26 13:08:54 +08:00
chenhaoran
cc3deb03d9 enh: add remove_model_service function to uninstall script for link cleanup 2025-03-26 04:19:02 +08:00
chenhaoran
aeb9e7132b enh: add checks before extracting model tarballs in installation script 2025-03-26 04:01:38 +08:00
chenhaoran
b8e4c3c279 enh: add PID logging for tdtsfm and timer-moe service start scripts 2025-03-26 03:55:30 +08:00
chenhaoran
d8a0177963 enh: add kill_model_service function to stop model services during installation 2025-03-26 03:46:35 +08:00
chenhaoran
eac3486793 enh: update service start/stop scripts to improve activation and process management 2025-03-26 03:36:15 +08:00
chenhaoran
3b3b9bf7e0 enh: refactor installation and service scripts for improved link handling and startup processes 2025-03-26 02:32:10 +08:00
chenhaoran
a9a25ee0ce enh: add start and stop scripts for tdtsfm and timer-moe services, and update install/uninstall processes 2025-03-26 02:00:47 +08:00
chenhaoran
bcf0c828c5 enh: streamline model file copying and simplify tar packaging process in release script 2025-03-26 01:17:00 +08:00
chenhaoran
e6417c3337 enh: refactor release script to improve directory handling for installation 2025-03-26 00:53:08 +08:00
chenhaoran
c90b5de40f enh: improve model file copying in release script and add conditional tar packaging 2025-03-26 00:43:53 +08:00
Haojun Liao
37d0aaa587
doc: update docs. (#30468) 2025-03-26 00:38:16 +08:00
chenhaoran
503d3d34ed enh: add model directory option to release script and copy model files 2025-03-26 00:25:14 +08:00