Cross-repository system tests ​
The coordination repository tests independently released TPF repositories as one product without rebuilding them as a source monorepo. The implementation lives under system-tests/; the durable architectural choice is recorded in ADR-0062.
System at a glance ​
The ten extracted repositories still own their code and tests. The coordination repository owns only the policy that decides which of those tests must run together, plus the immutable record of what was tested.
The arrows do not form a new source reactor. Maven components cross repository boundaries as published artifacts; test harnesses cross them as exact Git SHAs.
Contracts ​
system-tests/components.ymlis the repository allowlist, exact Maven-coordinate ownership map and the central consumer version-property map. A suite owner cannot substitute another property or publish a partial component.system-tests/policy.ymlmaps a changed component to mandatory pull-request, post-merge and heavy suites, then groups selected suites into coarse product shards.system-tests/schemas/candidate-event.schema.jsondefines the nine-fieldtpf-candidate-v1dispatch payload.system-tests/schemas/candidate-manifest.schema.jsonrecords source, separate build/publisher workflow runs, Maven and image provenance, and optional additive suite hints.system-tests/schemas/compatibility-candidate-manifest.schema.jsonrecords exact PR-head identity, base SHA, tested merge SHA, dependency-version overrides, checksums and coordinator provenance for candidates bootstrapped as one dependency-ordered set.system-tests/schemas/baseline-manifest.schema.jsonpins the last-known-green components and test harnesses.system-tests/schemas/suite-manifest.schema.jsonlets each owner publish stable argument-array test entrypoints.
The .yml configuration files intentionally contain JSON, which is valid YAML and can be parsed with the Node runtime already present on every runner. No workflow-only package installation is needed to interpret policy.
Adding a component or public artifact ​
Register the complete owned publication in the producer's collection, metadata, trusted validation and upload lists, its publication regressions, this repository's allowedCoordinates, and the BOM where the artefact is consumed. Include POM-only parents needed to resolve the published JARs. A green reactor build alone does not prove that its candidate manifest contains that closure.
Current candidates must contain every registered coordinate. Historical baseline manifests may predate an addition, but still retain strict ownership and checksum validation; that migration allowance does not make an incomplete new candidate complete.
Producer publishers load their validation code from the default branch. A catalogue expansion therefore needs a reviewed bootstrap of that trusted contract before a new candidate can be accepted. Follow the repository owner's activation procedure and record the bootstrap validation separately from downstream acceptance. Do not execute PR-provided validation with publication credentials, relax ownership or completeness checks, or mutate an existing candidate version to get past this boundary. After activation, build a new exact-head candidate and require its normal downstream result.
Trust boundaries ​
The singleton candidate workflow has four security zones:
- event intake accepts no credentials and rejects repositories, components, versions and SHAs outside the checked-in contract;
- trusted retrieval uses a repository-scoped GitHub App token to read the publication run and post status;
- trusted materialisation fetches the exact POMs and JARs named in each attested manifest from its owning GitHub Packages repository, verifies every checksum, then uploads a credential-free Maven repository. It does not invoke Maven or resolve dependencies declared by those POMs during hydration;
- untrusted owner tests execute with contents-read only and cannot read package, dispatch or status credentials.
Compatibility sets preserve the same separation with a different middle stage. A trusted job resolves and hydrates the last-known-green baseline without executing pull-request code. Baseline hydration is cached by immutable OCI digest; restored or newly downloaded artifacts are checksum-verified and stripped of Maven remote-origin metadata before the job uploads a credential-free repository. A credential-free contents-read job pins each current base and exact PR head, creates a deterministic local merge from those commits instead of trusting GitHub's potentially stale test-merge ref, builds the Maven components as independent reactors in declared dependency order, and records checksummed compatibility-candidate manifests. Thus downstream PRs consume upstream PR artifacts without requiring an intermediate merge, snapshot publication, or package token. Bootstrap installs candidate artifacts without rerunning owner test suites. The product shards reuse that single hydrated repository, run the centrally selected tests, and only the final trusted reporter can write statuses.
Fork code is never executed in a privileged job. A fork pull request first runs its ordinary unprivileged owner suite. Candidate publication is enabled only after a maintainer applies safe-to-system-test; the privileged publisher may upload previously built outputs but must not invoke code from the fork.
Repository setup ​
The organisation GitHub App used by the train needs only the operations it performs:
- Actions read and commit-status write on candidate repositories;
- Contents write on
pipelineframeworkforrepository_dispatch; - no administrative permission.
Store SYSTEM_TEST_APP_ID and SYSTEM_TEST_APP_PRIVATE_KEY only in pipelineframework, where trusted coordinator workflows use them. Do not copy the coordinator App private key into publisher repositories. A publisher that sends a candidate event must use a separate dispatch credential scoped only to pipelineframework; it must not grant access to other owner repositories. Maven candidates currently use public, repository-scoped GitHub Packages registries, so they do not expose a package-level Manage Actions access control and need no additional grant to pipelineframework. The coordinator's own GITHUB_TOKEN, with packages: read, performs package reads. If a package becomes private or changes ownership, grant the coordinator explicit read access before enabling its candidate workflow. App installation tokens are not used for Maven package reads and are never exposed to test jobs.
The App installation must cover the ten owner repositories and pipelineframework. Its installation permissions must permit Actions read and Contents read on owner repositories, while Contents write is limited to pipelineframework. Pull requests read and Commit statuses write remain required; each job still requests only the repository-scoped subset it needs. Maven-producing repositories publish candidates with their own GITHUB_TOKEN and packages: write. Source-only harness repositories publish manifests without Maven package authority. Create the safe-to-system-test label in every repository that accepts fork pull requests.
Before bootstrapping, run the six Maven producers on main once so that each component has an immutable candidate manifest digest. Those seed runs may stop when baseline resolution finds no main tag; their published candidate manifests are the inputs to the bootstrap, not evidence of a completed system-test train.
Bootstrap the first baseline through TPF System Tests — Bootstrap Baseline. The supplied JSON must already pin full source SHAs, non-snapshot Maven versions or immutable candidate versions, candidate-manifest OCI digests and container digests. The workflow pulls and validates every referenced component manifest before publishing, and refuses to overwrite an existing main baseline.
Pull-request flow ​
- The owner repository runs
clean verifyand its owner-specific integration lanes. - Its unprivileged candidate build uses
26.9.4-pr.<number>.<sha12>and uploads candidate files plus build metadata. It has no publication or cross-repository credential. - A trusted default-branch publisher validates those files without executing pull-request code, publishes them to that repository's GitHub Packages registry, records both workflow runs in the final checksummed manifest and dispatches
tpf-candidate-v1. TPF System Tests — Candidatefirst extracts only an allowlisted repository and lowercase full source SHA, then poststpf/system-tests=pendingbefore validating the rest of the event. A malformed event with a safe target therefore ends inerror; an event without a safe target is rejected without writing to an untrusted repository. The workflow then verifies the current PR head and build/publication provenance, resolves the baseline tag once, and uses only the returned digest.- Selected owner suites run sequentially inside a bounded number of coarse product shards against the one materialised overlay. The aggregate reporter posts success, failure or error to the originating SHA.
For a coordinated change, use the same head-branch name under the same GitHub owner in every participating repository. The first candidate intake discovers the matching open component pull requests and dispatches TPF System Tests — Compatibility Set automatically. Later intake events for the same branch reuse a deterministic set ID, so GitHub cancels the older in-flight set instead of running competing product trains. The manual workflow remains a fallback for intentionally differently named branches and accepts a stable set ID plus two to ten pull-request URLs.
The coordinator uses branch identity only for discovery. It then resolves every exact head and current base, creates each tested merge locally, overlays the immutable baseline, and derives the complete downstream Maven closure. The closure includes Maven producers whose current default-branch SHA is newer than the baseline and unchanged downstream producers whose POMs must be repinned to an upstream candidate. It builds that closure in dependency order, unions the centrally required suites, and reports the same aggregate result to every participating SHA. It never requires a candidate to build against the old baseline first, and never executes tests against a floating branch name or an older PR head. Consumer-only test harnesses use the exact current-main SHA resolved with the producer graph. The feature author supplies only the feature pull requests; the coordinator owns derivation of current-main and downstream closure targets.
Same-repository GitHub stacks ​
A linear PR stack is discovered through its base/head branch relationships. For example, if #48 targets #47's head branch and #47 targets main, both candidate publications select #48 as the single Runtime candidate. The tested merge uses the stack root's target branch, not an untested intermediate branch. Cross-repository feature discovery uses the root layer's branch name and selects one top per repository.
The fingerprint includes every layer's PR number, head SHA and branch relationships. Duplicate publications claim the same fingerprint and do not launch another product run or reset a completed status to pending. Candidate intake serialises dispatch for a stable set ID, and changed revisions cancel older set runs. On intake, changed layers receive blocking statuses; the runner verifies that every upper head contains the current parent head. If a parent advanced without a corresponding rebase, testing stops with an explicit rebase error rather than claiming coverage. Before and after reporting, the coordinator rechecks the entire stack; obsolete results cannot certify unchanged layers of a changed stack. Branching stacks are rejected rather than choosing one sibling arbitrarily.
This controls central product-test runs, not owner-local unit tests or candidate builds, which still run per PR. Discovery is driven by candidate publication; a changed lower head has no inherited success on its new SHA. The central result covers only the recorded revision, not future edits or unrelated branches.
The coordinator needs its repository GITHUB_TOKEN to write dispatch claims under refs/tags/tpf-system-test-stack/<set-id>/<fingerprint> and dispatch Actions. These are internal deduplication refs, not product release tags or Maven artifacts. Component read/status authority remains scoped to the selected repositories; test jobs receive neither token. An ordinary dispatch failure releases its claim and posts an error so intake can be retried. Rerun the canonical compatibility workflow from Actions to retry tests for the same revision. If a runner dies after claiming but before dispatch, first confirm no compatibility run with that set ID and fingerprint exists, then remove only that exact internal claim and rerun candidate intake.
Before dispatching a set, confirm that TPF Candidate Publish succeeded for the current SHA of every pull request. The compatibility workflow does not wait for a publisher and does not reuse a candidate from an older SHA.
gh workflow run system-test-compatibility-set.yml \
--repo The-Pipeline-Framework/pipelineframework \
-f set_id=compiler-runtime-change \
-f pull_requests='https://github.com/The-Pipeline-Framework/pipelineframework-compiler/pull/123,https://github.com/The-Pipeline-Framework/pipelineframework-runtime/pull/456'Use the same set ID when repeating the same coordinated change. If any participating head changes, wait for its new candidate publisher and dispatch the set again; the previous result remains evidence only for the previous SHAs.
What a resolved test set contains ​
Every run starts with one baseline digest. A normal pull request replaces one component. A compatibility set may replace several, but never more than one candidate for the same component.
This resolved set is the reproducibility boundary. Re-running it does not consult main, latest, a Maven snapshot, or a moving container tag.
The materialised Maven repository is a portable input, not a runner cache. After checksum verification, remove _remote.repositories, *.lastUpdated and resolver-status.properties before archiving it. Otherwise Maven may ignore files that are physically present because their original authenticated repository is absent in the credential-free test job. A materialisation change is complete only when a clean job with no package settings can resolve the exact component set.
Temporary Eclipse formatting outage replay ​
The candidate workflow has supervised, default-off recovery entries for the Eclipse4.34 download outage. Repository write authority is required to dispatch the trusted main workflow. Each entry accepts only its reviewed original run, runtime source and UTC day:
| UTC day | Original run | Exact runtime source |
|---|---|---|
| 21 October 2026 | 39623835075 | PR68 44e412812ed1bda3eb23ab07859864d1c5c89754 |
| 22 October 2026 | 39705054075 | main 4c0de12a53710a3599a35dd851a1dbfca7e0df1a |
Each replay expires at midnight UTC after its listed day. This CI window does not extend any cloud permission or deployment window. The 22 October entry reuses all nine original suites in six groups; it does not replay a closed PR or substitute an earlier candidate closure.
The replay verifies the original run provenance, immutable GitHub artifact IDs and archive hashes, exact resolved closure and six-group matrix, and the current runtime PR or main head as appropriate. It reuses the original credential-free materialization and unchanged product runners. An explicit boolean enables only -Dspotless.skip=true; no arbitrary Maven arguments, test exclusions, replacement dependencies or baseline promotion are accepted. All six complete functional groups and their aggregate must pass. The exception and fixed outage reason appear in the run summary, retained receipt and final status. Ordinary automatic intake keeps formatting enabled.
Activation requires a reviewed trusted-main bootstrap. Only the exact incident merge marker, matching UTC day and checked non-Maven file allowlist suppress that bootstrap's automatic parent/BOM publication. For 22 October the exact subject is ci(system-tests): replay Eclipse formatting outage [incident-20261022]. Verify the actual publication-policy job succeeds and publication is skipped before dispatching the replay. All other pushes and explicit manual publication retain the ordinary publication policy. This mechanism does not waive required source-review or functional CI gates.
Reruns and failure handling ​
Candidate identity is immutable. A coordinator or infrastructure correction should rerun the trusted candidate publisher so it dispatches the same manifest again; it must not rebuild or mint another candidate version. A new source commit is different: it needs a new candidate build and publisher before system tests can run.
Use the fixed status as the asynchronous notification boundary. Do not poll a running train. Record its run URL and inspect it only after it reaches a terminal state. Start with the first failed mandatory job and classify the result:
failuremeans an owner-controlled build or test assertion failed;errormeans candidate validation, materialisation, credentials or coordinator infrastructure failed;- a stale pull-request head needs a new candidate, not a workflow retry;
- a transient registry or coordinator failure may redispatch the same immutable candidate.
Do not rerun a long owner build merely because a wrapper command returned an anomalous exit code without an error. If Maven reported no failure and produced the required outputs, treat that build as successful and fix the wrapper or status adapter separately.
Where credentials stop ​
Publication, package-read, dispatch and status-writing credentials exist only in the narrow trusted jobs that need them. Downstream application and framework tests cannot access those credentials.
Branch protection must not require tpf/system-tests until the shadow rollout has produced at least two successful runs and one deliberate regression failure for that repository.
Test ownership and frequency ​
Owner-local unit, contract and integration suites continue on every pull request. The central pull-request gate adds affected product compatibility, application smoke and reference coverage. Established ordinary HA lanes remain on main; nightly and release trains add the complete compatibility matrix, HA scale, native builds and cloud deployment coverage. Publisher hints may widen that set but cannot make it smaller.
Connector service integration coverage runs once, in connectors-verify, against the resolved exact set. Its owner command runs clean verify with Failsafe enabled and requires passing, unskipped reports for Hibernate Reactive queries, pgvector and OIDC connection restart. These tests use disposable databases and a local authorisation fixture; no commercial-provider account secret is needed. The former monorepo full framework build ran this coverage too. There is no separate credentialed live-providers gate: that was an unimplemented requirement, not a migrated test suite. Testing commercial providers against real accounts would be additional coverage, not a prerequisite for restoring the existing safety net.
Different candidate sets use isolated Actions jobs and Maven repositories. The singleton concurrency key is repository plus pull request; a coordinated set uses its explicit set ID. New commits cancel only older runs for the same pull request.
Search AWS cloud coverage ​
The full train calls the pinned Search owner workflow with the resolved reference source and hydrated Maven artifact. That workflow owns deployment, release registration, testing, and cleanup. Full-train promotion requires the lane to pass. The caller supplies the existing AWS_ROLE_ARN secret and AWS_REGION setting.
To run only hosted Search AWS from coordinator main, manually dispatch the full-train workflow with search_aws_only enabled. It resolves and hydrates the same exact current-main set as the regular train and skips the product shards and baseline promotion.
Promotion and rollback ​
A successful main candidate is promoted only while its SHA is still that repository's default-branch head and the baseline still has the digest used by its run. A superseded candidate remains valid green evidence for its SHA but cannot move the baseline backwards. If another component candidate wins first, the coordinator dispatches the current candidate again against the new baseline. Promotion publishes a new immutable OCI manifest and moves main to it. Rollback moves main back to a previous manifest digest; no Maven artifact, image or manifest is overwritten.
An attested default-branch candidate also updates a component-scoped discovery tag after the coordinator confirms that its SHA is still the repository's current default-branch head. Discovery tags are not reproducibility inputs: the nightly full train resolves them once to immutable manifest digests, ignores a stale tag whose candidate no longer matches current main, overlays all newer candidates on the last-known-green baseline, and then runs the complete ordinary and heavy product matrix. If green, the entire tested set is promoted atomically. This is the recovery path when a candidate was previously blocked by a transient or subsequently fixed downstream failure.
Formal BOM or release promotion requires a green full train. A green owner repository alone is necessary evidence, not product compatibility evidence.
TPF System Tests — Full Train performs that recovery once every night and may also be started manually for release evidence. It resolves the baseline and current-main candidate tags once, records the resulting immutable digests, and runs the complete ordinary and heavy suite list. It is not feature-gated. Snapshot publication is separate: snapshots remain floating development artifacts and are never baseline inputs.
Local validation ​
node --test system-tests/test/*.test.mjs
node system-tests/scripts/validate-config.mjsThese tests cover allowlisting, candidate identity, checksums, stale PR rejection, non-floating baseline pins, deterministic overlays, suite selection and compare-and-swap promotion input.