Repository navigation
Description
Part 2 of #4714, split off by its triage decision (TALE-123). Part 1 makes the harness stop writing into the checkout, and makes the two lanes that truncated a run alone (checkMailboxSyncLane, checkGovernanceSettingsTail) seed their own setup. This part makes each lane's results stop depending on rows other lanes leave or remove. A filtered run (ITEST_LANES=…) or a full run in any order should then judge only the code under test.
What depends on what
The first four rows were seen on main (1cb0a96, f1192e8), as #4714 reports. The other rows come from reading services/platform/backend/integration-check.ts at train c83ce1a and were not run: the worker that read them has no Postgres.
| Lane | What happens | Depends on |
|---|---|---|
checkAuditSurface, its re-anchor check |
fails with cutoff=none |
checkRetention's retention policy |
checkAuditSurface, its "errors lane" |
finds errors=0 when it runs right after checkRetention |
the error rows checkRetention's sweep just removed |
checkTaskAgentRuns |
its second wake finds a parked run (wake=1/1) after checkStandingRoleWakeScenarios |
the parked runs that lane leaves in the shared organization |
checkAutomationsSurface, its metrics |
metrics=0t/7d/0top |
runs that earlier lanes create |
checkGovernanceSettingsTail, section B (erasure summaries and detail) |
reads the done erasure request of the subject erasure-one |
checkErasure, which seeds that subject (seedMember('one')) |
checkImapFromAddressHeal |
strips and heals the fromAddress of the organization's default active imap-smtp mailbox; alone the organization has none |
"Main Mailbox" ([email protected]), which checkConnectorCredentials connects |
checkOutboundSendLane |
sends through imap-smtp, composing from an alias of the mailbox login [email protected] |
the same mailbox |
checkMailboxSyncLane |
in a full run it works on that same mailbox, which the two lanes above then use | checkConnectorCredentials |
Sections A, C, D and E of checkGovernanceSettingsTail were not checked for such dependencies.
Suggested fix
As #4714's triage decided: each lane seeds what it needs in its own organization or throwaway tree, and cleans up what it parks. Lanes do not declare dependencies for ITEST_LANES to pull in.
Part 1 adds two helpers that fit:
withMailbox(integration-check.ts) runs a lane with a default IMAP/SMTP mailbox. It reuses the organization's mailbox when there is one, and otherwise connects one with the same login and deletes it afterwards.installRetentionGovernance(integration-lane-helpers.ts) gives an organization the retention filescheckRetentionwrites, unless it already has retention bounds.
Done when
- Each lane above passes alone (
ITEST_LANES=<lane>). - Each lane passes in a full run, whatever ran before it.
- The full run with
ITEST_REQUIRE_ALL_LANES=1still passes.
Activity
test(platform): let integration lanes set up their own state
test(platform): say what the erasure lane leaves the governance tail
test(platform): make lane results independent of other lanes' rows
test(platform): let integration lanes set up their own state