Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
183 commits
Select commit Hold shift + click to select a range
28ef524
fix(journeys): report unexercised local hooks accurately [skip ci]
jeremi Dec 1, 2026
684619d
test(render): qualify signed document delivery
jeremi Dec 1, 2026
16462c5
docs(scheduling): qualify Keycloak catalogue access
jeremi Dec 1, 2026
f027d57
test(render): qualify Transit and HTTPS timestamp delivery
jeremi Dec 1, 2026
8376bf7
test(discovery): pin catalog transport behavior
jeremi Dec 1, 2026
026eb4e
fix(journeys): complete Render promotion with zero refusals
jeremi Dec 1, 2026
c052066
fix(journeys): verify Adapter promotion and count production refusals
jeremi Dec 1, 2026
26d7e2c
fix(journeys): report verified first-hour endpoints
jeremi Dec 1, 2026
102c0e4
test(journeys): gate hook reporting through the real local walk
jeremi Dec 1, 2026
a747538
refactor(discovery): select numeric loopback catalog transport
jeremi Dec 1, 2026
6a6311f
docs(platform): document integrity checks for public trust files
jeremi Dec 1, 2026
c6d3c5c
fix(journeys): bind both standalone Casework issuer defaults
jeremi Dec 1, 2026
89239df
fix(journeys): pair Evidence checks with the selected runtime
jeremi Dec 1, 2026
f7fbcbc
test(journeys): correlate the local BReg hook receipt
jeremi Dec 1, 2026
ef83a1f
docs(dev): explain when to use a function or a flow
jeremi Dec 1, 2026
7123cd4
feat(session): generate a checked standalone Envoy configuration
jeremi Dec 1, 2026
880e71a
fix(casework): align the standalone starter and development issuer
jeremi Dec 1, 2026
65f7410
feat(dev): attach BReg hooks without replacing the managed issuer
jeremi Dec 1, 2026
fc5a255
refactor(messaging): select HTTP provider transports centrally
jeremi Dec 1, 2026
4600170
feat(coordinator): name in-flow Rhai computations transforms
jeremi Dec 1, 2026
7de192b
fix(coordinator): align generated path parameter names
jeremi Dec 1, 2026
e44ce00
fix(coordinator-client): name the Idempotency-Key header in refusals
jeremi Dec 1, 2026
b577bec
chore(coordinator): regenerate explicit path parameter contracts
jeremi Dec 1, 2026
6ccf78f
docs(dev): describe the available external flow call
jeremi Dec 1, 2026
a6a6868
chore(release): wire the held Session binary into the native roster
jeremi Dec 1, 2026
cced2b4
feat(dev): admit explicitly selected private PostgreSQL transport
jeremi Dec 1, 2026
6cbef5e
fix(coordinator): align conformance inputs with transforms
jeremi Dec 1, 2026
31c4efc
fix(journeys): qualify BReg against stock Keycloak
jeremi Dec 1, 2026
09edace
fix(journeys): clean up explicitly kept fixture inputs
jeremi Dec 1, 2026
364b8fa
feat(dev): capture signed Documents and Scheduling observer hooks
jeremi Dec 1, 2026
88b09be
test(journeys): verify retained Documents version-ready delivery
jeremi Dec 1, 2026
527c458
feat(dev): check saved Casework reports offline
jeremi Dec 1, 2026
c428408
docs(dev): describe private PostgreSQL startup and cleanup
jeremi Dec 1, 2026
851e0e7
fix(journeys): tighten BReg fixture proof and promotion input
jeremi Dec 1, 2026
8d0ece8
fix(release): keep Session numbered assembly and nightlies aligned
jeremi Dec 1, 2026
0ff51ed
fix(scheduling): date fresh starters from initialization
jeremi Dec 1, 2026
41e6c86
fix(dev): narrow and verify private PostgreSQL attachment
jeremi Dec 1, 2026
dba70df
fix(dev): exercise saved report refusals in strict conformance
jeremi Dec 1, 2026
47b5ada
fix(dev): classify private PostgreSQL lookup failures as operational
jeremi Dec 1, 2026
3c130b2
fix(scheduling): verify starter freshness and fold dates
jeremi Dec 1, 2026
4b48be0
feat(session): export routes from checked standalone HTTPS
jeremi Dec 1, 2026
541aac5
docs: explain when to choose a service function or flow
jeremi Dec 1, 2026
afabc12
docs(breg): reach a business preview from BReg Start
jeremi Dec 1, 2026
6ef9140
test(breg): verify the native role facts writer against compiled grants
jeremi Dec 1, 2026
3b8f275
feat(bregctl): publish completed identity facts report schema
jeremi Dec 1, 2026
39c9c8f
feat(deploy): add business registration reference host
jeremi Dec 1, 2026
2e98555
fix(deploy): require checked route export before starting Envoy
jeremi Dec 1, 2026
50edbea
docs(coordinator): align route labels with OpenAPI
jeremi Dec 1, 2026
de95315
test(coordinator): check transform fields in the configuration reference
jeremi Dec 1, 2026
1811961
test(journeys): record native Keycloak BReg qualification
jeremi Dec 1, 2026
77f58ec
feat(dev): check saved BReg identity-facts reports offline
jeremi Dec 1, 2026
dd964de
feat(evidence): provision databases for held Evidence stores
jeremi Dec 1, 2026
d011b8c
fix(journeys): shorten managed paths to the first read
jeremi Dec 1, 2026
c2f579d
feat(dev): bind managed Scheduling to one live task authority
jeremi Dec 1, 2026
f5374f0
test(journeys): verify managed Scheduling appointment hooks
jeremi Dec 1, 2026
a6ed70a
fix(session): check literal route bindings and their assembly digest
jeremi Dec 1, 2026
3f59b13
fix(evidence): make store provisioning checks conform to the operator…
jeremi Dec 1, 2026
2f2127d
docs(evidence): publish the store provisioning reference
jeremi Dec 1, 2026
b8228a4
refactor(adapter): select signed event transport before activation
jeremi Dec 1, 2026
d82538f
fix(journeys): read the Messaging starter receipt at T1
jeremi Dec 1, 2026
4d4f2bd
refactor(breg): select signed webhook transport centrally
jeremi Dec 1, 2026
b7d442c
fix(session): bind checked inventory to live sign-in routes
jeremi Dec 1, 2026
cb15256
fix(rstack): separate Scheduling and BReg status credentials
jeremi Dec 1, 2026
9cfbbdd
test(journeys): exercise managed BReg Compose attachments
jeremi Dec 1, 2026
62278f7
fix(journeys): reap managed Scheduling startup before cleanup
jeremi Dec 1, 2026
c807bf9
refactor(evidence): centralize wallet delivery transport checks
jeremi Dec 1, 2026
f5d867c
fix(journeys): reap promotion startup and validate Adapter checks
jeremi Dec 1, 2026
d5c1b77
test(session): verify module sign-in drift and prefix refusal
jeremi Dec 1, 2026
d6f09f9
test(rstack): check task status identity separation through plans
jeremi Dec 1, 2026
0342055
test(deploy): prove isolated registrar sign-out
jeremi Dec 1, 2026
c594ef5
fix(journeys): preserve aligned Casework starter files
jeremi Dec 1, 2026
5b6c651
docs(casework): staff the starter queue without replacing its files
jeremi Dec 1, 2026
f8c6d0a
fix(rstack): scope lint expectation to the JSON Schema callback
jeremi Dec 1, 2026
b062d1b
test(journeys): measure Casework missing-scope diagnostics
jeremi Dec 1, 2026
f6113b8
fix(release): classify the Session binary as a distribution-only asset
jeremi Dec 1, 2026
6a189f0
feat(release): ship the Session binary from v0.51.0
jeremi Dec 1, 2026
b81a0e0
feat(platform): accept Compose secret mounts explicitly and read publ…
jeremi Dec 1, 2026
4381a08
fix(evidence): classify provision as a JSON-reporting command
jeremi Dec 1, 2026
7e4a188
fix(dev): check the external Scheduling caller after roles resolve
jeremi Dec 1, 2026
6b442a1
chore: regenerate the CLI catalogue, dev schema and Coordinator clien…
jeremi Dec 1, 2026
31fa352
docs(previews): show when a service needs a flow
jeremi Dec 1, 2026
39a22a0
fix(preview): generate and admit bounded BReg revision routes
jeremi Dec 1, 2026
42d29bd
docs(messaging): lead the Compose guide with the explicit native secr…
jeremi Dec 1, 2026
10f135a
docs(breg): read the first tutorial's dev files from the scaffold
jeremi Dec 1, 2026
ff7402b
test(dev): box the saved-report test diagnostic
jeremi Dec 1, 2026
403ecfe
fix(identifiers): catalogue the ctl-report, store-provision and Sessi…
jeremi Dec 1, 2026
3b5534d
fix(session): state the port check without a double negation
jeremi Dec 1, 2026
b23b18b
test(platform-config): pin that mountPolicy switches the resolver
jeremi Dec 1, 2026
9900120
feat(platform-config): expose whether the file provider states compos…
jeremi Dec 1, 2026
eab9d40
fix(evidence): refuse compose-native secret mounts under the Version …
jeremi Dec 1, 2026
7444eb6
feat(platform-config): add a strict secret provider block for operato…
jeremi Dec 1, 2026
555c020
fix(cli-api,thunderid-tooling): refuse mountPolicy in connection files
jeremi Dec 1, 2026
bf6cd51
fix(evidencectl): refuse the Compose mount policy in doctor, as the r…
jeremi Dec 1, 2026
694c425
fix(schedulingctl): read secrets through the runtime's own resolver
jeremi Dec 1, 2026
9c8c9d4
feat(platform-config): name database members and render explicit sett…
jeremi Dec 1, 2026
8e715bc
feat(provision): read each database member by kind and print explicit…
jeremi Dec 1, 2026
6ea31b0
fix(platform-config): word public-document refusals for public documents
jeremi Dec 1, 2026
3c3b118
fix(breg): refuse a private member in the Evidence trusted key set
jeremi Dec 1, 2026
e23b593
docs(platform-config): describe the strict provider block in plain words
jeremi Dec 1, 2026
23a3a33
chore: regenerate the store-provision and connection schemas
jeremi Dec 1, 2026
639115e
feat(registry-mcp): report explicit production settings in check
jeremi Dec 1, 2026
20b3209
feat(registry-session): report explicit production settings in check
jeremi Dec 1, 2026
c17cf24
test: pin the Compose mount policy and public reads at product call s…
jeremi Dec 1, 2026
fd16470
fix(render): name secretProviders when a static key set's provider fails
jeremi Dec 1, 2026
074cbf6
docs(platform-config): word the mountPolicy description without position
jeremi Dec 1, 2026
738b3f7
docs: document the Compose mount policy and public-document reads per…
jeremi Dec 1, 2026
472203a
chore: regenerate schemas
jeremi Dec 1, 2026
9e41962
test(evidence-oid4vci): write the schema test's reference offers as i…
jeremi Dec 1, 2026
f95d24a
fix(preview): load business registration assets by relative URL
jeremi Dec 1, 2026
48dfbbb
fix(deploy): assign reference registrars through service roles
jeremi Dec 1, 2026
f8b3212
test(deploy): run the reference host's Node tests in the deployment s…
jeremi Dec 1, 2026
0769776
docs(deploy): make the business registration reference runnable as wr…
jeremi Dec 1, 2026
988ad5a
fix(deploy): keep issuer key material read-only and PostgreSQL unpriv…
jeremi Dec 1, 2026
7709e57
docs(deploy): correct the reference steps a Compose run exposed
jeremi Dec 1, 2026
124fcf2
feat(platform): use one product inventory for dev and service plans
jeremi Dec 1, 2026
d96baa6
fix(platform): finish the dev.yaml inventory migration from review
jeremi Dec 1, 2026
fe521fe
fix(dev): place projected plan diagnostics at their authored keys
jeremi Dec 1, 2026
d74c266
chore(identifiers): regenerate the catalogue for the carried schema c…
jeremi Dec 1, 2026
43a8511
fix(evidence): keep mountPolicy out of the wallet adapters' published…
jeremi Dec 1, 2026
0694f0e
docs: add the Compose mount caveat to Session and Adapter, and state …
jeremi Dec 1, 2026
37a5f41
fix(platform): refuse OpenPGP private key blocks in public documents
jeremi Dec 1, 2026
f4da556
fix(platform): fail provision when its explicit-setting notice cannot…
jeremi Dec 1, 2026
a0a38e4
refactor(platform): share the explicit-setting report line with regis…
jeremi Dec 1, 2026
9b49926
test: pin the mountPolicy refusal pointer and a second provision notice
jeremi Dec 1, 2026
05ba0eb
chore(identifiers): regenerate the catalogue for the wallet adapter s…
jeremi Dec 1, 2026
a5cd15a
fix(platform): publish the strict secret providers as a shared block
jeremi Dec 1, 2026
2a31533
chore(identifiers): regenerate the catalogue for the strict secret pr…
jeremi Dec 1, 2026
1e90a6c
docs(platform): state the public-document rule on the strict file pro…
jeremi Dec 1, 2026
6e52df5
feat(coordinator): call a named service function without product auth…
jeremi Dec 1, 2026
f5b66b4
feat(coordinator): accept a function host key as the service function…
jeremi Dec 1, 2026
a2f1e6a
fix(coordinator): refuse every declared product credential on a funct…
jeremi Dec 1, 2026
001fb30
feat(dev): bind Coordinator service functions to the preview function…
jeremi Dec 1, 2026
fbfcc52
fix(client): keep the caller credential out of preview function handlers
jeremi Dec 1, 2026
11d0b81
fix(client): give preview handlers a fresh request without credentials
jeremi Dec 1, 2026
e4f45a0
fix(coordinator): keep the function host key at the host and off ever…
jeremi Dec 1, 2026
2c3d476
feat(dev): bind the Coordinator as one Casework review producer
jeremi Dec 1, 2026
8f0130c
fix(dev): close the Coordinator review producer binding's widening paths
jeremi Dec 1, 2026
2ade6e4
feat(dev): give one Coordinator BReg connection a development identity
jeremi Dec 1, 2026
3676c84
fix(dev): keep the Coordinator BReg identity dedicated to the Coordin…
jeremi Dec 1, 2026
fb62752
feat(dev): serve one preview page to several actors
jeremi Dec 1, 2026
946fe78
fix(dev): pin the Coordinator BReg client's whole replacement and rec…
jeremi Dec 1, 2026
ee6f73b
fix(dev): pin each preview actor's isolation and report its origins
jeremi Dec 1, 2026
ea1630b
fix(dev): configure the review producer's completion destination for …
jeremi Dec 1, 2026
b015bdf
feat(dev): add the permit-review service preview
jeremi Dec 1, 2026
814a7d5
fix(coordinator): compare function host keys as bytes
jeremi Dec 1, 2026
27741d0
fix(dev): review and decide only the permit application the Coordinat…
jeremi Dec 1, 2026
cb337d0
docs(dev): state the permit-review decision guard invariant and test …
jeremi Dec 2, 2026
0ea3689
fix(coordinator): compare a function host key without its trailing ne…
jeremi Dec 2, 2026
66e1354
test(dev): drive the permit-review preview in two browser contexts
jeremi Dec 2, 2026
5b60b88
ci: build and run Casework and the Coordinator for the service previews
jeremi Dec 2, 2026
93f65bc
ci: run the Evidence store provisioning journey and fail on roster er…
jeremi Dec 2, 2026
d63842a
test(dev): pin every preview route parameter and the generator diagno…
jeremi Dec 2, 2026
bee5c4e
test(coordinator): pin the external, decision and token transport rules
jeremi Dec 1, 2026
a4f1c7e
refactor(coordinator): select outbound transport through the shared s…
jeremi Dec 1, 2026
bdbd1f2
ci: pin the provisioning journey arms and every roster call as an ass…
jeremi Dec 2, 2026
d32a141
fix(platform): refuse a CA bundle that is not text at provision
jeremi Dec 2, 2026
cf4b9e0
chore(client): regenerate the Coordinator client for service.invoke-f…
jeremi Dec 2, 2026
cb50fbe
fix(platform): build every explicit-setting notice in one place, as a…
jeremi Dec 2, 2026
9d067fe
test(bregctl): expect the explicit-setting notice provision prints
jeremi Dec 2, 2026
7653233
fix(platform): name a CA bundle that is not text in every provision r…
jeremi Dec 2, 2026
2f0fefe
test(evidence): expect the store provisioning option in check help
jeremi Dec 2, 2026
fbc2b2a
chore(identifiers): regenerate the catalogue for the #2882 follow-up …
jeremi Dec 2, 2026
2cf38ee
docs(coordinator): cite the shared numeric loopback check for request…
jeremi Dec 2, 2026
f542407
fix(coordinator): word unreadable database URL secrets with the share…
jeremi Dec 2, 2026
ce25f53
feat(rstack): bind holder preparation to one BReg action
jeremi Dec 1, 2026
d7a981d
fix(rstack): bound holder preparation and preserve unresolved attempts
jeremi Dec 1, 2026
a27660d
test(rstack): gate hard-coded holder applicant identity
jeremi Dec 1, 2026
79098d9
feat(rstack): bind holder preparation to one BReg create Action
jeremi Dec 2, 2026
9372152
test(rstack): model register-business's planned office in the create …
jeremi Dec 2, 2026
8321921
test(rstack): answer a north create with the native 412 precondition.…
jeremi Dec 2, 2026
2013972
fix(rstack): fold the holder binding high review
jeremi Dec 2, 2026
6db4ad0
feat(client): export the holder binding for trusted hosts
jeremi Dec 2, 2026
ad1f07e
fix(client): fold the holder binding re-review
jeremi Dec 2, 2026
c7a0c62
docs(client): state the holder owner rule's parser condition
jeremi Dec 2, 2026
e4666ea
test(client): name holder test attempt keys attemptId
jeremi Dec 2, 2026
54ee713
test(client): pin the holder outcome guard and fold the binding review
jeremi Dec 2, 2026
913b654
docs(client): say how BReg answers a create bound to a patch
jeremi Dec 2, 2026
652f1c1
test(journeys): parenthesize the Documents sink headers for jq 1.7
jeremi Dec 2, 2026
4255f70
test(bregctl): hold the explain report example to current output
jeremi Dec 2, 2026
3e4b231
test(adapter): give signed-event fixtures a bare origin
jeremi Dec 2, 2026
cfb142f
test(platform): hold CA bundles to the public-document read
jeremi Dec 2, 2026
9769ef4
test(casework): bind the backup proof to the current starter issuer
jeremi Dec 2, 2026
8212de6
test(adapter): drop the loopback range from the Postgres source fixture
jeremi Dec 2, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
23 changes: 20 additions & 3 deletions .github/scripts/ci_changes.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,15 @@
# The BReg harnesses and the Adapter GovStack journey start their services with
# `rstack dev`, so a change to it runs them.
RSTACK_DEV_HARNESS_PACKAGES = frozenset({"registry-rstack", "registry-rstack-dev"})
# The service previews start these products: BReg in every example, and
# Casework and the Coordinator in permit-review.
SERVICE_PREVIEW_PRODUCT_PACKAGES = frozenset({
"registry-breg",
"registry-bregctl",
"registry-casework",
"registry-caseworkctl",
"registry-coordinator",
})
# The shared dependency gate owns the list of development runner hosts.
_dev_runner_gate = runpy.run_path(str(
Path(__file__).resolve().parents[2] / "products/platform/scripts/check_dev_runner_reach.py"
Expand Down Expand Up @@ -658,17 +667,25 @@
"registry-caseworkctl",
"registry-coordinator",
"registry-documentsctl",
"registry-evidencectl",
"registry-messagingctl",
"registry-schedulingctl",
)
PROVISION_JOURNEY_INPUTS = (
*(f"crates/{package}/src/provision.rs" for package in PROVISION_JOURNEY_PACKAGES),
*(
f"crates/{package}/src/provision.rs"
for package in PROVISION_JOURNEY_PACKAGES
if package != "registry-evidencectl"
),
# Each journey's test file. The database-free `provision_cli.rs` stays out.
*(
f"crates/{package}/tests/provision_postgres.rs"
for package in PROVISION_JOURNEY_PACKAGES
if package != "registry-caseworkctl"
if package not in ("registry-caseworkctl", "registry-evidencectl")
),
# Evidence provisions its held stores and serves nothing.
"crates/registry-evidencectl/src/store_provision.rs",
"crates/registry-evidencectl/tests/store_provision.rs",
"crates/registry-adapterctl/src/job_provision.rs",
"crates/registry-adapterctl/tests/job_provision_postgres.rs",
"crates/registry-adapter-job/src/main.rs",
Expand Down Expand Up @@ -1817,7 +1834,7 @@ def classify(

service_previews = (
complete
or bool(affected & (RSTACK_DEV_HARNESS_PACKAGES | {"registry-breg", "registry-bregctl"}))
or bool(affected & (RSTACK_DEV_HARNESS_PACKAGES | SERVICE_PREVIEW_PRODUCT_PACKAGES))
or any(matches(path, *SERVICE_PREVIEW_INPUTS) for path in paths)
)

Expand Down
89 changes: 86 additions & 3 deletions .github/scripts/test_ci_changes.py
Original file line number Diff line number Diff line change
Expand Up @@ -3882,6 +3882,10 @@ def test_service_preview_inputs_select_installed_browser_proof(self) -> None:
"clients/typescript/preview/host.mjs",
"products/platform/examples/service-previews/medical-renewal/dev.yaml",
"products/platform/scripts/test-service-previews.mjs",
# permit-review starts Casework and the Coordinator.
"crates/registry-casework/src/lib.rs",
"crates/registry-caseworkctl/src/main.rs",
"crates/registry-coordinator/src/lib.rs",
):
with self.subTest(path=path):
outputs = classify(self.workspace, (path,))
Expand All @@ -3892,6 +3896,32 @@ def test_service_preview_inputs_select_installed_browser_proof(self) -> None:
browser = next(step for step in steps if step.get("name") == "Run installed service previews in Chromium")
self.assertIn("needs.changes.outputs.service_previews", browser["if"])
self.assertIn("test-service-previews.mjs", browser["run"])
build = next(step for step in steps if step.get("name") == "Build the preview launcher and product tools")
for package in ("registry-casework", "registry-caseworkctl", "registry-coordinator"):
self.assertIn(f"-p {package}", build["run"])
for name in ("CASEWORK", "CASEWORKCTL", "COORDINATOR", "COORDINATORCTL"):
self.assertIn(f"RSTACK_{name}_BIN", browser["env"])
# A candidate whose release ships the Coordinator installs it and must
# pass permit-review; only one without it may skip, through the roster.
candidate = yaml.safe_load(Path(".github/workflows/release-candidate.yml").read_text())
runs = [
step.get("run", "")
for job in candidate["jobs"].values()
for step in job.get("steps", [])
]
install = next(run for run in runs if "rstack-${tag}-install.sh" in run)
self.assertIn("coordinator-binaries-in-release", install)
self.assertIn("components+=(casework coordinator)", install)
smoke = next(run for run in runs if "test-service-previews.mjs" in run)
self.assertIn("coordinator-binaries-in-release", smoke)
self.assertIn("RSTACK_PREVIEW_SKIP_PERMIT_REVIEW=no-coordinator-in-release", smoke)
# A roster failure fails the step: its output is assigned first, never
# read inside [[ ]], where set -e does not stop a failed substitution.
for run in (install, smoke):
self.assertIn('coordinator_in_release="$(python3 release/scripts/release_roster.py', run)
self.assertNotRegex(run, r'\$\(python3 release/scripts/release_roster\.py\s*\\?\s*coordinator-binaries-in-release[^)]*\)"\s*[!=]=')
self.assertIn('for component in casework coordinator; do', install)
self.assertIn('"${component}ctl ${version}"', install)

def test_development_schema_drift_runs_in_the_conformance_job(self) -> None:
for path in (
Expand Down Expand Up @@ -4736,7 +4766,13 @@ def test_product_provisioning_changes_select_the_tls_postgres_lane(self) -> None
self.assertEqual(set(PROVISION_JOURNEY_PACKAGES), set(journeys))
edgeless = Workspace(without_dependency_edges(self.metadata))
paths = [
*(f"crates/{package}/src/provision.rs" for package in journeys),
# A journey test target names its source: `provision_postgres.rs`
# and `provision.rs` test `provision.rs`, `store_provision.rs`
# tests `store_provision.rs`.
*(
f"crates/{package}/src/{target.removesuffix('_postgres')}.rs"
for package, (target, _) in journeys.items()
),
*(f"crates/{package}/tests/{target}.rs" for package, (target, _) in journeys.items()),
"crates/registry-adapterctl/src/job_provision.rs",
"crates/registry-adapterctl/tests/job_provision_postgres.rs",
Expand Down Expand Up @@ -4848,11 +4884,58 @@ def test_contracts_journeys_lane_runs_each_product_provisioning_journey(
'"${log}"',
command,
)
# Each log needs its journey's own line. A journey that serves
# matches the shared serve pattern, and one that only provisions,
# such as the Evidence stores, names its exact test.
serve = re.compile(r"provision_then_(apply_then_)?serve_with_[a-z_]+")
self.assertIn(
"grep -Eq '^test ([a-z_]+::)?provision_then_(apply_then_)?serve_with_[a-z_]+ "
"\\.\\.\\. ok$' \"${log}\"",
"*) journey='^test ([a-z_]+::)?provision_then_(apply_then_)?serve_with_[a-z_]+ "
"\\.\\.\\. ok$' ;;",
command,
)
for package, (_, tests) in journeys.items():
if any(serve.fullmatch(test) for test in tests):
continue
with self.subTest(package=package):
self.assertEqual(1, len(tests), "a provision-only journey names one test")
self.assertIn(
f"{package}) journey='^test {tests[0]} \\.\\.\\. ok$' ;;",
command,
)
self.assertIn('grep -Eq "${journey}" "${log}"', command)
# The case holds exactly one arm per provision-only journey and the
# shared default, so no arm can override a serving journey's check.
case = re.search(r'case "\$\{package\}" in (.*?) esac', command)
self.assertIsNotNone(case)
arms = re.findall(r"(?:^|;;)\s*([^\s;)]+)\) journey=", case.group(1))
provision_only = {
package
for package, (_, tests) in journeys.items()
if not any(serve.fullmatch(test) for test in tests)
}
self.assertEqual(sorted(provision_only | {"*"}), sorted(arms))

def test_every_workflow_roster_call_is_a_plain_assignment(self) -> None:
# Inside [[ ]], [ ] or test, set -e does not stop a failed command
# substitution, so a roster error would read as "not in release".
# Every roster call assigns its answer to a variable first, so the
# failure stops the step.
assignment = re.compile(
r'^\s*[A-Za-z_][A-Za-z0-9_]*="\$\((?:python3 )?\S*release_roster\.py [^()]*\)"\s*$'
)
checked = 0
for workflow in sorted(Path(".github/workflows").glob("*.yml")):
jobs = yaml.safe_load(workflow.read_text(encoding="utf-8"))["jobs"]
for job_name, job in jobs.items():
for step in job.get("steps", []):
logical = re.sub(r"\\\n\s*", " ", step.get("run", ""))
for line in logical.splitlines():
if not re.search(r"(?<![\w])release_roster\.py\b", line):
continue
checked += 1
with self.subTest(workflow=workflow.name, job=job_name, line=line.strip()):
self.assertRegex(line, assignment)
self.assertGreater(checked, 0)

def test_other_postgres_steps_leave_the_provisioning_journeys_to_the_tls_lane(
self,
Expand Down
32 changes: 24 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2131,8 +2131,9 @@ jobs:
exit 1
fi
# Each journey provisions its product's database and roles on the
# TLS-only service, applies as the owner role and serves as the
# runtime role. The Adapter applies inside `adapter serve`.
# TLS-only service. A serving product then applies as the owner role
# and serves as the runtime role. The Adapter applies inside
# `adapter serve`. The Evidence stores only provision.
export PROVISION_TEST_DATABASE_URL="postgresql://breg:breg_test@localhost:${DATABASE_PORT}/postgres?sslmode=verify-full"
export PROVISION_TEST_DATABASE_CA="${BREG_TEST_TLS_CA_PEM_PATH}"
cargo test --locked -p registry-adapterctl --features postgres-test --test provision_postgres \
Expand All @@ -2145,6 +2146,8 @@ jobs:
| tee "${RUNNER_TEMP}/provision-journey-registry-coordinator.log"
cargo test --locked -p registry-documentsctl --features postgres-test --test provision_postgres \
| tee "${RUNNER_TEMP}/provision-journey-registry-documentsctl.log"
cargo test --locked -p registry-evidencectl --features postgres-test --test store_provision \
| tee "${RUNNER_TEMP}/provision-journey-registry-evidencectl.log"
cargo test --locked -p registry-messagingctl --features postgres-test --test provision_postgres \
| tee "${RUNNER_TEMP}/provision-journey-registry-messagingctl.log"
cargo test --locked -p registry-schedulingctl --features postgres-test --test provision_postgres \
Expand All @@ -2157,11 +2160,17 @@ jobs:
grep -Eq '^test result: ok\. 1 passed; 0 failed; 0 ignored' "${job_log}" || { echo "::error::expected one passing Adapter job provisioning journey"; exit 1; }
grep -Fxq 'test provision_then_initialize_and_run_with_split_roles ... ok' "${job_log}" || { echo "::error::expected the Adapter job provisioning journey to run and pass"; exit 1; }
# A run that selected no test still exits 0, so every log needs a
# pass count, no ignored test, and the journey's own line.
for package in registry-adapterctl registry-bregctl registry-caseworkctl registry-coordinator registry-documentsctl registry-messagingctl registry-schedulingctl; do
# pass count, no ignored test, and the journey's own line. The
# Evidence stores provision and serve nothing, so their journey
# names its exact test.
for package in registry-adapterctl registry-bregctl registry-caseworkctl registry-coordinator registry-documentsctl registry-evidencectl registry-messagingctl registry-schedulingctl; do
log="${RUNNER_TEMP}/provision-journey-${package}.log"
grep -Eq '^test result: ok\. [1-9][0-9]* passed; 0 failed; 0 ignored' "${log}" || { echo "::error::expected the ${package} provisioning journey tests to pass with no test ignored"; exit 1; }
grep -Eq '^test ([a-z_]+::)?provision_then_(apply_then_)?serve_with_[a-z_]+ \.\.\. ok$' "${log}" || { echo "::error::expected the ${package} provisioning journey to run and pass"; exit 1; }
case "${package}" in
registry-evidencectl) journey='^test both_stores_provision_idempotently_without_migrating \.\.\. ok$' ;;
*) journey='^test ([a-z_]+::)?provision_then_(apply_then_)?serve_with_[a-z_]+ \.\.\. ok$' ;;
esac
grep -Eq "${journey}" "${log}" || { echo "::error::expected the ${package} provisioning journey to run and pass"; exit 1; }
done

- name: Stop PostgreSQL 16 for the provisioning floor test
Expand Down Expand Up @@ -4159,20 +4168,27 @@ jobs:
- name: Build
run: npm --prefix clients/typescript run build

- name: Build the preview launcher and BReg tools
- name: Build the preview launcher and product tools
if: needs.changes.outputs.service_previews == 'true'
run: cargo build --locked --bins --features registry-breg/runtime -p registry-rstack -p registry-breg -p registry-bregctl
run: >-
cargo build --locked --bins --features registry-breg/runtime
-p registry-rstack -p registry-breg -p registry-bregctl
-p registry-casework -p registry-caseworkctl -p registry-coordinator

- name: Install Chromium for previews
if: needs.changes.outputs.service_previews == 'true'
run: node clients/typescript/node_modules/playwright-core/cli.js install --with-deps chromium

- name: Run installed service previews in Chromium
if: needs.changes.outputs.service_previews == 'true'
timeout-minutes: 15
timeout-minutes: 20
env:
RSTACK_BREG_BIN: ${{ github.workspace }}/target/debug/breg
RSTACK_BREGCTL_BIN: ${{ github.workspace }}/target/debug/bregctl
RSTACK_CASEWORK_BIN: ${{ github.workspace }}/target/debug/casework
RSTACK_CASEWORKCTL_BIN: ${{ github.workspace }}/target/debug/caseworkctl
RSTACK_COORDINATOR_BIN: ${{ github.workspace }}/target/debug/coordinator
RSTACK_COORDINATORCTL_BIN: ${{ github.workspace }}/target/debug/coordinatorctl
run: |
set -euo pipefail
client_dir="${GITHUB_WORKSPACE}/clients/typescript"
Expand Down
Loading
Loading