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.21.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.21.1
Choose a head ref
  • 12 commits
  • 28 files changed
  • 6 contributors

Commits on Oct 20, 2026

  1. chore(deps): update ghcr.io/astral-sh/uv docker tag to v0.13 (#1696)

    This PR contains the following updates:
    
    | Package | Type | Update | Change |
    |---|---|---|---|
    | [ghcr.io/astral-sh/uv](https://redirect.github.com/astral-sh/uv) |
    final | minor | `0.12` → `0.13` |
    
    ---
    
    ### Release Notes
    
    <details>
    <summary>astral-sh/uv (ghcr.io/astral-sh/uv)</summary>
    
    ###
    [`v0.13`](https://redirect.github.com/astral-sh/uv/blob/HEAD/CHANGELOG.md#0130)
    
    Released on 2026-10-09.
    
    uv 0.13.0 makes Python 3.15 the default stable Python version. We've
    also included several breaking changes to improve correctness,
    performance, and compatibility, described below.
    
    **We expect most users to be able to upgrade without making changes.**
    
    While not a breaking change, this release also updates the format of
    many of uv's cache entries to improve performance. **uv may download or
    rebuild dependencies after upgrading**, because some cached entries from
    earlier versions cannot be reused. Multiple versions of uv can still
    safely share the same cache directory.
    
    There are no breaking changes to the configuration of the [uv build
    backend](https://docs.astral.sh/uv/concepts/build-backend/). If your
    `[build-system]` table includes an upper bound on `uv_build`, update it
    to allow `uv_build` 0.13, e.g., `uv_build>=0.13.0,<0.14`.
    
    ##### Breaking changes
    
    - **Use Python 3.15 as the default stable version**
    
    The default stable Python version has changed from 3.14 to 3.15. This
    affects Python downloads when no version is requested or pinned, e.g.,
    when running `uv python install`.
    
    uv continues to use compatible Python installations that are already
    present. For example, `uv venv` can still use an installed Python 3.14.
    If no suitable interpreter is installed and automatic downloads are
    enabled, commands such as `uv venv` and `uvx python` can now download
    Python 3.15.
    
    You can opt out of this behavior by requesting Python 3.14 explicitly,
    e.g., `uv venv --python 3.14`. For projects, use `uv python pin 3.14` to
    record the version in `.python-version`.
    
    - **Honor `--require-hashes` in included constraints files**
    ([#&#8203;22275](https://redirect.github.com/astral-sh/uv/pull/22275))
    
    Previously, uv ignored `--require-hashes` in constraints files included
    with `-c` from a requirements file. Now, uv honors the directive and
    requires hashes for all requirements in the installation. Installs that
    previously succeeded can now fail if a requirement is missing a hash.
    
    You cannot opt out while the directive is present. Add the missing
    hashes to your requirements, or remove the `--require-hashes` directive
    from the included constraints file if hash checking is not intended.
    
    - **Prefer native Python on Windows ARM64**
    ([#&#8203;22100](https://redirect.github.com/astral-sh/uv/pull/22100))
    
    Previously, ARM64 builds of uv preferred emulated `x86_64` Python
    installations because native wheel support was limited. Now, uv prefers
    native ARM64 (`aarch64`) interpreters across Python versions.
    
    This follows similar changes in
    [CPython](https://discuss.python.org/t/python-on-windows-arm64/104524),
    the official Windows [Python install
    manager](https://discuss.python.org/t/python-install-manager-26-4/108846),
    and GitHub's
    [actions/setup-python](https://redirect.github.com/actions/setup-python#supported-architectures).
    
    When a native interpreter is unavailable, uv continues to fall back to
    `x86_64`, then 32-bit `x86`.
    
    You can opt out of this behavior by setting `UV_PYTHON_ARCH=x86_64` or
    requesting an explicit architecture, e.g.,
    `cpython-3.14-windows-x86_64`. If you are using `setup-uv`, you can set
    [`python-arch:
    x86_64`](https://redirect.github.com/astral-sh/setup-uv#python-architecture)
    instead.
    
    - **Reject editable requirements in included constraints files**
    ([#&#8203;22282](https://redirect.github.com/astral-sh/uv/pull/22282))
    
    Previously, uv silently ignored editable (`-e`) requirements in
    constraints files included with `-c` from a requirements file. Now, uv
    rejects these requirements with an error, matching [pip's
    behavior](https://pip.pypa.io/en/stable/user_guide/#constraints-files).
    
    You cannot opt out of this behavior. Move editable requirements to a
    requirements file passed with `-r`, or pass them directly with
    `--editable`, instead of including them in a constraints file.
    
    - **Omit the distutils startup patch on Python 3.10 and later**
    ([#&#8203;22096](https://redirect.github.com/astral-sh/uv/pull/22096))
    
    Previously, uv installed `_virtualenv.py` and `_virtualenv.pth` into
    every new virtual environment to prevent distutils configuration from
    changing installation paths. Now, like [`virtualenv`
    21.6.0](https://redirect.github.com/pypa/virtualenv/releases/tag/21.6.0),
    uv omits these files on Python 3.10 and later, which already ignore the
    affected configuration keys. This reduces Python startup overhead.
    Python 3.9 and earlier retain the patch.
    
    You cannot opt out of this behavior. Existing virtual environments are
    not modified automatically. Recreate an environment with Python 3.10 or
    later to remove the patch.
    
      This stabilizes the `no-distutils-patch` preview feature.
    
    - **Treat requirement-file option values as single paths**
    ([#&#8203;22290](https://redirect.github.com/astral-sh/uv/pull/22290))
    
    Previously, uv split values passed to `--constraint`, `--override`,
    `--exclude`, and `--build-constraint` on spaces, even when quoted. Now,
    each value is treated as a single path, allowing file paths containing
    spaces.
    
    You cannot opt out of this behavior. Repeat the option to provide
    multiple files. For example, replace `-c "a.txt b.txt"` with `-c a.txt
    -c b.txt`.
    
    Space-separated lists in `UV_CONSTRAINT`, `UV_OVERRIDE`, `UV_EXCLUDE`,
    and `UV_BUILD_CONSTRAINT` remain supported.
    
    - **Use `tar-codec` for tar archives by default**
    ([#&#8203;22094](https://redirect.github.com/astral-sh/uv/pull/22094))
    
    Previously, uv used `astral-tokio-tar` to extract tar archives, build
    source distributions with `uv_build`, and read their metadata for `uv
    publish`. Now, uv uses `tar-codec`, which applies stricter validation
    when reading archives.
    
    uv may now reject archives containing hard links or unsupported tar
    extensions that previous versions accepted. Source distributions created
    by `uv_build` can also have different archive bytes and hashes.
    
      You can opt out of this behavior by setting `UV_LEGACY_TAR_BACKEND=1`.
    
      This stabilizes the `tar-codec` preview feature.
    
    - **Reject `uv build --clear` output directories that contain a build
    source**
      ([#&#8203;22276](https://redirect.github.com/astral-sh/uv/pull/22276))
    
    Previously, `uv build --clear` could delete a project or input source
    distribution when the
    output directory contained the source. Now, uv rejects these output
    directories, including
    equivalent paths reached through symlinks, before clearing any build
    output.
    
    Select an output directory that does not contain any build sources, or
    omit `--clear`.
    
    ##### Python
    
    - Add CPython 3.15.0
    ([#&#8203;22400](https://redirect.github.com/astral-sh/uv/pull/22400))
    
    ##### Preview features
    
    - Require hashes for build dependencies, including transitive
    dependencies, with `--require-build-hashes`
    ([#&#8203;21411](https://redirect.github.com/astral-sh/uv/pull/21411))
    
    ##### Performance
    
    - Speed up revalidation of cached HTTP responses by avoiding rewrites of
    unchanged payloads
    ([#&#8203;22130](https://redirect.github.com/astral-sh/uv/pull/22130))
    - Reduce allocations when reading cached HTTP responses
    ([#&#8203;22136](https://redirect.github.com/astral-sh/uv/pull/22136))
    - Reduce cache storage for HTTP policies and package records
    ([#&#8203;22135](https://redirect.github.com/astral-sh/uv/pull/22135),
    [#&#8203;22133](https://redirect.github.com/astral-sh/uv/pull/22133))
    - Reduce allocations for cached source distribution revisions
    ([#&#8203;22131](https://redirect.github.com/astral-sh/uv/pull/22131))
    
    ##### Bug fixes
    
    - Fix incorrect dependency resolution when reusing source metadata with
    different build settings
    ([#&#8203;22404](https://redirect.github.com/astral-sh/uv/pull/22404))
    - Avoid overlong wheel cache lock filenames on Windows
    ([#&#8203;22134](https://redirect.github.com/astral-sh/uv/pull/22134))
    
    </details>
    
    ---
    
    ### Configuration
    
    📅 **Schedule**: (UTC)
    
    - Branch creation
      - At any time (no schedule defined)
    - Automerge
      - At any time (no schedule defined)
    
    🚦 **Automerge**: Disabled by config. Please merge this manually once you
    are satisfied.
    
    ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
    rebase/retry checkbox.
    
    🔕 **Ignore**: Close this PR and you won't be reminded about this update
    again.
    
    ---
    
    - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
    this box
    
    ---
    
    This PR was generated by [Mend Renovate](https://mend.io/renovate/).
    View the [repository job
    log](https://developer.mend.io/github/DiamondLightSource/blueapi).
    
    <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xMzQuMSIsInVwZGF0ZWRJblZlciI6IjQ0LjEzNC4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
    
    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    Co-authored-by: Dr Fajin Yuan <[email protected]>
    renovate[bot] and fajinyuan authored Oct 20, 2026
    Configuration menu
    Copy the full SHA
    f4624d0 View commit details
    Browse the repository at this point in the history
  2. fix: rollback default python version because of dependencies (#1659)

    because of #1605 dependencies like softIoc Are not currently build for
    python 3.14 ( do not suppy wheels for it)
    ZohebShaikh authored Oct 20, 2026
    Configuration menu
    Copy the full SHA
    66b52cc View commit details
    Browse the repository at this point in the history

Commits on Oct 21, 2026

  1. ci: run blueapi server for system tests in docker compose (#1705)

    ## Summary
    
    The system-test workflow started blueapi with `uv run blueapi serve &`
    on the runner. This moves the server into the system-test compose stack,
    built from the repo `Dockerfile` (`runtime` stage), so CI tests the
    container image.
    
    - **New `blueapi` service in `tests/system_tests/compose.yaml`**
    - It's in a `ci` profile, so `just compose` / `just serve` still run the
    server locally with uv.
      - It uses host networking like the other services.
      - It has a healthcheck on `/healthz`.
    - It waits for `configure-services` to finish, so Keycloak and
    numtracker are configured before blueapi starts.
    - **blueapi server config moved to
    `tests/system_tests/services/blueapi/`.** That's `config.yaml`,
    `config-scratch.yaml` and `start.sh`, and the folder is mounted
    read-only at `/blueapi`. `justfile`, the docs and the system test now
    point at the new `config.yaml` path. `config-cli.yaml` stays where it
    was, because it's the tests' client config.
    - **dodal comes from scratch, not the image.** The runtime image is
    built `--no-dev`, so it has no dodal. `start.sh` runs `setup-scratch`
    with the `config-scratch.yaml` overlay before `serve`. The dodal tag is
    set by `DODAL_VERSION`, which CI reads from `uv.lock`, so it follows
    lock bumps. The overlay only applies in the container, so local servers
    don't need a scratch area.
    - **Device connection fixes**
    - CI sets `COMPOSE_PROFILES=test,ci`. Passing `--profile ci` replaced
    the `test` profile from `tests/system_tests/.env`, so the sim IOCs and
    `ca-gateway` never started.
    - `nofile` is capped at 1024 for blueapi and for `ca-gateway`. The
    gateway comes from the example-services submodule, so its cap is applied
    through an `include` override in
    `services/example-services-override.yaml`. On hosts where Docker's
    default limit is huge (2^31), EPICS CA loops over every possible file
    descriptor, pegs the CPU and times out PV connections.
    - **`_system_test.yml`**
    - Swaps `hoverkraft-tech/compose-action` for
    `docker/setup-compose-action` and plain `docker compose`.
    - Starts the stack, then waits with `up --wait --wait-timeout 600
    blueapi`, which fails straight away if the container exits or turns
    unhealthy. The wait is on blueapi only because `--wait` across the whole
    stack fails when the one-shot `init` container exits.
    - Dumps compose logs on failure, because server output no longer goes to
    the job log.
    
    ## Testing
    
    I ran the stack locally the way CI does, from a clean `down` with
    `COMPOSE_PROFILES=test,ci`:
    
    - Scratch cloned and installed dodal 3.0.3.
    - Both `det` and `stage` connected in about 0.2s. Without the `nofile`
    cap, startup took about 3.5 minutes and at least one device failed.
    - blueapi was healthy about 30s after start.
    - With a bad dodal version, `--wait` failed immediately with `container
    ... exited (1)`.
    
    🤖 Generated with [Claude Code](https://claude.com/claude-code)
    
    ---------
    
    Co-authored-by: Claude Opus 5.5 <[email protected]>
    ZohebShaikh and claude authored Oct 21, 2026
    Configuration menu
    Copy the full SHA
    2357de6 View commit details
    Browse the repository at this point in the history
  2. ci: Cancel superseded CodeQL runs (#1710)

    CodeQL analysis takes ~3.5 min, but runs were sitting pending for up to
    12 min waiting for a runner (e.g. run 39446081054: created 15:11,
    started 15:23). `codeql.yml` had no concurrency group, so every push to
    a PR left older CodeQL runs going, competing for runners with CI.
    
    Adds the same concurrency group `ci.yml` uses so superseded runs are
    cancelled. Cancellation only applies to `pull_request` runs: runs on
    `main` and tags always finish so code scanning results stay current.
    
    🤖 Generated with [Claude Code](https://claude.com/claude-code)
    
    ---------
    
    Co-authored-by: Claude Opus 5.5 <[email protected]>
    ZohebShaikh and claude authored Oct 21, 2026
    Configuration menu
    Copy the full SHA
    1dd8711 View commit details
    Browse the repository at this point in the history
  3. test: remove pytest-timeout (#1707)

    Stacked on #1705.
    
    ## Summary
    Remove `pytest-timeout`, which doesn't work well with `pytest-xdist`.
    This drops the dependency, the `timeout*` settings, `--timeout=60`,
    `--max-worker-restart 0` (only there for timeouts), and the two
    `@pytest.mark.timeout` marks.
    
    ## Notes
    Tests no longer have a per-test time limit. Instead, `timeout-minutes`
    caps the CI jobs: 15 for unit tests and 20 for system tests (they
    currently take about 1 and 2 minutes).
    
    🤖 Generated with [Claude Code](https://claude.com/claude-code)
    
    ---------
    
    Co-authored-by: Claude Opus 5.5 <[email protected]>
    ZohebShaikh and claude authored Oct 21, 2026
    Configuration menu
    Copy the full SHA
    eccfc97 View commit details
    Browse the repository at this point in the history
  4. ci: let cancel-in-progress cancel the container job (#1709)

    ## Summary
    `container` used `if: always()`, which keeps the job running (or starts
    it) after the workflow is cancelled, so `cancel-in-progress` never
    stopped the container build. `!cancelled()` still runs it after test
    failures (needed for the `publish` input) but respects cancellation.
    
    One-line change to `.github/workflows/ci.yml`, based directly on `main`.
    
    ## Test plan
    - [ ] Push two commits in quick succession; the first run's `container`
    job shows as cancelled
    
    🤖 Generated with [Claude Code](https://claude.com/claude-code)
    
    Co-authored-by: Claude Opus 5.5 <[email protected]>
    ZohebShaikh and claude authored Oct 21, 2026
    Configuration menu
    Copy the full SHA
    01a0913 View commit details
    Browse the repository at this point in the history
  5. fix: Convert ValidationErrors into something picklable (#1706)

    Some pydantic `ValidationError`s are picklable but [not
    unpicklable](https://redirect.github.com/pydantic/pydantic/issues/14034).
    Given any exceptions raised in the worker subprocess are passed up to
    the fastapi layer via pickling, this could cause the crash seen in
    #1702.
    
    To avoid this, we can extract the information we need from the
    validation errors in the worker process and convert it into something
    picklable before raising it. This change also adds a regression test
    that would have caught the original issue.
    tpoliaw authored Oct 21, 2026
    Configuration menu
    Copy the full SHA
    5f66f3f View commit details
    Browse the repository at this point in the history
  6. docs: Message Queue (#1682)

    This is my attempt at starting a docs page for the message queue.
    
    ---------
    
    Co-authored-by: Dr Fajin Yuan <[email protected]>
    dan-fernandes and fajinyuan authored Oct 21, 2026
    Configuration menu
    Copy the full SHA
    a1f860f View commit details
    Browse the repository at this point in the history
  7. ci: stop re-running merge queue checks on push to main (#1712)

    Every merged PR ran each workflow twice: once in the merge queue and
    again on push to `main`, on the same commit. The extra `main` runs got
    cancelled by the next merge and showed red (#1706, #1707), and they
    competed for runners, leaving later runs queued. CodeQL in the queue
    also failed when its upload ran after the queue branch had already been
    deleted (run 39579313396: `ref
    'refs/heads/gh-readonly-queue/main/pr-1682-…' not found`).
    
    ## Changes
    - **ci.yml**: on push to `main`, the check jobs (`lint`, `test`,
    `system-test`, `container`, `dist`) are skipped; only `docs` runs, which
    `publish.yml` needs to deploy the `main` docs. Tags still run everything
    for pypi/release.
    - **codeql.yml**: drop `merge_group`. It isn't a required check, and
    push-to-`main` still provides the baseline.
    - **asyncapi.yml / backstage.yml**: drop `push`, since the merge queue
    already validated the commit.
    
    ## After merging, check
    - The merge queue doesn't wait on missing required checks.
    - The `main` push run goes green with only `docs`, and Publish deploys.
    - Codecov no longer gets uploads from `main` pushes; the `main` badge
    will go stale until that's handled separately.
    
    🤖 Generated with [Claude Code](https://claude.com/claude-code)
    
    ---------
    
    Co-authored-by: Claude Opus 5.5 <[email protected]>
    ZohebShaikh and claude authored Oct 21, 2026
    Configuration menu
    Copy the full SHA
    09e0653 View commit details
    Browse the repository at this point in the history
  8. feat: Use websockets if stomp config not present (#1646)

    Update the client's run_task method to use stomp if the configuration is
    present
    and fall back to the new websocket connection if not.
    
    Allows the scripting interface (bc.plans.count(...)) to run without
    configuration using websockets.
    
    The CLI also defaults to websockets if no configuration is present. To
    force
    stomp monitoring, a new --stomp flag is added to be paired with the --ws
    flag.
    
    The previous run_task method on BlueapiClient has been renamed to
    run_stomp and
    run_task will delegate to the correct method depending on the
    configuration
    available. This should not be a breaking change as there is no change in
    behaviour if configuration is present.
    
    ---------
    
    Co-authored-by: Dr Fajin Yuan <[email protected]>
    tpoliaw and fajinyuan authored Oct 21, 2026
    Configuration menu
    Copy the full SHA
    e96a9c5 View commit details
    Browse the repository at this point in the history
  9. chore(deps): lock file maintenance (#1713)

    Hold tiled at 0.2.18: with 0.2.19 the tiled server rejects run metadata
    writes with "403: Access policy rejects the provided access blob",
    failing test_plan_runs and hanging the system tests.
    
    
    Supersedes #1703
    
    ---------
    
    Co-authored-by: Claude Opus 5.5 <[email protected]>
    Co-authored-by: Dr Fajin Yuan <[email protected]>
    3 people authored Oct 21, 2026
    Configuration menu
    Copy the full SHA
    ab6862e View commit details
    Browse the repository at this point in the history
  10. test: add blueapi client integration tests (#1699)

    Co-authored-by: Claude Opus 5.5 <[email protected]>
    Co-authored-by: Dr Fajin Yuan <[email protected]>
    3 people authored Oct 21, 2026
    Configuration menu
    Copy the full SHA
    89952c9 View commit details
    Browse the repository at this point in the history
Loading