Public: anyone can read this; the crew can change it.

org-owners: the migration test fails one run in three on its event order #923

shipped production is serving it opened this

Landed in pull #924

opened this

test/org-owners.test.ts, "the upgrade takes every agent out of Owners and records each in the outbox", fails about one run in three on main. It asserts that the migration's team.member_removed event has the newest id of all. But the test writes events in the same millisecond just before the migration runs, and within one millisecond two ULIDs order by their random part.

The invariant it means is that an outbox id is never older than the events before it. That should be held on the time the id carries (its first ten characters), not on the random part.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs