Testing Guidelines ​
TPF testing follows semantic ownership across repositories. The split makes each test suite smaller and more focused, but it also makes the distinction between owner-local verification and cross-repository compatibility explicit.
The arrows describe downstream compatibility obligations, not source aggregation. A downstream repository consumes published artifacts selected by the BOM; it does not rebuild upstream source.
For cross-repository evidence, candidate publication and execution are deliberately separated:
One candidate or explicit compatibility set creates one central product-test run. Related changes are coalesced by submitting a compatibility set; singleton candidates start immediately and are not delayed by a debounce window. Each run reuses one credential-free materialisation across a small number of coarse parallel shards instead of starting one Actions job per suite.
Jib-based application builds use a digest-pinned Eclipse Temurin Java 21 JRE image from Docker Hub. Application parent POMs own their image default and preserve the existing non-root UID 185. HA stacks pass JVM flags through JAVA_TOOL_OPTIONS; JAVA_OPTS_APPEND is specific to the old Red Hat launcher. Native base images are separate. Historical immutable test sets retain their original build configuration; changing the current default does not rewrite previously tested inputs. When updating the JVM image, verify Linux amd64/arm64 support, Java startup and the packaged application E2E paths. Registry transport failures must not be treated as passing tests or repaired by increasing application assertion timeouts.
Owner-local verification ​
Every behaviour has one repository that owns its primary tests:
pipelineframework-contracts: model invariants, protocol validation, serialization and runtime API/SPI contracts;pipelineframework-compiler: parsing, validation, semantic projection, diagnostics and generated artifacts;pipelineframework-runtime: Quarkus and Spring integration, execution behaviour, stores and foundational plugins;pipelineframework-connectors: connector/provider/importer/host behaviour and external-system integration tests;pipelineframework-blocks: compilation and behaviour of packaged Blocks;pipelineframework-expansions: distribution resolution and dependency composition;pipelineframework-examples: learning proofs and their focused integration tests;pipelineframework-reference-implementations: production-shaped Checkout/TPFGo, Search and QuickBooks E2E paths;csv-kafka-paymentsandrag-turnkey: application-specific tests, topology tests, operational proofs and E2E suites.
Generated Spring application smoke modules and the AWS Durable application proof belong to pipelineframework-examples and consume released adapter/host artifacts. Runtime unit, store and deployment integration tests remain with the runtime owner. Application dashboards, fixtures and deployment-topology assertions belong to their application repository.
Cross-artifact compatibility ​
pipelineframework owns the product BOM and framework/transport-completeness-tests. For 26.10.1-SNAPSHOT, that module checks compatibility between the compiler, runtime and Connector artifacts selected by the product BOM. It currently establishes:
- compiler generation with real Connector-owned contributed protocol types;
- REST, gRPC and function representation generation across those types;
- Query and Command client generation against Connector records;
- runtime queue serialization of nested and repeated contributed values.
It is deliberately not an omnibus E2E suite. It cannot replace Quarkus/Spring smoke tests, provider integration tests, deployment-topology tests, native builds, HA scenarios or application journeys.
Naming and lifecycle ​
- Name Surefire unit, contract and in-process framework tests
*Test. - Name Failsafe integration, external-infrastructure and packaged-runtime tests
*IT. - Run owner-local
clean verifyon pull requests unless a documented heavy lane is deliberately scheduled or restricted tomain. - Keep test configuration declarative. Do not introduce Maven profiles, environment-selected source universes or compiler excludes to create different test reactors.
central-publishingis the only Maven profile exception. It may attach and sign publishable artifacts; it must not change the test or module topology.
Required CI layers ​
| Layer | Trigger | Purpose |
|---|---|---|
| Owner verification | Every pull request | Prove the changed repository in isolation |
| Owner integration/smoke | Pull request or documented main lane | Prove the owning runtime/provider topology |
| Product compatibility | BOM/component change | Prove released artifacts compose |
| Downstream compatibility train | Fresh upstream snapshots | Detect source-compatible but behaviourally incompatible changes |
| Heavy E2E/HA/native | Scheduled, main, or manually approved | Prove expensive deployment and operational paths |
An upstream repository being green is necessary but not sufficient for product compatibility. The compatibility train must fetch fresh snapshots (-U where appropriate), record the exact component versions and run downstream tests in dependency order. Do not use a warm developer cache as release evidence.
The central policy may skip product shards only when every changed path matches an allowlisted non-semantic rule. Mixed and unknown paths receive full component coverage. Established ordinary HA lanes may remain on main when that was already the monorepo policy; scale, native, cloud and live-provider checks run in the full train. The fixed tpf/system-tests status is required for semantic pull requests and is the evidence that the split retains the monorepo's cross-component safety net.
The migration audit records current exceptions. In particular, a Maven lifecycle that includes -DskipTests is not owner verification merely because it reaches verify; skipped tests must be reported and restored explicitly.
Coverage ​
Coverage belongs to each source-owning repository. There is no meaningful line-coverage aggregate for a repository that merely consumes released binaries. JaCoCo or another coverage tool may be configured statically in an owner reactor, but coverage must not introduce an alternate module graph or become a reason to move E2E tests away from their behavioural owner.
Choosing a test ​
- Pure model or business logic: add an owner-local
*Test. - Compiler or generated-artifact behaviour: add a compiler test and, when a released boundary is involved, a coordination compatibility fixture.
- Runtime DI/configuration/serialization: add an owner-local runtime
*Testor smoke test. - External infrastructure or a packaged deployment: add an owner-local
*ITand its CI lane. - A full user or operator journey: add it to the relevant example, reference implementation or real application.
- A change spanning repositories: add the narrow owner test first, then identify the smallest downstream compatibility/E2E lane that proves the released contract.
See Repository Split Migration and Test Assessment for the migration inventory and the gaps found during the split audit.