From 7688c3b7d98efb809498fce75450e2ff264b2ad5 Mon Sep 17 00:00:00 2001 From: chenhaoran Date: Mon, 25 Nov 2024 17:23:55 +0800 Subject: [PATCH] ci: set test step in ci when tdgpt file changed --- Jenkinsfile2 | 14 ++++++++------ source/libs/executor/src/forecastoperator.c | 1 + 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/Jenkinsfile2 b/Jenkinsfile2 index 4cbdfb8239..b151930891 100644 --- a/Jenkinsfile2 +++ b/Jenkinsfile2 @@ -466,12 +466,14 @@ pipeline { catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') { timeout(time: 126, unit: 'MINUTES'){ if (file_no_doc_changed =~ /forecastoperator.c|anomalywindowoperator.c/) { - echo "skip windows test because of forecastoperator.c or anomalywindowoperator.c" + sh ''' + echo "skip windows test because of tdgpt codes changed" + ''' } else { - pre_test_win() - pre_test_build_win() - run_win_ctest() - run_win_test() + pre_test_win() + pre_test_build_win() + run_win_ctest() + run_win_test() } } } @@ -483,7 +485,7 @@ pipeline { catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') { timeout(time: 60, unit: 'MINUTES'){ if (file_no_doc_changed =~ /forecastoperator.c|anomalywindowoperator.c/) { - echo "skip mac test because of forecastoperator.c or anomalywindowoperator.c" + echo "skip mac test because of tdgpt codes changed" } else { pre_test() pre_test_build_mac() diff --git a/source/libs/executor/src/forecastoperator.c b/source/libs/executor/src/forecastoperator.c index bf1efc54ca..a56b0dd214 100644 --- a/source/libs/executor/src/forecastoperator.c +++ b/source/libs/executor/src/forecastoperator.c @@ -169,6 +169,7 @@ static int32_t forecastCloseBuf(SForecastSupp* pSupp) { code = taosAnalBufWriteOptInt(pBuf, "start", start); if (code != 0) return code; + bool hasEvery = taosAnalGetOptInt(pSupp->algoOpt, "every", &every); if (!hasEvery) { qDebug("forecast every not found from %s, use %" PRId64, pSupp->algoOpt, every);