ci: set test step in ci when tdgpt file changed

This commit is contained in:
chenhaoran 2024-11-25 17:23:55 +08:00
parent 6159a06ee7
commit 7688c3b7d9
2 changed files with 9 additions and 6 deletions

View File

@ -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()

View File

@ -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);