Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-33374

Issue with summary state configuration

    XMLWordPrintable

    Details

    • Story Points:
      1
    • Sprint:
      TSSW Sprint - Jan 17 - Jan 31
    • Team:
      Telescope and Site
    • Urgent?:
      No

      Description

      While using the enabled_offline.py test script, I noticed that it did not run any of the scripts that used the config registry. It looks like we have a mismatch in expectations between our YAML validator and the SQ YAML validator.

      Read historical data in 0.00 secconfig(---
      !!map {
      ? !!str "data"
      : !!seq [
      !!seq [
      !!str "DSM:2",
      ],
      !!str "OFFLINE",
      !!seq [
      !!str "DSM:1",
      ],
      !!str "OFFLINE",
      !!seq [
      !!str "DIMM:1",
      ],
      !!str "OFFLINE",
      !!seq [
      !!str "DIMM:2",
      ],
      !!str "OFFLINE",
      !!seq [
      !!str "WeatherStation:1",
      ],
      !!str "OFFLINE",
      ],
      }
      ) failedb'Traceback (most recent call last):\n File "/opt/lsst/software/stack/conda/miniconda3-py38_4.9.2/envs/lsst-scipipe-0.7.0/lib/python3.8/site-packages/lsst/ts/salobj/base_script.py", line 538, in do_configure\n full_config_dict = self.config_validator.validate(user_config_dict)\n File "/opt/lsst/software/stack/conda/miniconda3-py38_4.9.2/envs/lsst-scipipe-0.7.0/lib/python3.8/site-packages/lsst/ts/salobj/validator.py", line 186, in validate\n self.defaults_validator.validate(result)\n File "/opt/lsst/software/stack/conda/miniconda3-py38_4.9.2/envs/lsst-scipipe-0.7.0/lib/python3.8/site-packages/jsonschema/validators.py", line 353, in validate\n raise error\njsonschema.exceptions.ValidationError: [\'DSM:2\'] is too short\n\nFailed validating \'minItems\' in schema[\'properties\'][\'data\'][\'items\']:\n {\'items\': {\'type\': \'string\'},\n \'maxItems\': 3,\n \'minItems\': 2,\n \'type\': \'array\'}\n\nOn instance[\'data\'][0]:\n [\'DSM:2\']'
      

      We'll need to dig into why.

        Attachments

          Activity

          Hide
          mareuter Michael Reuter added a comment -

          This applies to anything using the summary_state.py script, so we definitely need to look at this.

          Show
          mareuter Michael Reuter added a comment - This applies to anything using the summary_state.py script, so we definitely need to look at this.
          Show
          rbovill Rob Bovill added a comment - https://github.com/lsst-ts/ts_IntegrationTests/pull/15  
          Hide
          mareuter Michael Reuter added a comment -

          PR reviewed on GH.

          Show
          mareuter Michael Reuter added a comment - PR reviewed on GH.

            People

            Assignee:
            rbovill Rob Bovill
            Reporter:
            mareuter Michael Reuter
            Reviewers:
            Michael Reuter
            Watchers:
            Michael Reuter, Rob Bovill
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Jenkins

                No builds found.