Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: DiamondLightSource/blueapi
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1.16.0
Choose a base ref
...
head repository: DiamondLightSource/blueapi
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1.17.0
Choose a head ref
  • 10 commits
  • 27 files changed
  • 3 contributors

Commits on Jun 24, 2026

  1. refactor: Rewrite server middleware with websocket support (#1473)

    The builtin fastapi support for middleware only supports http/rest
    requests. To enable the same middleware for websockets, a new
    implementation of the starlette middleware is required and it makes
    sense to use the same implementation for both protocols.
    
    For rest requests, there should not be any change in behaviour from this
    change.
    tpoliaw authored Jun 24, 2026
    Configuration menu
    Copy the full SHA
    50fd3dd View commit details
    Browse the repository at this point in the history

Commits on Jun 25, 2026

  1. Configuration menu
    Copy the full SHA
    bd58313 View commit details
    Browse the repository at this point in the history
  2. feat: run unit tests in parallel (#1566)

    As we have a 4 core GitHub action run we can utilise it more efficiently
    by running all our unit test in parallel.
    
    Currently it take the following amount of time to run unit test
    
    -  python3.11: 2m       vs now  59s
    - python3.12: 2m 1s   vs now  1m 28s
    - python3.13: 1m 44s vs now  1m 12s
    
    It is consistently less in the future it will be a nice addition to run
    system test in parallel as well. It will require some more work so will
    do it in another PR.
    ZohebShaikh authored Jun 25, 2026
    Configuration menu
    Copy the full SHA
    a7c7d93 View commit details
    Browse the repository at this point in the history
  3. fix: add missing values ApplicationConfig equality check (#1565)

    Currently the following configs are not checked for equality
    ZohebShaikh authored Jun 25, 2026
    Configuration menu
    Copy the full SHA
    8404420 View commit details
    Browse the repository at this point in the history
  4. chore: Add just task to launch repl with blueapi client (#1568)

    $ just repl
    
    will now launch a repl (using ptpython) with an initialized
    BlueapiClient named `bc` using the config from the system tests (the
    same used by `just serve` to run the server).
    tpoliaw authored Jun 25, 2026
    Configuration menu
    Copy the full SHA
    0d507d1 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    8d585a9 View commit details
    Browse the repository at this point in the history

Commits on Jun 26, 2026

  1. Configuration menu
    Copy the full SHA
    54b179b View commit details
    Browse the repository at this point in the history
  2. fix: Remove dodal from default application config (#1573)

    The default application still included dodal plans as a default. With
    the change to remove this dependency from the default application this
    would cause the server to error when trying to fetch plans. This
    replaces those defaults with an empty list.
    abbiemery authored Jun 26, 2026
    Configuration menu
    Copy the full SHA
    7622ee0 View commit details
    Browse the repository at this point in the history
  3. fix: Ignore NameError when introspecting plan functions (#1575)

    fix: Ignore NameError when introspecting plan functions
    
    When getting type hints to determine if a function is a plan, a
    `NameError` can be raised (specifically when checking `pydantic.Field`
    in this case) and the context loading crashes. Ignoring the error in the
    same way that we ignore `TypeError` allows us to ignore broken types.
    
    As we are only interested in specific return types (`Generator`) this
    shouldn't affect which functions are treated as plans.
    
    Specific symptoms/causes:
    In pydantic `Field` has an argument with a type hint of (via an alias or
    two) `JsonValue`. This is defined as a recursive alias
    
    JsonValue: TypeAlias = Union[int, float, str, bool, None,
    list['JsonValue'], 'JsonDict']
        JsonDict: TypeAlias = dict[str, JsonValue]
    
    when `get_type_hints` is called on `Field` a `NameError` is raised.
    
    This can be seen in a python repl without any blueapi related code
    
        >>> from typing import get_type_hints
        >>> from pydantic import Field
        >>> get_type_hints(Field)
        Traceback (most recent call last):
        ...
        NameError: name 'JsonValue' is not defined
    
    In blueapi, this is a problem if any module included via a PlanSource
    has `Field` as a top level object.
    tpoliaw authored Jun 26, 2026
    Configuration menu
    Copy the full SHA
    315665f View commit details
    Browse the repository at this point in the history
  4. fix: remove --no-deps flag in scratch install (#1572)

    After removing dodal as dependency in #1534. It becomes difficult for
    village blueapi to install their plans etc because scratch does install
    with no dependencies. To make the release usable again we are removing
    the flag, while we figure out a long term solution for this problem.
    ZohebShaikh authored Jun 26, 2026
    Configuration menu
    Copy the full SHA
    f6eebe6 View commit details
    Browse the repository at this point in the history
Loading