Ocs

Latest version: v0.10.4

Safety actively analyzes 622435 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 5

0.10.4

Description
Release v0.10.4 fixes a data duplication bug that can occur under certain circumstances in any agent that subscribes to a Feed. Within the core OCS agents this means the aggregator and InfluxDB publisher agents. The bug occurs when a network interruption disrupts the connection between the crossbar server and the subscribing agent, depending on the state of the crossbar server. Details are available in 366. Users are encouraged to update their agents.

What's Changed
* Bump actions/setup-python from 4 to 5 by dependabot in https://github.com/simonsobs/ocs/pull/364
* Fix duplicate data frame writes in Aggregator agent by BrianJKoopman in https://github.com/simonsobs/ocs/pull/366


**Full Changelog**: https://github.com/simonsobs/ocs/compare/v0.10.3...v0.10.4

0.10.3

Description
Release v0.10.3 focuses on the Host Manager Agent and introduces a configurable agent timeout for crossbar disconnects. Users are encouraged to upgrade.

Host Manager
There are many bug fixes and some new features for the Host Manager introduced by 353. For details see the ["Centralized Management"](https://ocs.readthedocs.io/en/main/user/centralized_management.html#) page in the docs. One highlight in particular is the new "manage" options, detailed in ["Advanced host config"](https://ocs.readthedocs.io/en/main/user/centralized_management.html#advanced-host-config). These changes should also enable running a single Host Manager where two previously were run (one for agents on the host, and one for agents within Docker containers.)

Crossbar Timeout
The "crossbar-timeout" setting allows for agents to wait longer for the crossbar server to come back online before shutting down. They can wait indefinitely if this is set to 0. See ["Crossbar Connection Timeout"](https://ocs.readthedocs.io/en/main/user/site_config.html#crossbar-connection-timeout) for more details.

What's Changed

New Features
* HostManager overhaul by mhasself in https://github.com/simonsobs/ocs/pull/353
* Allow user configurable agent timeout for crossbar disconnection by BrianJKoopman in https://github.com/simonsobs/ocs/pull/337
* Add SITE_HOST envvar to ocs-agent-cli by mhasself in https://github.com/simonsobs/ocs/pull/354

Bug Fixes
* systemd service file: add RestartSec=10s by mhasself in https://github.com/simonsobs/ocs/pull/344
* HostManager overhaul by mhasself in https://github.com/simonsobs/ocs/pull/353

Version Updates
* [pre-commit.ci] pre-commit autoupdate by pre-commit-ci in https://github.com/simonsobs/ocs/pull/340
* [pre-commit.ci] pre-commit autoupdate by pre-commit-ci in https://github.com/simonsobs/ocs/pull/346
* Bump docker/login-action from 2 to 3 by dependabot in https://github.com/simonsobs/ocs/pull/352
* [pre-commit.ci] pre-commit autoupdate by pre-commit-ci in https://github.com/simonsobs/ocs/pull/350
* Bump actions/checkout from 3 to 4 by dependabot in https://github.com/simonsobs/ocs/pull/349
* Bump styfle/cancel-workflow-action from 0.11.0 to 0.12.0 by dependabot in https://github.com/simonsobs/ocs/pull/355
* [pre-commit.ci] pre-commit autoupdate by pre-commit-ci in https://github.com/simonsobs/ocs/pull/358

Testing
* Replace pytest-docker-compose with pytest-docker plugin by BrianJKoopman in https://github.com/simonsobs/ocs/pull/342

**Full Changelog**: https://github.com/simonsobs/ocs/compare/v0.10.2...v0.10.3

0.10.2

Description
Release v0.10.2 mostly contains bug fixes and quality of life improvements.

Address Root
Bug fix 327 effectively adds the functionality provided by the "address_root". This allows you to set the address root to a string other than 'observatory', however you must then adjust settings in your crossbar server configuration. See the updated [System Configuration](https://ocs.readthedocs.io/en/main/user/configuration.html) pages for the [SCF](https://ocs.readthedocs.io/en/main/user/site_config.html) and [Crossbar Configuration](https://ocs.readthedocs.io/en/main/user/crossbar_config.html) for more details.

> **Note**
> Changing the address root on an existing system will have implications for viewing the data in Grafana and loading from .g3 file, as all feed names will change to include the new address root.

What's Changed

New Features
* Separate blocks for each registered operation by jlashner in https://github.com/simonsobs/ocs/pull/312
* ocs-agent-cli renames itself in process list by mhasself in https://github.com/simonsobs/ocs/pull/325

Bug Fixes
* Add `importlib_metadata` dependency for ocs-agent-cli by BrianJKoopman in https://github.com/simonsobs/ocs/pull/323
* Revist address_root != "observatory" by mhasself in https://github.com/simonsobs/ocs/pull/327
* Cast tuple param before type check by BrianJKoopman in https://github.com/simonsobs/ocs/pull/332
* Support direct start calls with params to param decorated Tasks/Processes by BrianJKoopman in https://github.com/simonsobs/ocs/pull/333

Testing
* Test when registry block changes by BrianJKoopman in https://github.com/simonsobs/ocs/pull/314
* Test/development portability by cnweaver in https://github.com/simonsobs/ocs/pull/319

Documentation
* Update session.data example in main registry process by BrianJKoopman in https://github.com/simonsobs/ocs/pull/310
* Fix readthedocs builds by BrianJKoopman in https://github.com/simonsobs/ocs/pull/328

Version Updates
* [pre-commit.ci] pre-commit autoupdate by pre-commit-ci in https://github.com/simonsobs/ocs/pull/308
* [pre-commit.ci] pre-commit autoupdate by pre-commit-ci in https://github.com/simonsobs/ocs/pull/316
* [pre-commit.ci] pre-commit autoupdate by pre-commit-ci in https://github.com/simonsobs/ocs/pull/321

Misc.
* Replace master and develop branches with "main" branch by BrianJKoopman in https://github.com/simonsobs/ocs/pull/309
* Fix the github workflow badge by BrianJKoopman in https://github.com/simonsobs/ocs/pull/315
* Change warning text by mhasself in https://github.com/simonsobs/ocs/pull/318

**Full Changelog**: https://github.com/simonsobs/ocs/compare/v0.10.1...v0.10.2

0.10.1

Description
Release v0.10.1 is mostly bug fixes and performance improvements.

Users are especially encouraged to upgrade the registry and influxdb publisher agents, as major performance improvements have been made which become necessary when the OCS network grows to a certain size. These improvements reduce I/O load on the system.

What's Changed

New Features
* Adds wait-time arg to registry by jlashner in https://github.com/simonsobs/ocs/pull/296

Bug Fixes
* Check for bool when formatting line protocol by BrianJKoopman in https://github.com/simonsobs/ocs/pull/297
* Combine payloads before writing to influxdb by BrianJKoopman in https://github.com/simonsobs/ocs/pull/301
* Update ocs-local-support so it can launch HostManager again by mhasself in https://github.com/simonsobs/ocs/pull/298
* Add boolean support to Aggregator by BrianJKoopman in https://github.com/simonsobs/ocs/pull/299
* Remove 10 second fresh_time on registry feed by BrianJKoopman in https://github.com/simonsobs/ocs/pull/303
* Sanitize session data by mhasself in https://github.com/simonsobs/ocs/pull/304

Version Updates
* Bump actions/checkout from 2 to 3 by dependabot in https://github.com/simonsobs/ocs/pull/292
* Bump actions/setup-python from 2 to 4 by dependabot in https://github.com/simonsobs/ocs/pull/291
* [pre-commit.ci] pre-commit autoupdate by pre-commit-ci in https://github.com/simonsobs/ocs/pull/294

Misc.
* Setup pre-commit and run on all files by BrianJKoopman in https://github.com/simonsobs/ocs/pull/288
* Configure dependabot by BrianJKoopman in https://github.com/simonsobs/ocs/pull/289
* GitHub Actions workflow improvements by BrianJKoopman in https://github.com/simonsobs/ocs/pull/293
* Deploy on v0* pre-release tags by BrianJKoopman in https://github.com/simonsobs/ocs/pull/306

New Contributors
* dependabot made their first contribution in https://github.com/simonsobs/ocs/pull/292
* pre-commit-ci made their first contribution in https://github.com/simonsobs/ocs/pull/294

**Full Changelog**: https://github.com/simonsobs/ocs/compare/v0.10.0...v0.10.1

0.10.0

Description
<!--- Describe your changes in detail -->
There are several large changes in release v0.10.0. These may require user action, as described below.

ocs-web
ocs-web has been [removed from this repository](https://github.com/simonsobs/ocs/pull/280). It has been replaced by an improved Vue.js version kept in [simonsobs/ocs-web](https://github.com/simonsobs/ocs-web).

Current users of ocs-web should upgrade to the new Vue.js based version. Setup instructions, including how to run with the provided Docker image, are located in the [ocs-web repo's README file](https://github.com/simonsobs/ocs-web/blob/main/README.md).

OCS Plugins
v0.10.0 [adds](https://github.com/simonsobs/ocs/pull/284) the [OCS Plugin system](https://ocs.readthedocs.io/en/develop/developer/writing-plugins.html). This has moved all core OCS Agents to be within the ocs package. (They were previously in a separate `agents/` directory.) This allows core Agent installation via pip from PyPI.

During this change all core ocs Agent Docker images have been merged into a single image. All core Agents can now be run from the [simonsobs/ocs image](https://hub.docker.com/r/simonsobs/ocs). Configuration of the image can now largely be done by setting environment variables. For example, to run a fake data Agent a docker-compose service would look like:

fake-data1:
image: simonsobs/ocs:v0.10.0
hostname: ocs-docker
environment:
- INSTANCE_ID=fake-data1
volumes:
- ${OCS_CONFIG_DIR}:/config:ro


Please see each Agent's respective reference page for updated configuration file information.

Separate Agent images will not be built moving forward, so in order to update you must switch to using the new `simonsobs/ocs:v0.10.0` image.

Task Abort
Task aborting has been a long planned feature of ocs. It is now [implemented](https://github.com/simonsobs/ocs/pull/253). Agent developers can now add the ability to abort tasks. You can read about how to do so in the [newly re-written](https://github.com/simonsobs/ocs/pull/279) [Agent Writing Guide](https://ocs.readthedocs.io/en/develop/developer/writing_an_agent/index.html). More specifically see "[Aborting a Task](https://ocs.readthedocs.io/en/develop/developer/writing_an_agent/task.html#aborting-a-task)".

OCS now tries to run the Process stop command in the same threading context as the Process itself (the same is true for Task aborts.) Existing Agents with their process start/stop commands in differing contexts can still be run, but OCS will print a warning. Agent developers are encouraged to put their start/stops in the same context. See the Agent guide above for details.

What's Changed
New Features
* Create OCS Plugin system by BrianJKoopman in https://github.com/simonsobs/ocs/pull/284
* Task abort and other stop fix-ups by mhasself in https://github.com/simonsobs/ocs/pull/253

Documentation Updates
* docs: Address quickstart guide issues by BrianJKoopman in https://github.com/simonsobs/ocs/pull/276
* Rewrite Agent developer guide by BrianJKoopman in https://github.com/simonsobs/ocs/pull/279
* Fix broken link to agent docs template by BrianJKoopman in https://github.com/simonsobs/ocs/pull/283
* docs: Fix path to ocs_plugin_standard.py in agent guide by BrianJKoopman in https://github.com/simonsobs/ocs/pull/286

Bug Fixes
* Fix flaky registry test by BrianJKoopman in https://github.com/simonsobs/ocs/pull/278

Misc.
* Remove OCS web by mhasself in https://github.com/simonsobs/ocs/pull/280

**Full Changelog**: https://github.com/simonsobs/ocs/compare/v0.9.3...v0.10.0

0.9.3

What's Changed
* Replace docker login with docker/login-action by BrianJKoopman in https://github.com/simonsobs/ocs/pull/267
* Add agent_class to encoded feed by jlashner in https://github.com/simonsobs/ocs/pull/265
* Passes environment variables to docker subprocesses by jlashner in https://github.com/simonsobs/ocs/pull/268
* Add boolean support to feeds by BrianJKoopman in https://github.com/simonsobs/ocs/pull/269
* Create __repr__ for OCSClient by BrianJKoopman in https://github.com/simonsobs/ocs/pull/270
* Enable data feed buffer in fake data agent by BrianJKoopman in https://github.com/simonsobs/ocs/pull/271


**Full Changelog**: https://github.com/simonsobs/ocs/compare/v0.9.2...v0.9.3

Page 1 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.