Repository navigation
test(app): eliminate real waits in durable learning tests - #1933
Merged
Merged
Conversation
Run the stock skill policy matrix and shared-provider learning admission test inside synctest bubbles, retaining real Build, durable storage, assertions, and cleanup. Co-Authored-By: mecatl <[email protected]>
Merged
2 tasks
jbeda
added a commit
that referenced
this pull request
Sep 25, 2026
…mit-coauthor-guidance * origin/main: (32 commits) docs: plan optional native Kubernetes execution provider (#1579) feat(mecatui): restore session status metrics (#1891) docs(plan): bound agent inventory viewport (#1946) docs: include user-docs in matlatl and use local documentation links (#1934) feat(mecatui): bound sessions inventory (#1944) feat(studio): show session delegation activity (#1907) docs(plan): define Studio session activity (#1885) Release TypeScript SDK v0.4.0 (#1940) Release v0.0.41 (#1941) docs(mecatui): plan bounded sessions inventory (#1906) feat(studio): add exact plan control and authorization review prerequisite (#1909) test(app): eliminate real ToolHive probe deadline wait (#1937) docs(plan): define Studio chat approvals and exact plan control (#1888) test(sdk): enforce SDK/TUI high-level parity (#1471) (#1917) docs(plan): propose SDK high-level parity coverage (#1471) (#1916) docs: improve gRPC schema table readability (#1842) test(app): eliminate real waits in durable learning tests (#1933) feat(studio): align chat transcript and composer (#1886) docs(plan): define Studio chat transcript and composer (#1880) feat: correlate provider requests with the root session (#1883) ...
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
Run two slow learning tests inside
testing/synctestbubbles so the durable worker's discovery cadence and test polling advance in virtual time:TestUsableAutoSkillsStockBuildPolicyMatrixsubtest;T.Runstays outside the bubble.TestBuildSharesLearningAdmissionAcrossSharedAndSelectedProviderEngines.Real
Build, durable stores, temporary directories, provider scripts, every existing assertion, and deferredBuilt.Close()remain inside the bubbles. Production polling remains one second. No production changes, shortened timer constants, or new clock API.Most of the diff is indentation; hiding whitespace shows the two imports and wrappers.
Measured benefit
Same selection, forced uncached with
-count=1, measured throughgo test -json:These are selected-test measurements, not a claim about the entire suite's percentage improvement.
Verification
Passed on
fa770757ae396d01929baaece57052f42f868f61:task test GOPROXY=offtask lint(the first aggregate invocation timed out during engine lint after root lint passed; a larger-budget rerun completed all modules)task test:race GOPROXY=offgit diff --checkAdditional checks:
-race.Scope
Routine: test-only replacement of real waiting with standard-library virtual time. No public behavior, API, storage contract, assertion, or documentation changes.