Skip to content
Open
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
12 changes: 9 additions & 3 deletions .github/ci-paths.toml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@ opencode = [
"integrations/opencode/**", "tests/*opencode*", "tests/e2e/zcode_acceptance/protocol.py",
"tests/e2e/zcode_acceptance/runner.py",
]
# The Bub service chain runs Bub from the harness environment and reuses the ZCode acceptance wire fixtures.
bub = [
"integrations/bub/**", "e2e/bub/pyproject.toml", "e2e/bub/uv.lock", "tests/e2e/test_bub_service_chain.py",
"tests/e2e/zcode_acceptance/protocol.py", "tests/e2e/zcode_acceptance/runner.py",
]
openclaw = ["integrations/openclaw/**", "tests/*openclaw*"]
# The Codex service chain reuses the ZCode acceptance wire fixtures.
codex = [
Expand Down Expand Up @@ -201,9 +206,9 @@ suites = ["tests", "dsh", "cindy", "pi", "opencode", "openclaw", "zcode"]
[shared.runtime]
patterns = ["src/**", "openapi/**", "pyproject.toml", "uv.lock"]
suites = [
"tests", "evaluation", "database", "dify", "hermes", "dsh", "cindy", "pi", "opencode", "openclaw", "codex", "opendal",
"website", "native", "harness", "oceanbase_acceptance", "zcode", "kimi", "upgrade", "observability", "packaging", "desktop",
"managed_resources",
"tests", "evaluation", "database", "dify", "hermes", "dsh", "cindy", "pi", "opencode", "bub", "openclaw", "codex",
"opendal", "website", "native", "harness", "oceanbase_acceptance", "zcode", "kimi", "upgrade", "observability",
"packaging", "desktop", "managed_resources",
]

[shared.openapi_guidance]
Expand Down Expand Up @@ -243,6 +248,7 @@ dsh = ["dsh-package"]
cindy = ["cindy-package"]
pi = ["pi-package"]
opencode = ["opencode-package"]
bub = ["bub-host"]
openclaw = ["openclaw-package"]
codex = ["codex-host"]
opendal = ["opendal-package"]
Expand Down
39 changes: 39 additions & 0 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1145,6 +1145,44 @@ jobs:
if-no-files-found: ignore
retention-days: 7

bub-host:
needs: [quality, tests]
if: ${{ !cancelled() && needs.quality.result == 'success' && contains(fromJSON('["success","skipped"]'), needs.tests.result) && (fromJSON(needs.quality.outputs.suites || '{}').bub) }}
timeout-minutes: 20
runs-on: ${{ (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) && 'powercontext-ci-light' || 'ubuntu-24.04' }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
persist-credentials: false
- name: Set up the Python environment
uses: ./.github/actions/setup-python-env
with:
cache-dependency-glob: |
pyproject.toml
uv.lock
e2e/bub/uv.lock

- name: Install the pinned Bub host
run: make harness-sync

- name: Run Bub with the PowerContext plugin against a real Server
env:
# Without the Bub environment the cases skip, so refuse to run without it.
POWERCONTEXT_TEST_BUB_HOST: "1"
run: uv run pytest tests/e2e/test_bub_service_chain.py --basetemp "$RUNNER_TEMP/bub-e2e"

- name: Upload Bub host logs
if: failure()
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7
with:
name: bub-host-logs-${{ github.run_id }}-${{ github.run_attempt }}
# Skip pytest's `*current` links to the same directories.
path: |
${{ runner.temp }}/bub-e2e/*/bub.log
!${{ runner.temp }}/bub-e2e/*current/bub.log
if-no-files-found: ignore
retention-days: 7

openclaw-package:
needs: [quality, tests]
if: ${{ !cancelled() && needs.quality.result == 'success' && contains(fromJSON('["success","skipped"]'), needs.tests.result) && (fromJSON(needs.quality.outputs.suites || '{}').openclaw) }}
Expand Down Expand Up @@ -1411,6 +1449,7 @@ jobs:
- cindy-package
- pi-package
- opencode-package
- bub-host
- openclaw-package
- codex-host
- opendal-package
Expand Down
2 changes: 1 addition & 1 deletion integrations/capabilities.toml
Original file line number Diff line number Diff line change
Expand Up @@ -1116,7 +1116,7 @@ toolsets = ["bub-tools", "bub-lifecycle"]
[integrations.evidence]
implementation = ["integrations/bub/src/powercontext_bub/tools.py", "integrations/bub/src/powercontext_bub/plugin.py"]
documentation = ["integrations/bub/README.md"]
tests = ["e2e/bub/tests/test_workload_catalog.py"]
tests = ["e2e/bub/tests/test_workload_catalog.py", "tests/e2e/test_bub_service_chain.py"]

[[integrations]]
id = "dify"
Expand Down
Loading
Loading