Repository navigation
Add RequestCancellationHelper and a samples query schema constant - #3313
Merged
Merged
Conversation
labkey-jeckels
marked this pull request as ready for review
November 23, 2026 01:45
labkey-tchad
approved these changes
Nov 24, 2026
labkey-jeckels
added a commit
to LabKey/platform
that referenced
this pull request
Nov 25, 2026
…low BVT tests (#8367) ## Rationale Make server-side integration tests easier to write and faster to run. Many recently added tests hand-roll the same container, user, sample type, and update-service setup, hard-coded names that already had constants, and repeated near-identical test methods. Separately, the slowest server-side test classes in BVT-B spend most of their time in fixed sleeps, timeouts, and repeated container and study setup rather than in the code they verify. ## Related Pull Requests - LabKey/limsModules#2618 - LabKey/testAutomation#3313 - LabKey/labkey-workspaces#81 - LabKey/customModules#296 ## Changes - Add shared test helpers for running work on a separate request thread, writing rows through a query update service, creating sample types, and skipping tests by database or assertion mode - Extend the container-scoping test base with throwaway projects, restricted folders, and role grants to groups - Move recently added tests onto the shared helpers and production constants - Fold near-duplicate test methods into table-driven tests that assert the same cases - Share containers across a class's tests where each test only checks its own data - Shorten fixed sleeps and waits in the slowest BVT tests, with test-only overrides for the stuck async worker timeout and the request timeout sweep interval - Flush detailed audit events on the shared row batch size, so its test can cross batch boundaries with a few rows - Wait for the file watcher events the test asserts rather than OS-specific event counts ## Tasks - [x] Claude Code Review - [x] Manual Testing - N/A - [x] Test Automation
labkey-jeckels
added a commit
to LabKey/customModules
that referenced
this pull request
Nov 25, 2026
#296) ## Rationale Speed up a slow BVT server-side test: the two TreatmentManager container scoping tests each created and deleted their own pair of study containers. ## Related Pull Requests - LabKey/platform#8367 - LabKey/limsModules#2618 - LabKey/testAutomation#3313 - LabKey/labkey-workspaces#81 ## Changes - Create the study containers once per test class and share them between the two container scoping tests
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.
Rationale
Give module tests a shared home for request cancellation checks and the samples query schema name, which two test classes had copied and several redeclared.
Related Pull Requests
Changes