@@ -82,11 +82,9 @@ integration-testing/scripts/run-all.sh --tag stdio --exclude 'x-java-*' --list
8282 ` logs/run-all/<scenario>.console.log ` and a line is printed as each finishes; the table at the end
8383 is the same. ` --prepare-only ` stops after the preparation (CI warms its caches with it).
8484
85- Against a tag or other ref of the peer SDKs. The default is each peer's ref in ` peers.json ` : the
86- TypeScript, Rust and Python peers are pinned to the last commits this suite passed against, because
87- their ` main ` branches moved on (TypeScript no longer builds ` dist/acp.js ` , Rust no longer exports what
88- the interop program uses, and the Python cells time out); Kotlin follows ` master ` . ` --peer ` and
89- ` --peers-ref ` override the pins, for example ` --peer typescript-sdk=main ` to see the drift.
85+ Against a tag or other ref of the peer SDKs. The default is each peer's ref in ` peers.json `
86+ ([ Peer pins and drift] ( #peer-pins-and-drift ) ). ` --peer ` and ` --peers-ref ` override the pins, for
87+ example ` --peer typescript-sdk=main ` to see the drift.
9088
9189``` bash
9290# every peer at the same ref
@@ -99,6 +97,31 @@ jbang RunScenario.java x-java-python-http --peer python-sdk=1.0.0rc2
9997A ref can be a branch, a tag or a commit SHA. Each ref gets its own checkout,
10098` .cache/peers/<name>@<ref> ` , so switching refs does not throw away a build.
10199
100+ ### Peer pins and drift
101+
102+ Every peer in ` peers.json ` is pinned to a commit SHA, and so are the third-party packages its build
103+ resolves, so a nightly run changes only when this repository does:
104+
105+ | Peer | Pinned | Third-party packages locked by |
106+ | ---| ---| ---|
107+ | TypeScript | commit | the peer's own ` package-lock.json ` (` npm ci ` ) |
108+ | Rust | commit | ` programs/rust/Cargo.lock ` (the interop programs are their own Cargo workspace) |
109+ | Python | commit | ` programs/python/constraints.txt ` (` pip install -c ` ) |
110+ | Kotlin | commit | exact versions in the peer's ` gradle/libs.versions.toml ` and ` programs/kotlin/build.gradle.kts ` |
111+
112+ ` .github/workflows/peer-drift.yml ` runs ` cross-sdk.yml ` and ` framework-smoke.yml ` weekly with every
113+ peer at its latest commit (` main ` ; Kotlin ` master ` ) and writes a table of the pinned and latest
114+ commits and the result of every leg to the run summary. It is informational: no other workflow,
115+ branch rule or release step depends on it. A red leg there is drift. To move a pin:
116+
117+ 1 . run the peer's cells at its latest commit (` run-all.sh --tag <peer> --peer <peer>-sdk=main ` ),
118+ and adapt its programs or ` expectations/<peer>.json ` until they pass;
119+ 2 . set ` ref ` in ` peers.json ` to that commit's full SHA;
120+ 3 . regenerate that peer's lock: for Rust, ` cargo update -p agent-client-protocol ` in
121+ ` programs/rust ` (or delete ` Cargo.lock ` and build); for Python, rebuild the venv without ` -c `
122+ and ` pip freeze --exclude-editable ` into ` constraints.txt ` (its header has the command);
123+ 4 . run ` run-all.sh ` with no overrides.
124+
102125Logs for each run go to ` logs/<scenario>/ ` : one file per process (` agent.log ` , ` server.log ` ,
103126` client.log ` , ` clients.log ` ), per build (` build-*.log ` , ` peer-*.log ` ) and ` result.txt ` .
104127` run-all.sh ` also writes ` logs/run-all/summary.txt ` . CI uploads the whole ` logs/ ` directory as an
@@ -452,7 +475,11 @@ language too, run on the same host at the same time.
452475 release gate ([ Framework smoke matrix] ( #framework-smoke-matrix ) ); ` release.yml ` does not check it
453476 itself, so the maintainer confirms it is green on the release commit before dispatching a
454477 release.
455- - Neither ` interop-java.yml ` nor ` cross-sdk.yml ` gates a release.
478+ - ` .github/workflows/peer-drift.yml ` , weekly and on manual dispatch: ` cross-sdk.yml ` and
479+ ` framework-smoke.yml ` (as reusable workflows) with every peer at its latest commit, plus a
480+ summary of pinned against latest commits and every leg's result
481+ ([ Peer pins and drift] ( #peer-pins-and-drift ) ). Informational.
482+ - Neither ` interop-java.yml ` , ` cross-sdk.yml ` nor ` peer-drift.yml ` gates a release.
456483
457484## How a scenario is described
458485
@@ -519,7 +546,7 @@ matrix.json languages, pairs, transports, profiles, transport fact
519546smoke.json the framework smoke matrix: step subsets, frameworks and transports, load
520547expectations/ <lang>.json expected failures, one file per language package
521548jbang-lib/ config model, peer checkouts, processes, jcmd sampler, assertions
522- peers.json peer SDK git URLs, default refs and build commands
549+ peers.json peer SDK git URLs, pinned commits and build commands
523550configs/ one JSON file per scenario (x-*, fw-*, load-10-fw-* generated, the rest hand-written)
524551programs/<lang>/ each language's programs; launch/{build,agent,client}.sh for the cells
525552programs/<framework>/ spring, micronaut, quarkus: the smoke programs, built on programs/framework
0 commit comments