Skip to content

Leave browser windows open after test failures#3074

Merged
labkey-tchad merged 1 commit into
developfrom
fb_zombieGeckodriver
Jun 25, 2026
Merged

Leave browser windows open after test failures#3074
labkey-tchad merged 1 commit into
developfrom
fb_zombieGeckodriver

Conversation

@labkey-tchad

Copy link
Copy Markdown
Member

Rationale

Starting with Geckodriver v0.37.0, shutting down the driver service also shuts down the browser.
We need to leave the FirefoxDriverService running after test failures to allow manual inspection of the browser state.
I'm putting this behavior behind a flag because it will also leave a lot of zombie 'geckodriver' processes that will need to be cleanup up manually.

Related Pull Requests

  • N/A

Changes

  • Leave geckodriver running after test failures

@labkey-tchad labkey-tchad self-assigned this Jun 25, 2026

@labkey-danield labkey-danield left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Are there any considerations for TeamCity? Do we need to add a killall command at the end of the run? I don't think TeamCity leaves the browsers up on failure, but I cannot remember.

@labkey-tchad labkey-tchad merged commit ef67e9d into develop Jun 25, 2026
7 of 8 checks passed
@labkey-tchad labkey-tchad deleted the fb_zombieGeckodriver branch June 25, 2026 23:38
@labkey-tchad

Copy link
Copy Markdown
Member Author

Are there any considerations for TeamCity? Do we need to add a killall command at the end of the run? I don't think TeamCity leaves the browsers up on failure, but I cannot remember.

There are several guardrails to prevent any problems on TeamCity. Like you said, we don't leave browser windows open. I also made it so the new property is ignored when running on TeamCity.
The ciTests (used to run tests on TeamCity) automatically kills all firefox and and geckodriver processes after it runs.

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