fiaisis / run-detection

The way we detect when our system for reduction should automatically perform a reduction and with what arguments we should do that.
GNU General Public License v3.0
1 stars 1 forks source link

Update detected run #63

Closed keiranjprice101 closed 1 year ago

keiranjprice101 commented 1 year ago

closes #62

This PR introduces new metadata fields to the DetectedRun class and improves the log output on test failures. The changes are as follows:

  1. Add the following fields to the DetectedRun class in rundetection/ingest.py:

    • run_start
    • run_end
    • raw_frames
    • good_frames
    • users
  2. Update test files to include the new fields.

    • Modify the View detector logs on fail step in .github/workflows/tests.yml to View logs on fail, and include logs from broker and activemq services on failure.

By adding these new metadata fields, we can provide more information about the detected runs, while the improved logs will help in diagnosing issues when tests fail.