Repository navigation
test: delete cannot-fail tests, make macro and timing tests behavioural - #343
Merged
Merged
Conversation
Removes source-grep, constant, self-compare and pre-release upgrade tests and sagas/orchestration; replaces macro expansion-string tests with runtime suites; moves the brittle rustc-pinned snapshots into a substring-asserting rustc_fail harness; replaces wall-clock assertions with ordering or paused time; PostgresTestSchema drops its schema on drop; framework checks living in e2e-ui move into the framework. Implements [[tasks/v5-review-27]]
…eview-27a-test-pruning
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
patrickleet
changed the base branch from
refactor/v5-review-26b-live-sharing
to
v5
November 25, 2026 01:27
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Task 27 stage A ([[tasks/v5-review-27]]). Stacked on #342. Goal: every remaining test can fail for a behavioural reason.
What changed
tests/legacy_authoring_absence.rs, thee2e_ui_celld_nats_profilegrep tests, 4 intests/celldand the cargo-features grepnewchecks, OIDCe0_skips,capture_sdl_to_scratch, thestrict_wheredefault check, CLI self-compares,check_report_is_no_writeprojected→atomic, and old-format deserialize tests; one replaced by a v1 round trip. Removed a filter intests/gateway-postgres/run.pythat matched zero tests and so passed silently.tests/sagas/orchestration.rsmutation_filechecks move into the framework.containstests replaced by runtime suites (aggregate_command/thin.rs,read_model_metadata,sourced_snapshot, known values). Each new test was checked to fail when its behaviour breaks. Rejects duplicating trybuild fixtures removed..stderrsnapshots become*/tests/rustc_fail/fixtures, built as one crate bytests/support/rustc_fail.rsand asserted by substring. Every fixture must list its expected substrings. 53 macro-diagnostic snapshots stay.[poison, fresh, poison], and lanes uses aNotifyhandshake.queued_repouses paused time. The SQL-lock "not yet stealable" check is asserted only inside the TTL.PostgresTestSchemadrops its schema on drop (also on panic) with a 5 s lock timeout. No test schemas are left after a run.Kept on purpose:
core_command_contract(a wire contract)Counts
--list): 2,926 → 2,853 (−73).Tests
Run locally:
make test-local(Postgres and compose services,--no-fail-fast): 2,837 passed, 0 failed.rustc_failharnesses: pass.--include-ignored: 341 passed (one self-compare test deleted).ci-offline: pass.graphql_query_protocolpasses.Not done
command_types.rs(directional serde names) anddomain_state.rs(projection wire names). They need runtime fixtures first.tests/common, the repository macro pattern,typed_commandsfixtures, binary consolidation andrust-cache.Framework bugs found (filed as incidents):
command!withSucceededfails for aggregates that capture domain events.canonical_value(src/command/typed_command.rs:79) panics through.expect.