Version History¶
v1.9.0¶
Changes:
Delete the command_watcher.py command-line script.
Rename command-line scripts to remove “.py” suffix.
Update HeartbeatWriter, a subclass of WriteTopic, in a unit test, to be compatible with ts_sal 7. ts_sal 7 is required for unit test test_clock.py to pass.
Simplify some tests by using a write-only controller. This requires ts_salobj 7.1.
Wait for SalInfo instances to start in unit tests.
Modernize
Jenkinsfile
.Use
vars(message)
instead ofmessage.get_vars()
in a unit test.Build with pyproject.toml.
Requires:
ts_utils 1.1
ts_salobj 7.1
ts_idl 2
IDL files for
Watcher
,ATDome
,ESS
,MTMount
,ScriptQueue
, andTest
, plus any additional SAL components you wish to watch. These may be generated usingmake_idl_files.py
built with ts_xml 11 and ts_sal 7
v1.8.0¶
Changes:
Update for ts_salobj 7, which is required. This also requires ts_xml 11.
Requires:
ts_utils 1.1
ts_salobj 7
ts_idl 2
IDL files for
Watcher
,ATDome
,ESS
,MTMount
,ScriptQueue
, andTest
, plus any additional SAL components you wish to watch. These may be generated usingmake_idl_files.py
built with ts_xml 11
v1.7.0¶
Changes:
Use index_generator from ts_utils. This requires ts_utils 1.1 or later.
Add
ATCameraDewar
rule.-
Add
init_severity_queue
andassert_next_severity
methods, for unit testing.Fix
unacknowledge
to only restart the escalation timer if the alarm is configured with escalation information.
Overhaul the unit tests to wait for events instead of sleeping for an arbitrary time, where practical.
Requires:
ts_utils 1.1
ts_salobj 6.3
ts_xml 10.1
ts_idl 2
IDL files for
Watcher
,ATDome
,ESS
,MTMount
,ScriptQueue
, andTest
, plus any additional SAL components you wish to watch. These may be generated usingmake_idl_files.py
v1.6.0¶
Changes:
Add rules (most of which require ts_xml 10.1):
rules.MTCCWFollowingRotator
: warn when the MT camera cable wrap is not following the camera rotator.
Add classes
FieldWrapperList
,BaseFilteredFieldWrapper
,FilteredEssFieldWrapper
, andIndexedEssFilteredFieldWrapper
. These allow rules to handle data from CSCs such as the ESS, that publish the the same topic with different data for different subystems.Add class
ThresholdHandler
, which computes alarm severity by comparing a value to one or more threshold levels.BaseRule
changes:Add method
BaseRule.setup
for finishing construction and performing additional validation, after the model and topics are made. This is where a rule can add filtered field wrappers.Add a default implementation of
BaseRule.is_usable
. Use this default implementation for all existing rules.Add an attribute
remote_keys
, which is used byBaseRule.is_usable
.
Model
changes:Change the type of
disabled_sal_components
fromlist
tofrozenset
.Call
BaseRule.setup
after creating all topics.
TopicCallback
: add support for wrapper callbacks.Add function
get_topic_key
.Use package
ts_utils
.Remove the
base
subpackage and move the contents up one level.Modernize unit tests to use bare assert.
Make
test_auto_acknowledge_unacknowledge
intest_csc.py
more robust by allowing a bit of clock jitter.Add
Jenkinsfile
.
Requires:
ts_utils 1
ts_salobj 6.3
ts_xml 10.1
ts_idl 2
IDL files for
Watcher
,ATDome
,ESS
,MTMount
,ScriptQueue
, andTest
, plus any additional SAL components you wish to watch. These may be generated usingmake_idl_files.py
v1.5.3¶
Changes:
Use
unittest.IsolatedAsyncioTestCase
instead of the abandoned asynctest package.Format the code with black 20.8b1.
Requires:
ts_salobj 6.3
ts_xml 7
ts_idl 2
IDL files for
Watcher
,ATDome
,ScriptQueue
, andTest
, plus any SAL components you wish to watch. These may be generated usingmake_idl_files.py
v1.5.2¶
Changes:
Add a Kapacitor rule for the summit and rename the rule for the NCSA test stand.
Requires:
ts_salobj 6.3
ts_xml 7
ts_idl 2
IDL files for
Watcher
,ATDome
,ScriptQueue
, andTest
, plus any SAL components you wish to watch. These may be generated usingmake_idl_files.py
v1.5.1¶
Changes:
Fix handling of missing version.py file.
Requires:
ts_salobj 6.3
ts_xml 7
ts_idl 2
IDL files for
Watcher
,ATDome
,ScriptQueue
, andTest
, plus any SAL components you wish to watch. These may be generated usingmake_idl_files.py
v1.5.0¶
Changes:
Store the CSC configuration schema in code. This requires ts_salobj 6.3.
Requires:
ts_salobj 6.3
ts_xml 7
ts_idl 2
IDL files for
Watcher
,ATDome
,ScriptQueue
, andTest
, plus any SAL components you wish to watch. These may be generated usingmake_idl_files.py
v1.4.3¶
Changes:
WatcherCsc
: setversion
class variable. Test that this sets the cscVersion field of the softwareVersions event.Modernize doc/conf.py for documenteer 0.6.
Requires:
ts_salobj 6.1
ts_xml 4.6 - 6
ts_idl 2
IDL files for
Watcher
,ATDome
,ScriptQueue
, andTest
, plus any SAL components you wish to watch. These may be generated usingmake_idl_files.py
v1.4.2¶
Changes:
Update Jenkinsfile.conda to use the shared library.
Pin the versions of ts_idl and ts_salobj in conda/meta.yaml.
Requires:
ts_salobj 6.1
ts_xml 4.6 - 6
ts_idl 2
IDL files for
Watcher
,ATDome
,ScriptQueue
, andTest
, plus any SAL components you wish to watch. These may be generated usingmake_idl_files.py
v1.4.1¶
Changes:
Fix ts-idl package name run dependency in conda recipe.
Minor updates to conda recipe.
Requires:
ts_salobj 6.1
ts_xml 4.6 - 6
ts_idl 2
IDL files for
Watcher
,ATDome
,ScriptQueue
, andTest
, plus any SAL components you wish to watch. These may be generated usingmake_idl_files.py
v1.4.0¶
Changes:
Update for ts_salobj 6.1, which is required.
Add
WatcherCsc
constructor argumentsettings_to_apply
and set class variablerequire_settings = True
.Fix deprecation warnings about calling get(flush=False) on read topics.
Remove obsolete .travis.yml file.
Update to use
pre-commit
to maintainflake8
andblack
compliance.
Requires:
ts_salobj 6.1
ts_xml 4.6 - 6
ts_idl 2
IDL files for
Watcher
,ATDome
,ScriptQueue
, andTest
, plus any SAL components you wish to watch. These may be generated usingmake_idl_files.py
v1.3.3¶
Changes:
Bug fix: Model mis-handled rules with no configuration.
Improved a unit test to catch ts_salobj bug DM-27380.
Requires:
ts_salobj 6
ts_xml 4.6 - 6
ts_idl 2
IDL files for
Watcher
,ATDome
,ScriptQueue
, andTest
, plus any SAL components you wish to watch. These may be generated usingmake_idl_files.py
v1.3.2¶
Changes:
Fix the requirements for 1.3.0 and 1.3.1 in the version history.
Requires:
ts_salobj 6
ts_xml 4.6 - 6
ts_idl 2
IDL files for
Watcher
,ATDome
,ScriptQueue
, andTest
, plus any SAL components you wish to watch. These may be generated usingmake_idl_files.py
v1.3.1¶
Changes:
Add the
kapacitor
directory to save Kapacitor alert scripts.
Requires:
ts_salobj 6
ts_xml 4.6 - 6
ts_idl 2
IDL files for
Watcher
,ATDome
,ScriptQueue
, andTest
, plus any SAL components you wish to watch. These may be generated usingmake_idl_files.py
v1.3.0¶
Changes:
Add configuration for escalation.
Set the escalated fields of Alarm events.
Add optional
delay
andrepeats
configuration fields torules.test.ConfiguredSeverities
.Improve the git pre-commit hook.
Update the docs to link ts_sal and ts_xml.
Add
valid_simulation_modes
class variable toWatcherCsc
.
Requires:
ts_salobj 6
ts_xml 4.6 - 6
ts_idl 2
IDL files for
Watcher
,ATDome
,ScriptQueue
, andTest
, plus any SAL components you wish to watch. These may be generated usingmake_idl_files.py
v1.2.0¶
Changes:
Add
bin/command_watcher.py
: a Watcher commander.Stop publishing
alarm.timestampSeverityNewest
; it was causing too many unnecessary alarm messages.Make the
showAlarms
command only work if the CSC is enabled. It would fail in interesting ways if the CSC was not enabled.
Requires:
ts_salobj 5.11 - 6
ts_xml 4.6 - 6
ts_idl 1
IDL files for
Watcher
,ATDome
,ScriptQueue
, andTest
, plus any SAL components you wish to watch. These may be generated usingmake_idl_files.py
v1.1.0¶
Changes:
Update for compatibility with ts_salobj 6.
Requires:
ts_salobj 5.11 - 6
ts_xml 4.6 - 6
ts_idl 1
IDL files for
Watcher
,ATDome
,ScriptQueue
, andTest
, plus any SAL components you wish to watch. These may be generated usingmake_idl_files.py
v1.0.3¶
Changes:
Add conda package configuration file and Jenkinsfile script to manage build process.
Requires:
ts_salobj 5.11
ts_xml 4.6
ts_idl 1
IDL files for
Watcher
,ATDome
,ScriptQueue
, andTest
, plus any SAL components you wish to watch. These may be generated usingmake_idl_files.py
v1.0.2¶
Changes:
Add
tests/test_black.py
to verify that files are formatted with black. This requires ts_salobj 5.11 or later.Update test_csc.py to use
lsst.ts.salobj.BaseCscTestCase
, which also makes it compatible with salobj 5.12.Update test_remote_wrapper.py to make it compatible with salobj 5.12.
Update
.travis.yml
to removesudo: false
to github travis checks pass once again.
Requires:
ts_salobj 5.11
ts_xml 4.6
ts_idl 1
IDL files for
Watcher
,ATDome
,ScriptQueue
, andTest
, plus any SAL components you wish to watch. These may be generated usingmake_idl_files.py
v1.0.1¶
Major changes:
Code formatted by
black
, with a pre-commit hook to enforce this. See the README file for configuration instructions.
v1.0.0¶
Added the unacknowledge command. Added automatic unacknowledgement of active alarms and automatic acknowledgement of stale alarms, after configurable durations.
Requires:
ts_salobj 5.2
ts_xml 4.6
ts_idl 1
IDL files for
Watcher
,ATDome
,ScriptQueue
, andTest
, plus any SAL components you wish to watch. These may be generated usingmake_idl_files.py
v0.4.0¶
Update for ts_salobj 5.2: rename initial_simulation_mode to simulation_mode.
Requires:
ts_salobj 5.2
ts_xml 4.5
ts_idl 1
IDL files for
Watcher
,ATDome
,ScriptQueue
, andTest
, plus any SAL components you wish to watch. These may be generated usingmake_idl_files.py
v0.3.0¶
Add the showAlarms
command.
Make the rules.test.ConfiguredSeverities
rule cycle forever.
Requires:
ts_salobj 5.
ts_xml 4.5.
ts_idl 1.
IDL files for
Watcher
,ATDome
,ScriptQueue
, andTest
, plus any SAL components you wish to watch. These may be generated usingmake_idl_files.py
.
v0.2.2¶
Add ts_salobj to the ups table file.
Requires:
ts_salobj 4.5.
ts_xml 4.3 for the Watcher SAL component.
ts_idl 0.3 for the Watcher enums.
IDL files for
Watcher
,ATDome
,ScriptQueue
, andTest
, plus any SAL components you wish to watch. These may be generated usingmake_idl_files.py
.
v0.2.1¶
Fixed an incompatibility with ts_salobj 4.5 (use of a function only available in ts_salobj v5).
Requires:
ts_salobj 4.5.
ts_xml 4.3 for the Watcher SAL component.
ts_idl 0.3 for the Watcher enums.
IDL files for
Watcher
,ATDome
,ScriptQueue
, andTest
, plus any SAL components you wish to watch. These may be generated usingmake_idl_files.py
.
v0.2.0¶
Add mute
and unmute
commands.
Add a rules.Clock
rule to watch clock error.
Bug fixes:
The
acknowledge
command was documented in ts_xml to support regular expressions, but did not.Model.__aenter__
calledModel.start
instead of awaitingstart_task
. Only the constructor should callModel.start
.Model.enable
ran topic callbacks once for every remote, rather than once period.
Requires:
ts_salobj 4.5.
ts_xml 4.3 for the Watcher SAL component.
ts_idl 0.3 for the Watcher enums.
IDL files for
Watcher
,ATDome
,ScriptQueue
, andTest
, plus any SAL components you wish to watch. These may be generated usingmake_idl_files.py
.
v0.1.0¶
First preliminary release.
There are a few rules and the unit tests pass, but we will need at least one configuration file in ts_config_ocs to declare it fully functional, and preferably more rules as well.
Requires:
ts_salobj 4.5.
ts_xml v4.1.0 for the Watcher SAL component.
ts_idl 0.3 for the Watcher enums.
IDL files for
Watcher
,ATDome
,ScriptQueue
, andTest
, plus any SAL components you wish to watch. These may be generated usingmake_idl_files.py
.