Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add event type filtering to listener command #337

Open
wants to merge 33 commits into
base: main
Choose a base branch
from

Conversation

callumforrester
Copy link
Collaborator

No description provided.

Comment on lines 74 to 88
class LoggingLevelConfig(BlueapiBaseModel):
"""
Log levels of blueapi applications and components
"""

service: LogLevel = "INFO"
cli: LogLevel = "ERROR"


class LoggingConfig(BlueapiBaseModel):
level: LogLevel = "INFO"
"""
Config for how blueapi logs behave
"""

level: LoggingLevelConfig = Field(default_factory=LoggingLevelConfig)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this is needed any more, the CLI and server just have entirely separate configurations, so do not need a shared configuration with separate elements.

joeshannon and others added 25 commits May 7, 2024 11:27
This is a refactor to avoid direct access to handler components from
the REST app.

To allow further changes to the handler management of the worker and
run engine in future.

In preparation for #317
Just a try except around the connection attempt. It displays the
failure to connect in the logs but does not fail fast. It allows the
rest of the application setup to complete just without a connection to a
message bus. You can then `crtl+c` to close it.

I was advised to just add this fix until the subprocess work is done
then we can re-address the behaviour we want.
Create SubprocessHandler as additional BlueskyHandler implementation to
forward calls to a subprocess. This is to allow a new REST endpoint with
the result of reloading the plans and devices without having to restart
the service.

Additionally the API version is incremented due to new schema and a
reference to delete_task replaced with clear_pending_task which was
missed in a previous PR.

Further improvements required in later PRs.
Closes #369

The validated and processed parameters from a plan request were being
cached inside the `Task` class because they were needed in two separate
threads. Unfortunately, with the introduction of the subprocess (#343),
pickling was causing issues with the cached object (see #369 for more
details).

This PR is the simplest solution: remove the cache and generate the
parameters twice. It also adds regression tests for the bug case in #369
…374)

- Removes the mounting of a manually formatted secret containing
the credentials
Changes:
- Add logo from #338
- Improve architecture diagram on docs landing page based on feedback

---------

Co-authored-by: DiamondJoseph <[email protected]>
quick renaming 36 refs and delete the class
add instruction how to escape a failure mode when running the image
Convert project from python3-pip-skeleton to python-copier-template
version 2.0.1.

This involves numerous changes most notably restructuring of
documentation into a single manual.

Additionally many of the pre-commit tools have been replaced with ruff.
The ruff ruleset is slightly different to the previous tools so minor
changes have been made to the source code.

Extensions to this task for completion later:

* Convert all documentation to markdown
* Fix relative image handling in README
* Add more detail about running blueapi tests
* Enable ruff's "pyupgrade" ruleset
Issues fixed automatically.

This also removes typing_extensions as we are not supporting older
versions of Python now.

Fixes #393.
Change owner to core data acq group and add Athena system reference
The logo inclusion is following the approach adopted by other DLS
copier based projects e.g. scanspec.
This is mostly to fix the CI on main before the change to drop python
3.9 is merged and another PR submitted to adapt to latest ophyd-async
and dodal changes.
Fixes #416

Remove Python3.9 check from CI and enforce python>=3.10 in
pyproject.toml.

Adapt to PEP 604 type hint changes and other minor import
changes.

---------

Co-authored-by: Joe Shannon <[email protected]>
This replaces the previous rst version with the exact version in 2.0.1
of the python-copier-template which blueapi is currently based on.

Relates to #359 and #392.
Following on from discussion at:
DiamondLightSource/python-copier-template#136

Specifically, ADRs 0001 & 0002 will remain static in the
python-copier-template and no further ADRs will be added to the
template.

This will ensure there are no conflicts going forward with future
template updates.
Stomp has changed it's name to `stomp-py` rather than `stomp.py`. This
fixes the change
ZohebShaikh and others added 6 commits May 7, 2024 11:29
#384 Moved the coverage settings in pyproject.toml from the pytest
settings to the tox command. Some merge conflict kept the settings in
both places, which interferes with vscode debugging. This PR removes the
redundant settings.
This is required for installing python packages at runtime.

It was previously present in the non-slim python container used before
but this was accidentally removed with the switch to the copier
template.

Fixes #445.
Add new restartOnConfigChange property.

This will cause the deployment to be restarted if the config is changed,
e.g. the set of plans or device modules are updated, when running
helm upgrade.

Use a variation of approach at:

https://helm.sh/docs/howto/charts_tips_and_tricks/#automatically-roll-deployments

Fixes 451.
@callumforrester
Copy link
Collaborator Author

I think this PR badly needs to be rebased on top of main!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants