You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Notary: one 14,831-line tests/standalone_http.rs (164 tests) next to a 21-line tests/common/mod.rs.
registry-platform-testing (purpose-built MockIdp, MockHttpUpstream, audit-chain assertions, compile_error!-guarded) is used by ~5 files repo-wide. The shared harness exists and is ignored.
Found during the 2026-07-07 architecture audit. This is the structural fix behind the flake cluster (#288, #295, #296).
Context
commonmodule; 17 files define their ownwrite_config, 4 their ownfixture();admin_reload.rs(5,602 lines) defines ~25 local helpers (the file is deleted by refactor: replace TUF governed-config machinery with signed config bundles (verify at boot, restart to apply) #314; do not invest in consolidating it).tests/standalone_http.rs(164 tests) next to a 21-linetests/common/mod.rs.registry-platform-testing(purpose-built MockIdp, MockHttpUpstream, audit-chain assertions, compile_error!-guarded) is used by ~5 files repo-wide. The shared harness exists and is ignored.main.rs:1976falls back toREGISTRY_RELAY_ENV_FILEwhile sibling tests set_var/remove_var; ~70 directenv::varreads across api.rs/standalone.rs/main.rs), flaky test: notary-server antirollback_accept_and_publish_survives_dropped_join_handle fails under full-workspace parallel run #288 asserts an async task lifecycle by timing, flaky test: registryctl doctor_extracts_notary_diagnostics_as_product_findings fails intermittently in CI; assertion hides the report #296 is masked byassert!(report.ok)swallowing which check failed.Scope
registry-platform-testing(extend it where needed) and shared per-cratecommonmodules.standalone_http.rsalong the same seams as the api.rs split (refactor: split security-critical god files and make audit emission structural #304).env::varreads at depth (fixes the flaky test: relay serve_cli_preserves_config_flag_parsing races sibling tests on REGISTRY_RELAY_ENV_FILE #295 class, not the instance).Acceptance