Repository navigation
test(scheduler): add schedule-store claim and retry checks - #2281
Merged
Merged
Conversation
Add RunExecutionFenced with the complete strengthened ownership and retry suite while preserving legacy Run expectations and all runtime behavior. This prerequisite lets the scheduler fix use a main-ancestral engine dependency. Co-authored-by: Mecatl <[email protected]>
Replace execution-fenced terminology with concrete schedule-store operations in the helper API, file names, test diagnostics, and documentation. Explicitly distinguish record checks from executor testing without changing assertions or runtime behavior. Co-authored-by: Mecatl <[email protected]>
JAORMX
added a commit
that referenced
this pull request
Oct 13, 2026
Pin the main-ancestral engine test helper from #2281 and switch all repaired store callers to RunClaimAndRetryConformance. Exercise standalone gRPC conformance through the repaired JSONL backend instead of the published legacy memory store. Co-authored-by: Mecatl <[email protected]>
Merged
2 tasks
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.
What these tests check
This PR adds a reusable test suite for schedule-store implementations: memory, JSONL, Redis, and the gRPC adapter. The tests call store methods and inspect the resulting records. They do not launch an executor or verify that a running command stops.
The new suite checks that:
Claimreserves a schedule occurrence in the store.ReArmOneShotre-enables a failed one-time schedule so it can be retried.Code structure
The new entry point is
scheduleconformance.RunClaimAndRetryConformance; its additional cases live inclaim_and_retry.go. It shares the common tests with the existingRunentry point. The few assertions that differ are selected explicitly, without copying the entire suite.Runretains the expectations used by existing adapters. No scheduler, store, executor, or other runtime behavior changes in this PR.Why this comes before #2277
The scheduler fix needs these tests, but the repository requires its engine dependency to come from code already merged into
main. This PR makes the test helper available first. After it merges, #2277 can pin that merged revision and use the new suite with the repaired stores.Validation
69c76d836, including the full race suite, lint, build, docs, and MicroVM checks.Runpassed against the current four store implementations under race detection in UTC and Europe/Helsinki.