test: add comprehensive test suite (180+ tests, 20 benchmarks)#1
Merged
Conversation
Adds 9 test files covering: - Schema validation (tables, columns, indexes, PRAGMAs, foreign keys) - State machine completeness (all transitions, invariants, version tracking) - Concurrency (multi-goroutine lease races, worker pools, stress tests) - Edge cases (nil payloads, boundary values, nonexistent workflows) - Crash recovery (mid-step, multi-workflow, signal/timer persistence) - Event sourcing (sequence continuity, replay, isolation, all event types) - Complex scenarios (sagas with retry, chained timers, signal-as-trigger) - Scheduler behavior (timer firing, lease expiry, cancellation, idling) - Performance benchmarks for all critical paths Also adds QueryCompleted to Engine and updates README with test docs.
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.
Summary
Adds a rigorous automated testing suite for the durable workflow engine, expanding coverage from 25 tests to 180+ tests + 20 benchmarks across 9 new test files organized by domain.
New test files
engine_schema_test.goengine_state_machine_test.goengine_concurrency_test.goengine_edge_cases_test.goengine_recovery_test.goengine_event_sourcing_test.goengine_complex_scenarios_test.goengine_scheduler_test.goengine_benchmarks_test.goOther changes
QueryCompleted()method toEngine(follows existing pattern)-raceenabled