Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bioengine/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
Must stay in lock-step with ``pyproject.toml``'s ``version`` field.
The ``version-check.yml`` CI workflow enforces the match.
"""
__version__ = "0.16.27"
__version__ = "0.16.28"
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "bioengine"
version = "0.16.27"
version = "0.16.28"
description = "BioEngine — CLI and SDK for deploying and calling AI model services on BioEngine workers"
requires-python = ">=3.11"
authors = [
Expand Down
23 changes: 17 additions & 6 deletions tests/cli/test_worker_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,13 +207,24 @@ def test_worker_arguments_are_forwarded_verbatim():
assert _build("native", worker_args=args)[3:] == list(args)


def test_an_option_the_cli_also_defines_still_reaches_the_worker():
"""``--workspace-dir`` after ``--`` configures the worker, not the container."""
result = _run(
["start", "--runtime", "native", "--dry-run", "--", "--workspace-dir", "/data/ws"]
)
def test_an_option_the_cli_also_defines_still_reaches_the_worker(monkeypatch):
"""``--workspace-dir`` after ``--`` configures the worker, not the container.

Asserted against the argv the runtime was called with rather than against
``result.output``: click 8.2 dropped ``mix_stderr``, so ``output`` is stdout
and stderr merged, and anything else the process writes to stderr inside the
invoke window would land in it.
"""
started = _fake_runtime(monkeypatch, "")
result = _run(["start", "--runtime", "native", "--", "--workspace-dir", "/data/ws"])
assert result.exit_code == 0, result.output
assert result.output.strip().endswith("--workspace-dir /data/ws")
assert started[0][0] == [
"python",
"-m",
"bioengine.worker",
"--workspace-dir",
"/data/ws",
]


def test_no_worker_arguments_still_starts_the_worker_module():
Expand Down
Loading