ci: set test step in ci when tdgpt file changed
This commit is contained in:
parent
6159a06ee7
commit
7688c3b7d9
14
Jenkinsfile2
14
Jenkinsfile2
|
@ -466,12 +466,14 @@ pipeline {
|
||||||
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
|
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
|
||||||
timeout(time: 126, unit: 'MINUTES'){
|
timeout(time: 126, unit: 'MINUTES'){
|
||||||
if (file_no_doc_changed =~ /forecastoperator.c|anomalywindowoperator.c/) {
|
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 {
|
} else {
|
||||||
pre_test_win()
|
pre_test_win()
|
||||||
pre_test_build_win()
|
pre_test_build_win()
|
||||||
run_win_ctest()
|
run_win_ctest()
|
||||||
run_win_test()
|
run_win_test()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -483,7 +485,7 @@ pipeline {
|
||||||
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
|
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
|
||||||
timeout(time: 60, unit: 'MINUTES'){
|
timeout(time: 60, unit: 'MINUTES'){
|
||||||
if (file_no_doc_changed =~ /forecastoperator.c|anomalywindowoperator.c/) {
|
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 {
|
} else {
|
||||||
pre_test()
|
pre_test()
|
||||||
pre_test_build_mac()
|
pre_test_build_mac()
|
||||||
|
|
|
@ -169,6 +169,7 @@ static int32_t forecastCloseBuf(SForecastSupp* pSupp) {
|
||||||
code = taosAnalBufWriteOptInt(pBuf, "start", start);
|
code = taosAnalBufWriteOptInt(pBuf, "start", start);
|
||||||
if (code != 0) return code;
|
if (code != 0) return code;
|
||||||
|
|
||||||
|
|
||||||
bool hasEvery = taosAnalGetOptInt(pSupp->algoOpt, "every", &every);
|
bool hasEvery = taosAnalGetOptInt(pSupp->algoOpt, "every", &every);
|
||||||
if (!hasEvery) {
|
if (!hasEvery) {
|
||||||
qDebug("forecast every not found from %s, use %" PRId64, pSupp->algoOpt, every);
|
qDebug("forecast every not found from %s, use %" PRId64, pSupp->algoOpt, every);
|
||||||
|
|
Loading…
Reference in New Issue