Repository navigation
feat: Add support for optional long running tests - #314
Merged
Merged
Conversation
jsonbailey
marked this pull request as ready for review
January 30, 2026 19:37
keelerm84
approved these changes
Jan 30, 2026
1 of 3 tasks
tanderson-ld
added a commit
that referenced
this pull request
Aug 18, 2026
## Summary Ports the framework scaffolding portion of [#314](#314) (Jason Bailey, "fix: Add support for optional long running tests") from v3 to v2. ## What ships - `-enable-long-running-tests` CLI flag (default false). Mirrors the `-enable-persistence-tests` shape. - `EnableLongRunningTests bool` on `ldtest.TestConfiguration`. - `(t *T) LongRunning()` method. Long-running tests call it at the top of their body; if the flag isn't set, the test skips with reason `"use -enable-long-running-tests to run"`. - Threaded through `RunSDKTestSuite` and `main.go`. ## What's deliberately not ported The original commit ([`01a245c`](01a245c)) also added 237 lines to `sdktests/common_tests_stream_fdv2.go`. That file exercises v3-only FDv2 shapes and has no place on v2. Skipped. ## Why now Scaffolding for follow-up work on [#404](#404). Review feedback there ([discussion](#404 (comment)), [discussion](#404 (comment))) argued against exposing an SDK-side servicedef knob to compress the extended-regime timing in the RETRY-conformance tests. The consensus was that those tests should run at real timing gated by the long-running-tests mechanism — which requires that mechanism to exist on v2 first. Once this lands, #404 rebases onto v2 tip and its RETRY-conformance tests get `t.LongRunning()` calls at the top of their bodies, plus timing rewritten to production defaults. ## Verification - `go build ./...` — clean. - `go run . -h` — new flag visible: `-enable-long-running-tests enable tests that take a long time to run (10+ seconds)`. - `go test ./...` — full suite green. No behavior change to existing v2 tests since none of them call `t.LongRunning()`. ## Test plan - [x] Confirm the port matches the shape of #314's framework portion. - [ ] Confirm the CLI flag help text is acceptable (verbatim from Jason's original). - [ ] Confirm no v3-only content bled through. <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Overview** > Adds optional **long-running test** gating on v2, mirroring the existing `-enable-persistence-tests` pattern. > > The harness accepts `-enable-long-running-tests` (default false). That value flows through `main` → `RunSDKTestSuite` → `ldtest.TestConfiguration.EnableLongRunningTests`. Tests can call `t.LongRunning()` at the start; when the flag is off they skip with reason `use -enable-long-running-tests to run`. > > No existing v2 tests call `LongRunning()` yet, so default runs behave the same until follow-up tests adopt the helper. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 536af50. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY -->
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.
No description provided.