mirror of
https://github.com/ether/etherpad-lite.git
synced 2026-07-18 00:57:55 +00:00
ci(downstream): enable pad/cli/desktop smoke clients (Phase 2) (#7924)
Implements the per-kind orchestration (clone @ pinned ref, inject core's freshly-generated wire-vectors fixture via ETHERPAD_WIRE_VECTORS, run each client's vectorTest + smokeCmd against the booted server) in a testable run-clients.sh, and flips the three manifest entries to enabled, pinned to the commits that carry their Phase 2 tests: ether/pad#1, ether/etherpad-cli-client#136, ether/etherpad-desktop#78. Validated end-to-end locally against a real core: all three clients' vectors + live smoke pass. Refs should be bumped to the squash-merge commits once those client PRs land. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
860ab68c04
commit
e56a33efd0
3 changed files with 89 additions and 18 deletions
21
.github/workflows/downstream-smoke.yml
vendored
21
.github/workflows/downstream-smoke.yml
vendored
|
|
@ -88,19 +88,16 @@ jobs:
|
|||
- name: Generate canonical wire-vectors
|
||||
run: cd src && pnpm run vectors:gen
|
||||
|
||||
# Rust toolchain for the `rust`-kind client (etherpad-pad). Other kinds
|
||||
# use the node+pnpm already set up above.
|
||||
- name: Install Rust toolchain
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
|
||||
- name: Run enabled downstream clients
|
||||
run: |
|
||||
ENABLED=$(node -e 'const c=require("./src/tests/downstream/clients.json").filter(x=>x.enabled); process.stdout.write(JSON.stringify(c))')
|
||||
if [ "$ENABLED" = "[]" ]; then
|
||||
echo "No downstream clients enabled yet (Phase 1 harness only). Skipping."
|
||||
exit 0
|
||||
fi
|
||||
# Phase 2 implements per-`kind` clone @ pinned ref + toolchain setup +
|
||||
# vector injection (cp src/tests/fixtures/wire-vectors.json into the
|
||||
# client) + `vectorTest` + `smokeCmd` against http://localhost:9003,
|
||||
# iterating the entries in $ENABLED. Until a client is enabled this is
|
||||
# a no-op so the harness lands green on its own.
|
||||
echo "$ENABLED"
|
||||
env:
|
||||
SMOKE_URL: http://localhost:9003
|
||||
SMOKE_APIKEY: ${{ env.APIKEY }}
|
||||
run: bash src/tests/downstream/run-clients.sh
|
||||
|
||||
- name: Teardown (by PID, never pkill)
|
||||
if: always()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue