Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[grid] Fix flaky Distributor and GraphqlHandlerTest. Add queuer config to DistributedCdpTest #8859

Merged
merged 3 commits into from
Nov 10, 2020

Conversation

pujagani
Copy link
Contributor

Thanks for contributing to Selenium!
A PR well described will help maintainers to quickly review and merge it

Before submitting your PR, please check our contributing guidelines.
Avoid large PRs, help reviewers by making them as simple and short as possible.

Description

The changes are related to failed tests reported in https://travis-ci.com/github/SeleniumHQ/selenium/jobs/431435876.

Motivation and Context

The failed build indicated flaky tests for GraphqlHandlerTest and DistributorTest. I suspect the issue was arising that session creation request was made before the grid model was updated by the distributor when a new node is added.
To fix it the test is made to wait until the distributor can handle sessions. Now session creation requests can be made and unit test assertions can proceed as expected.

Note: First tried the fix with 100 test runs in a branch before the NewSessionQueuer was introduced. After confirming issue is not due to the queuer changes, attempted the fix in the current Grid.

The DistributedCdp did not have queuer config and hence it was failing to create the Distributor. Fixed it by adding the queuer config.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • I have read the contributing document.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Copy link
Member

@shs96c shs96c left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you!

@shs96c shs96c merged commit 37e592c into SeleniumHQ:trunk Nov 10, 2020
pujagani added a commit to pujagani/selenium that referenced this pull request Nov 10, 2020
…g to DistributedCdpTest (SeleniumHQ#8859)

* Add queuer config to DistributedCdpTest set up.
* Add wait to DistributorTest and GraphqlHandlerTest to allow node to be added before creating session.
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.

None yet

2 participants