Bind the simulated Windows echo review to one persistent job scope
Rust development slice / linux (push) Failing after 7s

This commit is contained in:
2026-11-15 23:50:29 +01:00
parent 57a0c205f5
commit 1b8acf06ea
8 changed files with 915 additions and 11 deletions
+5 -1
View File
@@ -44,16 +44,20 @@ def main():
raise RuntimeError('Existing record lost during recovery migration')
if sql("SELECT count(*) FROM memberships WHERE 'recovery:confirm'=ANY(permissions);").strip() != b'0':
raise RuntimeError('Migration implicitly granted human recovery permission')
# Both modes need the same observed identity and independent original head.
sql('CREATE DATABASE rmm_echo TEMPLATE postgres;')
output=command(['docker','run','--rm','--network','container:'+NAME,
'--read-only','--tmpfs','/tmp:rw,size=512m','-v',str(ROOT)+':/src:ro',
'-v',str(ROOT/'devstate/windows-server-contract/target')+':/target','-e','CARGO_TARGET_DIR=/target',
'-e','RMM_TEST_REPAIR_ADMIN_URL=postgres://postgres@127.0.0.1/postgres',
'-e','RMM_TEST_ECHO_ADMIN_URL=postgres://postgres@127.0.0.1/rmm_echo',
'-e','RMM_TEST_ECHO_APP_URL=postgres://rmm_app@127.0.0.1/rmm_echo',
'-e','RMM_TEST_REPAIR_APP_URL=postgres://rmm_app@127.0.0.1/postgres',
'--entrypoint','cargo','rust-discovery-windows-tls-full:local',
'test','--locked','--offline','-p','rmm-server','windows_checkpoint_review::tests',
'--','--include-ignored','--nocapture'],timeout=300)
print(output.decode())
print('PASS isolated synthetic human review, signed denial checkpoint, denial of simulated principals, idempotence and zero jobs/permits.')
print('PASS isolated human review and dev echo scope, signed receipts, idempotence, fixed job/offer/permit and rejection of alternate execution identities.')
finally:
subprocess.run(['docker','rm','-f',NAME],capture_output=True)