diff --git a/apps/albedo/test/albedo/composition/bedrock_effort_catalog_test.gleam b/apps/albedo/test/albedo/composition/bedrock_effort_catalog_test.gleam index eb1477080..8da2d6a71 100644 --- a/apps/albedo/test/albedo/composition/bedrock_effort_catalog_test.gleam +++ b/apps/albedo/test/albedo/composition/bedrock_effort_catalog_test.gleam @@ -7,6 +7,7 @@ import albedo/storage/core_store import albedo_ext_bedrock/extension as bedrock import albedo_ext_bedrock/reasoning import albedo_model as types +import albedo_property import albedo_sdk/extension as harness import albedo_sdk/key_environment import albedo_sdk/store @@ -14,7 +15,9 @@ import gleam/list import gleam/option.{type Option, None, Some} import gleam/string -pub fn saved_profile_catalog_and_auth_preflight_test() -> Nil { +/// Its store writes can outlast eunit's default limit on a loaded CI disk. +pub fn saved_profile_catalog_and_auth_preflight_test_() -> albedo_property.Timed { + use <- albedo_property.within(30) assert fixtures() } diff --git a/apps/albedo/test/albedo/composition/extension_capability_test.gleam b/apps/albedo/test/albedo/composition/extension_capability_test.gleam index f9484a80b..879ed8b6f 100644 --- a/apps/albedo/test/albedo/composition/extension_capability_test.gleam +++ b/apps/albedo/test/albedo/composition/extension_capability_test.gleam @@ -34,6 +34,7 @@ import albedo/transfer/moves import albedo/workspace/worktree import albedo_lcm/graph import albedo_model as types +import albedo_property import albedo_sdk/capabilities import albedo_sdk/capability.{type Capability} import albedo_sdk/command @@ -1303,7 +1304,9 @@ fn refuses_for(outcome: Outcome, wanted: List(Capability)) -> Bool { /// capability refuses the call, naming that capability, exactly when the /// call needs it; declaring exactly what it needs runs it; declaring /// nothing refuses it unless it needs nothing. -pub fn each_host_call_needs_exactly_its_capabilities_test() -> Nil { +/// Its store writes can outlast eunit's default limit on a loaded CI disk. +pub fn each_host_call_needs_exactly_its_capabilities_test_() -> albedo_property.Timed { + use <- albedo_property.within(30) let world = world() // `running_occupant` finds the running session that works in the // worktree. @@ -1526,7 +1529,7 @@ pub fn every_entry_point_gates_its_extension_test() -> Nil { extension.unscoped(ledger), ), ) - assert process.receive(invalidated, 1000) == Ok(["open"]) + assert process.receive(invalidated, 10_000) == Ok(["open"]) assert process.receive(invalidated, 100) == Error(Nil) let composed = @@ -1633,7 +1636,7 @@ fn reporting( fn report( seen: process.Subject(#(String, Result(Nil, String))), ) -> #(String, Result(Nil, String)) { - let assert Ok(value) = process.receive(seen, 1000) + let assert Ok(value) = process.receive(seen, 10_000) value } diff --git a/apps/albedo/test/albedo/composition/lcm_follow_test.gleam b/apps/albedo/test/albedo/composition/lcm_follow_test.gleam index dd48a5775..f6339eece 100644 --- a/apps/albedo/test/albedo/composition/lcm_follow_test.gleam +++ b/apps/albedo/test/albedo/composition/lcm_follow_test.gleam @@ -388,7 +388,9 @@ fn range(from: Int, count: Int) -> List(Int) { list.repeat(Nil, count) |> list.index_map(fn(_, index) { from + index }) } -pub fn the_graph_follows_forks_and_rewinds_test() -> Nil { +/// Its store writes can outlast eunit's default limit on a loaded CI disk. +pub fn the_graph_follows_forks_and_rewinds_test_() -> albedo_property.Timed { + use <- albedo_property.within(30) use ops <- albedo_property.run(40, ops_generator()) let host = host() list.index_fold(ops, Model(0, [], []), fn(model, op, index) { diff --git a/apps/albedo/test/albedo/composition/stamp_zones_test.gleam b/apps/albedo/test/albedo/composition/stamp_zones_test.gleam index 2e400774d..793b6c6c2 100644 --- a/apps/albedo/test/albedo/composition/stamp_zones_test.gleam +++ b/apps/albedo/test/albedo/composition/stamp_zones_test.gleam @@ -6,13 +6,16 @@ import albedo/composition/sdk_c_support import albedo_ext_discord/ingest import albedo_lcm/graph +import albedo_property import gleam/option.{None, Some} fn zone(name: String, function: String) -> Nil { sdk_c_support.zone(name, function) } -pub fn stamps_match_native_timezone_vectors_test() -> Nil { +/// Its store writes can outlast eunit's default limit on a loaded CI disk. +pub fn stamps_match_native_timezone_vectors_test_() -> albedo_property.Timed { + use <- albedo_property.within(30) zone("America/New_York", "new_york") zone("Asia/Kathmandu", "kathmandu") zone("UTC", "utc") diff --git a/apps/albedo/test/albedo/http/history_pages_test.gleam b/apps/albedo/test/albedo/http/history_pages_test.gleam index 1718425e0..9927ad499 100644 --- a/apps/albedo/test/albedo/http/history_pages_test.gleam +++ b/apps/albedo/test/albedo/http/history_pages_test.gleam @@ -191,7 +191,9 @@ fn info(id: String) -> conversation.Info { ) } -pub fn pages_cover_the_history_once_in_either_direction_test() -> Nil { +/// Its store writes can outlast eunit's default limit on a loaded CI disk. +pub fn pages_cover_the_history_once_in_either_direction_test_() -> albedo_property.Timed { + use <- albedo_property.within(30) let assert Ok(ledger) = store.start(":memory:", "", core_store.tables()) let assert Ok(_) = conversation.initialise(ledger) let cases = diff --git a/apps/albedo/test/albedo/session/queue_test.gleam b/apps/albedo/test/albedo/session/queue_test.gleam index 516c477d1..694005aac 100644 --- a/apps/albedo/test/albedo/session/queue_test.gleam +++ b/apps/albedo/test/albedo/session/queue_test.gleam @@ -356,7 +356,9 @@ fn apply( /// The cases share one store, each in a session of its own: preparing the /// schema took most of a case's time, and under a loaded suite 150 fresh /// stores outlasted eunit's limit. -pub fn the_stored_queue_matches_a_list_test() -> Nil { +/// Its store writes can outlast eunit's default limit on a loaded CI disk. +pub fn the_stored_queue_matches_a_list_test_() -> albedo_property.Timed { + use <- albedo_property.within(30) let assert Ok(db) = store.start(":memory:", "", core_store.tables()) let assert Ok(Nil) = conversation.initialise(db) let assert Ok(Nil) = family.initialise(db) diff --git a/apps/albedo/test/albedo/session/turn_lifecycle_test.gleam b/apps/albedo/test/albedo/session/turn_lifecycle_test.gleam index a54324363..43a2ebe87 100644 --- a/apps/albedo/test/albedo/session/turn_lifecycle_test.gleam +++ b/apps/albedo/test/albedo/session/turn_lifecycle_test.gleam @@ -13,6 +13,7 @@ import albedo/runtime/ownership_support import albedo/session import albedo/support/turn_harness as h import albedo_model as types +import albedo_property import gleam/erlang/atom.{type Atom} import gleam/erlang/process.{type Pid} import gleam/int @@ -82,7 +83,9 @@ pub fn a_cancelled_preparation_does_not_cancel_the_next_input_test() -> Nil { } /// More than a hundred tool steps in one turn all run and are answered. -pub fn a_turn_of_more_than_a_hundred_tool_steps_completes_test() -> Nil { +/// Its store writes can outlast eunit's default limit on a loaded CI disk. +pub fn a_turn_of_more_than_a_hundred_tool_steps_completes_test_() -> albedo_property.Timed { + use <- albedo_property.within(30) let steps = 101 let replies = list.append( diff --git a/apps/albedo/test/albedo/storage/compaction_receipts_test.gleam b/apps/albedo/test/albedo/storage/compaction_receipts_test.gleam index 4bd9681d0..a940abfd2 100644 --- a/apps/albedo/test/albedo/storage/compaction_receipts_test.gleam +++ b/apps/albedo/test/albedo/storage/compaction_receipts_test.gleam @@ -304,7 +304,9 @@ fn step(ledger: store.Store, now: Int, model: Model, op: Op) -> Model { } } -pub fn receipts_follow_admission_terminal_writes_and_interruption_test() -> Nil { +/// Its store writes can outlast eunit's default limit on a loaded CI disk. +pub fn receipts_follow_admission_terminal_writes_and_interruption_test_() -> albedo_property.Timed { + use <- albedo_property.within(30) use ops <- albedo_property.run( 100, qcheck.generic_list(op_generator(), qcheck.bounded_int(1, 14)), diff --git a/apps/albedo/test/albedo/storage/image_refs_test.gleam b/apps/albedo/test/albedo/storage/image_refs_test.gleam index e7cf57baf..1082f1aec 100644 --- a/apps/albedo/test/albedo/storage/image_refs_test.gleam +++ b/apps/albedo/test/albedo/storage/image_refs_test.gleam @@ -33,7 +33,9 @@ type Op { const sessions = ["a", "b", "c"] -pub fn payloads_live_exactly_while_a_session_names_them_test() -> Nil { +/// Its store writes can outlast eunit's default limit on a loaded CI disk. +pub fn payloads_live_exactly_while_a_session_names_them_test_() -> albedo_property.Timed { + use <- albedo_property.within(30) let assert Ok(host) = runtime.start_with_extensions(":memory:", []) let ledger = runtime.ledger(host) let assert Ok(_) = conversation.initialise(ledger) diff --git a/apps/albedo/test/albedo/transfer/move_finish_test.gleam b/apps/albedo/test/albedo/transfer/move_finish_test.gleam index d97516120..ee9abd1ef 100644 --- a/apps/albedo/test/albedo/transfer/move_finish_test.gleam +++ b/apps/albedo/test/albedo/transfer/move_finish_test.gleam @@ -31,7 +31,9 @@ type Op { Finish(reachable: Bool) } -pub fn finish_reports_every_late_delivery_once_test() -> Nil { +/// Its store writes can outlast eunit's default limit on a loaded CI disk. +pub fn finish_reports_every_late_delivery_once_test_() -> albedo_property.Timed { + use <- albedo_property.within(30) let source = transfer_pair.start() let target = transfer_pair.start() finish_cases(source, target) diff --git a/apps/albedo/test/albedo/transfer/transfer_activation_model_test.gleam b/apps/albedo/test/albedo/transfer/transfer_activation_model_test.gleam index 5a32b0de1..c8826f479 100644 --- a/apps/albedo/test/albedo/transfer/transfer_activation_model_test.gleam +++ b/apps/albedo/test/albedo/transfer/transfer_activation_model_test.gleam @@ -55,7 +55,9 @@ type State { Gone } -pub fn activation_cancel_and_resume_follow_the_model_test() -> Nil { +/// Its store writes can outlast eunit's default limit on a loaded CI disk. +pub fn activation_cancel_and_resume_follow_the_model_test_() -> albedo_property.Timed { + use <- albedo_property.within(30) let source = transfer_pair.start() let target = transfer_pair.start() let assert Ok(_) = diff --git a/apps/albedo/test/albedo/transfer/transfer_staging_test.gleam b/apps/albedo/test/albedo/transfer/transfer_staging_test.gleam index 438c013fb..dca31eecf 100644 --- a/apps/albedo/test/albedo/transfer/transfer_staging_test.gleam +++ b/apps/albedo/test/albedo/transfer/transfer_staging_test.gleam @@ -50,7 +50,9 @@ type Model { Model(parts: List(BitArray), settled: List(Bool), ready: Bool) } -pub fn staging_follows_the_received_bytes_model_test() -> Nil { +/// Its store writes can outlast eunit's default limit on a loaded CI disk. +pub fn staging_follows_the_received_bytes_model_test_() -> albedo_property.Timed { + use <- albedo_property.within(30) // One source and one target serve every case: each case moves its own // session under its own transfer id. let source = transfer_pair.start() diff --git a/apps/albedo/test/albedo/usage/usage_hours_test.gleam b/apps/albedo/test/albedo/usage/usage_hours_test.gleam index 3148ce1f6..094bf0a14 100644 --- a/apps/albedo/test/albedo/usage/usage_hours_test.gleam +++ b/apps/albedo/test/albedo/usage/usage_hours_test.gleam @@ -293,7 +293,9 @@ pub fn a_summary_counts_what_the_hours_in_its_window_hold_test() -> Nil { check(ledger, case_) } -pub fn the_lines_and_scopes_are_cut_and_say_so_test() -> Nil { +/// Its store writes can outlast eunit's default limit on a loaded CI disk. +pub fn the_lines_and_scopes_are_cut_and_say_so_test_() -> albedo_property.Timed { + use <- albedo_property.within(30) let ledger = ledger() use case_ <- albedo_property.run(25, case_generator(wide_rows)) check(ledger, case_) diff --git a/apps/albedo/test/albedo/workspace/links_ledger_test.gleam b/apps/albedo/test/albedo/workspace/links_ledger_test.gleam index 5dc18d13e..022130595 100644 --- a/apps/albedo/test/albedo/workspace/links_ledger_test.gleam +++ b/apps/albedo/test/albedo/workspace/links_ledger_test.gleam @@ -41,7 +41,9 @@ type Model { const workspaces = ["/p", "/q", "/r", "/s"] -pub fn merges_and_unlinks_follow_the_partition_model_test() -> Nil { +/// Its store writes can outlast eunit's default limit on a loaded CI disk. +pub fn merges_and_unlinks_follow_the_partition_model_test_() -> albedo_property.Timed { + use <- albedo_property.within(30) let assert Ok(host) = runtime.start_with_extensions(":memory:", []) let ledger_store = runtime.ledger(host) let assert Ok(_) = conversation.initialise(ledger_store)