lsst-uk / lasair-lsst

Apache License 2.0
0 stars 0 forks source link

Feature/database unittest #50

Closed RoyWilliams closed 1 year ago

RoyWilliams commented 1 year ago

New tests for database: inserts and queries a record, catches syntax error and timeout error

gpfrancis commented 1 year ago

It's still failing. I think the lines

sys.path.append('/home/ubuntu/lasair-lsst/pipeline/filter')
sys.path.append('/home/ubuntu/lasair-lsst/common')

should use relative paths, e.g.

sys.path.append('../../../../pipeline/filter')
gpfrancis commented 1 year ago

If you look at the console output in Jenkins you can see just before the fatal error:

Running in /var/lib/jenkins/workspace/asai_feature_database_unittest/tests/integration/pipeline/filter
[Pipeline] {
[Pipeline] sh
+ python3 test_run_query.py
Traceback (most recent call last):
  File "test_run_query.py", line 13, in <module>
    from run_active_queries import run_query
ModuleNotFoundError: No module named 'run_active_queries'
RoyWilliams commented 1 year ago

Yes I'm doing it. I changed to hard links becuase it couldn't find settings. Which I still don;t understand BTW. I put in a settings file in the right place on Jenkins and it only finds it on the command line, not when github runs the test.