CARTAvis / carta-backend-ICD-test

Testing carta-backend via Interface Control Document
0 stars 0 forks source link

ICD tests temporarily removed from Jenkins Docker #277

Open ajm-ska opened 3 years ago

ajm-ska commented 3 years ago

For some unknown reason, the following ICD tests do not work while running in the Ubuntu 20.04 Docker container through Jenkins. Strangely the tests work fine when running them manually in the same Docker container. So it is very hard to debug at present. I am going to exclude them for now and investigate later. Here is it the list:

CONTOUR_DATA_STREAM.test.ts PER_CUBE_HISTOGRAM.test.ts CATALOG_FITS_VOT.test.ts PER_CUBE_HISTOGRAM_CANCELLATION.test.ts

kswang1029 commented 3 years ago

do you have test logs for diagnostics?

ajm-ska commented 3 years ago

do you have test logs for diagnostics?

Unfortunately no test logs are produced.

kswang1029 commented 3 years ago

did we not run tests with --outputFile=<filename> and --verbose? @acdo2002 what are the other options to save jest test results as a file?

acdo2002 commented 3 years ago

Following is what I did for the long-term performance test, I print out the carta backend log as Backlog-output-PERF_LOAD_IMAGE_FITS-$now.txt and print out the test result as output-PERF_LOAD_IMAGE_FITS-$now.txt:

now="$(date +'%Ss%Mm%Hh-%d-%m-%Y')"

sudo sh -c 'echo 1 > /proc/sys/vm/drop_caches'
(cd /home/mingyi/carta-backend-dev/ICD-797/carta-backend/build ; ./carta_backend /home/min
gyi/carta-test-img --verbosity=5 --omp_threads=4 --port=3006 --debug_no_auth=true --no_htt
p=true --log_performance=true &)>>Backlog-output-PERF_LOAD_IMAGE_FITS-$now.txt
sleep 5s
npm test PERF_LOAD_IMAGE_FITS.test.ts -- --watchAll=false --no-color 2>output-PERF_LOAD_IM
AGE_FITS-$now.txt
sleep 5s
ps -ef | grep 3006 | grep -v grep | awk '{print $2}' | xargs kill
sleep 5s

Not sure Jenkins can do it or not...