Skip to content

fix(ci): select all downstream harnesses when runtime-server changes - #413

Open
phatloi0010 wants to merge 1 commit into
TIGER-AI-Lab:mainfrom
phatloi0010:fix/ci-runtime-server-harness-selection-365
Open

phatloi0010 wants to merge 1 commit into
TIGER-AI-Lab:mainfrom
phatloi0010:fix/ci-runtime-server-harness-selection-365

Conversation

@phatloi0010

Copy link
Copy Markdown

Summary

Fixes #365.

check-harness-build.yml still matched the legacy src/clawbench/runtime/extension-server/ prefix when deciding whether a runtime change touches shared base-image dependencies, so changes under src/clawbench/runtime/runtime-server/ (server.py, pyproject.toml, uv.lock) built clawbench-base while selecting zero downstream harness images (build_all=false, count=0).

Changes

  • Extract the harness Dockerfile selection and GitHub step-summary rendering into src/clawbench/runner/run_support/harness_build_plan.py.
  • Recognize src/clawbench/runtime/runtime-server/ alongside harnesses/base/, chrome-extension/, and shared/ as shared base dependencies that select all registered downstream harnesses, and remove the obsolete extension-server/ selector.
  • Delegate .github/workflows/check-harness-build.yml (Select harness Dockerfiles) to python -m clawbench.runner.run_support.harness_build_plan.
  • Add tests/test_harness_build_plan.py (15 tests) covering runtime-server/, harnesses/base/, chrome-extension/, shared/, single-harness changes, irrelevant/obsolete runtime paths, workflow_dispatch/empty diffs, and step-summary Markdown output.

Testing

  • pytest tests/test_harness_build_plan.py -v (15 passed)
  • ruff check, ruff format --check, and pyright / basedpyright (0 errors, 0 warnings)

Extract harness Dockerfile selection and step-summary rendering into
clawbench.runner.run_support.harness_build_plan, replace the obsolete
extension-server/ selector with runtime-server/, and cover shared, single-
harness, and irrelevant runtime changes with unit tests.

Fixes TIGER-AI-Lab#365

This branch has not been deployed

No deployments
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.

[P2] CI: runtime-server changes select zero downstream harness image builds

1 participant