sot / jobwatch

Watch files, database tables, and log files to ensure valid cron processing
3 stars 0 forks source link

Update for ska3 fid drift mon #65

Closed jeanconn closed 7 months ago

jeanconn commented 7 months ago

Description

Update for ska3 fid_drift_mon3

Interface impacts

Testing

Unit tests

(trending) jeanconn-fido> pytest
================================================================ test session starts =================================================================
platform linux -- Python 3.10.8, pytest-7.2.1, pluggy-1.0.0
rootdir: /proj/sot/ska/jeanproj/git, configfile: pytest.ini
plugins: timeout-2.1.0, anyio-3.6.2
collected 9 items                                                                                                                                    

jobwatch/tests/test_jobwatch.py .........                                                                                                      [100%]

================================================================= 9 passed in 1.77s ==================================================================
(trending) jeanconn-fido> git rev-parse HEAD
46142035e3794f406f2c07132ecd27acbe08dab3

Independent check of unit tests by [REVIEWER NAME]

Functional tests

I installed into an old 3.10.8 ska3 test environment and ran the daily job

(trending) jeanconn-fido> skawatch_daily --rootdir /proj/sot/ska/www/ASPECT_ICXC/test_review_outputs/jobwatch-pr65
(trending) jeanconn-fido> 

Output visible at https://icxc.cfa.harvard.edu/aspect/test_review_outputs/jobwatch-pr65/2024071/ with expected state for the log checking and the date of the fid drift plot image file.