Open ajm-ska opened 3 years ago
do you have test logs for diagnostics?
do you have test logs for diagnostics?
Unfortunately no test logs are produced.
did we not run tests with --outputFile=<filename>
and --verbose
? @acdo2002 what are the other options to save jest test results as a file?
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...
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: