Skip to content

Improve failure behavior in AssayTransformImportUpdateTest#2510

Merged
labkey-jeckels merged 2 commits intodevelopfrom
fb_raceConditionKillingConnection
Jun 24, 2025
Merged

Improve failure behavior in AssayTransformImportUpdateTest#2510
labkey-jeckels merged 2 commits intodevelopfrom
fb_raceConditionKillingConnection

Conversation

@labkey-jeckels
Copy link
Contributor

Rationale

Improve failure condition when AssayTransformImportUpdateTest fails to kill the job

Related Pull Requests

Changes

  • Shorten the wait for killing the job, enabling the test to fail when it doesn't cancel and capture a thread dump from the server

@labkey-jeckels labkey-jeckels self-assigned this Jun 24, 2025
Copy link
Contributor

@labkey-chrisj labkey-chrisj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I trust that this will work, but I'm curious to understand how 😅

importPage.clickSaveAndFinish();

waitAndClickAndWait(Locator.linkWithText("Assay upload RUNNING"));
waitAndClick(WAIT_FOR_JAVASCRIPT, Locator.linkWithText("Assay upload RUNNING"), WAIT_FOR_JAVASCRIPT);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems an acceptable change, but I'm curious as to how it serves to avoid the assertion?
waitAndClickAndWait wraps waitAndClick, the only difference is it passes in a longer wait for the page load

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesn't change the server-side behavior. That's addressed in the platform PR that's linked here.

This change simply makes the test fail after 10 seconds instead of 60 seconds if it doesn't see the link it expects. When it does, the failure triggers a thread dump on the server, which helps understand why it's taking so long to render. That thread dump helped me track down a deadlock-type problem.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@labkey-jeckels labkey-jeckels merged commit 2d54877 into develop Jun 24, 2025
9 checks passed
@labkey-jeckels labkey-jeckels deleted the fb_raceConditionKillingConnection branch June 24, 2025 18:04
@labkey-jeckels labkey-jeckels changed the title Avoid assertion during AssayTransformImportUpdateTest Improve failure behavior in AssayTransformImportUpdateTest Jun 24, 2025
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