Commit graph

330 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
haoranchen
a218286829
ci: modify branch in tdengine-test.yml 2025-04-22 09:12:57 +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
haoranchen
b599e08c6b
fix: add conditional execution for ReviewDog reporting in CI workflow (#30776) 2025-04-13 20:31:21 +08:00
happyguoxy
56e8076c1c test:alter default branch 2025-04-11 17:36:35 +08:00
chenhaoran
b18270e867 enh: update documentation build workflow to include all markdown files and fix typos in README 2025-04-10 22:45:32 +08:00
chenhaoran
626d123740 enh: remove conditional failure check for ReviewDog reporting in documentation build workflow 2025-04-10 22:37:29 +08:00
chenhaoran
e799a0ed37 enh: streamline documentation build workflow by removing redundant steps and integrating ReviewDog for error reporting 2025-04-10 21:52:04 +08:00
chenhaoran
3ae461a66e enh: add ReviewDog integration for automatic error checking in documentation build 2025-04-10 21:45:38 +08:00
Xuefeng Tan
4d17a58e64
feat: upgrade go version to 1.23 or above (#30725) 2025-04-10 15:09:52 +08:00
Feng Chao
09f2845853 fix: use variable for TDGpt version in packaging step 2025-04-10 12:17:13 +08:00
Feng Chao
d7db65695e fix: revert to scheduled updates for TDgpt service 2025-04-10 11:46:33 +08:00
Feng Chao
442272fed5 fix: remove scheduled updates and revert to push trigger for TDgpt service 2025-04-10 11:38:13 +08:00
Feng Chao
43fcf2f5f6 fix: enable scheduled updates for TDgpt service 2025-04-10 10:31:45 +08:00
Feng Chao
054c6f2804 fix: correct syntax in cleanup step of TDGpt update service workflow 2025-04-10 10:02:34 +08:00
Feng Chao
9014844a81 fix: specify environment and version in TDGpt service packaging step 2025-04-10 09:59:15 +08:00
Feng Chao
f4b68a0c5b fix: update TDgpt service workflow to use main branch and adjust schedule trigger 2025-04-10 09:45:43 +08:00
WANG Xu
34154971f8
Update .github/workflows/cancel-workflow-on-merge.yml 2025-04-09 15:34:49 +08:00
chenhaoran
953453287c enh: fix jq command syntax for canceling in-progress workflows 2025-04-09 15:16:43 +08:00
chenhaoran
e2447f08a2 enh: simplify jq command for canceling in-progress workflows 2025-04-09 15:10:14 +08:00
chenhaoran
042e72f5cb enh: add write permissions for cancel workflow on merge 2025-04-09 15:03:11 +08:00
haoranchen
39545df615
ci:fix some errror for geting pr status 2025-04-09 13:09:15 +08:00
WANG Xu
c7717c324b
refactor: get pr number and user from context
Signed-off-by: WANG Xu <feici02@outlook.com>
2025-04-05 12:57:19 +08:00
WANG Xu
130351c234
refactor: remove two inputs
Signed-off-by: WANG Xu <feici02@outlook.com>
2025-04-05 12:44:05 +08:00
WANG Xu
f149439c94
Merge pull request #30611 from taosdata/new_test_framework
fix: Update workflow files
2025-04-03 16:41:37 +08:00
WANG Xu
337a4cebf1
Merge pull request #30585 from taosdata/main_cov2
test:alter coverage script
2025-04-03 11:36:16 +08:00
Feng Chao
d0dbec712b 更新 GitHub Actions 工作流,添加对 test/** 目录的监控,并删除 validate-test-cases.yml 文件 2025-04-02 18:04:41 +08:00
minhuinie
bc6f1dc3bf remove test code 2025-04-02 17:53:16 +08:00
chenhaoran
6835a1ce35 fix: remove unnecessary argument from autocorrect action in documentation build workflow 2025-04-02 15:39:51 +08:00
minhuinie
bc85f4751a merge main to ci/add-correct 2025-04-02 15:34:48 +08:00
happyguoxy
4a43a3f59a test:alter yml desc 2025-04-02 11:18:21 +08:00
happyguoxy
02c636cff7 test:alter yml desc 2025-04-02 11:03:16 +08:00
WANG Xu
5570124b59
Merge pull request #30597 from taosdata/fix/xftan/cmake-version
fix: downgrade CMake version to 3.31.6
2025-04-02 10:30:43 +08:00
t_max
b33e6b0531 ci: build TDengine when GitHub Actions configuration files change 2025-04-02 09:48:25 +08:00
t_max
d867deb5ac fix: downgrade CMake version to 3.31.6 2025-04-02 09:26:46 +08:00
chenhaoran
b456165976 fix: remove redundant debug argument from autocorrect action 2025-04-01 21:28:29 +08:00
chenhaoran
01ab7897af fix: update autocorrect action arguments for improved linting and debugging 2025-04-01 21:20:48 +08:00
chenhaoran
ba0cc569ef fix: enhance documentation workflow with ReviewDog integration and error handling 2025-04-01 21:15:13 +08:00
chenhaoran
d11c94922a fix: redirect autocorrect output to log file and add log printing step 2025-04-01 21:06:58 +08:00
chenhaoran
8d7c68d4c5 fix: update autocorrect action to target specific documentation files 2025-04-01 21:00:01 +08:00
chenhaoran
b35d1fc0f8 fix: correct formatting in documentation workflow for autocorrect action 2025-04-01 20:38:44 +08:00
chenhaoran
053863d1c0 fix: add linter and formatter check to documentation workflow 2025-04-01 20:35:00 +08:00
WANG Xu
05978d6ea1
Merge pull request #30589 from taosdata/ci/add-typos
feat: add workflow for spell checking TDengine documentation typos
2025-04-01 20:08:44 +08:00
chenhaoran
44a937e18d fix: remove continue-on-error settings for typo checking jobs and correct typo in deployment documentation 2025-04-01 19:47:05 +08:00
chenhaoran
98e2677fec fix: enable continue-on-error for typo checking jobs and add error validation step 2025-04-01 19:45:17 +08:00
chenhaoran
22ad9b3628 fix: remove continue-on-error setting for typo checking job to enhance error visibility 2025-04-01 19:43:17 +08:00
chenhaoran
a0a7cda275 fix: change continue-on-error setting for typo checking job to improve error handling 2025-04-01 19:39:45 +08:00
chenhaoran
391cebb414 refactor: remove duplicate typo checking job and streamline documentation build workflow 2025-04-01 19:27:34 +08:00