Skip to content

Commit 555ceb7

Browse files
authored
Merge pull request #361 from beyondessential/lighter-tests
perf(tests): stop the test suite freezing the machine
2 parents 297edf6 + a12ae7b commit 555ceb7

81 files changed

Lines changed: 153 additions & 19 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

AGENTS.md

Lines changed: 2 additions & 1 deletion

Cargo.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,14 @@ lto = true
7070
codegen-units = 1
7171
strip = "symbols"
7272

73+
# Full debuginfo makes each integration-test binary ~720MB (86% DWARF), and
74+
# linking dozens of them writes ~50GB per rebuild — enough sustained I/O to
75+
# freeze the machine. Line tables keep file:line in backtraces at a fraction
76+
# of the size; override with CARGO_PROFILE_DEV_DEBUG=full when a debugger
77+
# session needs variable info.
78+
[profile.dev]
79+
debug = "line-tables-only"
80+
7381
# compile dependencies with some optimisations to reduce disk pressure
7482
[profile.dev.package."*"]
7583
opt-level = 1

crates/database/tests/backfill_registered_at_migration.rs renamed to crates/database/tests/it/backfill_registered_at_migration.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use diesel_async::{RunQueryDsl, SimpleAsyncConnection as _};
1010
use uuid::Uuid;
1111

1212
const MIGRATION_UP: &str =
13-
include_str!("../../../migrations/2026-06-03-150906-0000_backfill_registered_at/up.sql");
13+
include_str!("../../../../migrations/2026-06-03-150906-0000_backfill_registered_at/up.sql");
1414

1515
#[derive(diesel::QueryableByName)]
1616
struct RegisteredRow {
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)