Skip to content

Fix intermittent WNPRC_EHRTest virology import failures - #1072

Merged
labkey-jeckels merged 4 commits into
developfrom
fb_ehr_test_flake_fixes
Nov 10, 2026
Merged

labkey-jeckels merged 4 commits into
developfrom
fb_ehr_test_flake_fixes

Conversation

@labkey-jeckels

@labkey-jeckels labkey-jeckels commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Rationale

Fix intermittent WNPRC_EHRTest virology import failures caused by test timing, which recently showed up as a new failure on an unrelated feature branch. The tests picked files by their position in a list whose order varied between runs, and checked for import results and error messages before the asynchronous import request had returned.

Related Pull Requests

Changes

  • Sort the import dialog's file list so its order is stable
  • Select virology files by name rather than by position
  • Wait for the import to finish before submitting, and for error messages instead of expecting them right away
  • Close the preview popup only after its check passes, so failure screenshots capture it

Tasks

  • Claude Code Review
  • Manual Testing - N/A
  • Test Automation - test fix

@labkey-jeckels labkey-jeckels self-assigned this Nov 6, 2026
labkey-jeckels added a commit to LabKey/platform that referenced this pull request Nov 6, 2026
## Rationale
Destroying an Ext4 combo while it still has deferred work pending throws
a client-side error, because Ext 4.2.1 nulls the combo's store on
destroy but lets its delayed type-ahead, delayed query, and remote load
callback run afterward. Any combo can hit this; the EHR Apply Template
window does when Submit is clicked right after picking a template, which
made TNPRC_RequestsTest fail intermittently. Fixing it in the shared
Ext4 patches covers every combo, including the duplicated ONPRC template
window, instead of patching one window.

## Related Pull Requests
- LabKey/tnprcEHRModules#455
- LabKey/wnprc-modules#1072
- LabKey/testAutomation#3274

## Changes
- Skip a combo's delayed type-ahead, delayed query, and query completion
once the combo has been destroyed

## Tasks
- [x] Claude Code Review
- [x] Manual Testing - N/A
- [x] Test Automation - N/A - this is a test fix
@labkey-jeckels
labkey-jeckels merged commit 9986ee4 into develop Nov 10, 2026
5 of 7 checks passed
@labkey-jeckels
labkey-jeckels deleted the fb_ehr_test_flake_fixes branch November 10, 2026 18:48
labkey-tchad pushed a commit that referenced this pull request Nov 10, 2026
Fix intermittent WNPRC_EHRTest virology import failures caused by test
timing, which recently showed up as a new failure on an unrelated
feature branch. The tests picked files by their position in a list whose
order varied between runs, and checked for import results and error
messages before the asynchronous import request had returned.

- LabKey/platform#8286
- LabKey/tnprcEHRModules#455
- LabKey/testAutomation#3274

- Sort the import dialog's file list so its order is stable
- Select virology files by name rather than by position
- Wait for the import to finish before submitting, and for error
messages instead of expecting them right away
- Close the preview popup only after its check passes, so failure
screenshots capture it

- [x] Claude Code Review
- [x] Manual Testing - N/A
- [x] Test Automation - test fix

(cherry picked from commit 9986ee4)
labkey-tchad pushed a commit to LabKey/platform that referenced this pull request Nov 10, 2026
## Rationale
Destroying an Ext4 combo while it still has deferred work pending throws
a client-side error, because Ext 4.2.1 nulls the combo's store on
destroy but lets its delayed type-ahead, delayed query, and remote load
callback run afterward. Any combo can hit this; the EHR Apply Template
window does when Submit is clicked right after picking a template, which
made TNPRC_RequestsTest fail intermittently. Fixing it in the shared
Ext4 patches covers every combo, including the duplicated ONPRC template
window, instead of patching one window.

## Related Pull Requests
- LabKey/tnprcEHRModules#455
- LabKey/wnprc-modules#1072
- LabKey/testAutomation#3274

## Changes
- Skip a combo's delayed type-ahead, delayed query, and query completion
once the combo has been destroyed

## Tasks
- [x] Claude Code Review
- [x] Manual Testing - N/A
- [x] Test Automation - N/A - this is a test fix

(cherry picked from commit cb67456)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants