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

Resolve issue with OAuth2 product tests and reenable #8779

Merged
merged 1 commit into from
Aug 5, 2021

Conversation

11xor6
Copy link
Member

@11xor6 11xor6 commented Aug 4, 2021

Apparently there is an issue with Chrome 92 when running inside a Docker container. This PR implements the workaround suggested in the following links and reenables the OAuth2 product tests.

See:

An alternate solution is to pin selenium/standalone-chrome-debug to tag 3.141.59-20210713 (in SeleniumChrome).

Related to #8756

Copy link
Member

@hashhar hashhar left a comment

Choose a reason for hiding this comment

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

LGTM % comment and ci.

@@ -126,6 +126,7 @@ private WebDriver getWebDriver()
{
ChromeOptions options = new ChromeOptions();
options.setAcceptInsecureCerts(true);
options.addArguments("--disable-gpu");
Copy link
Member

Choose a reason for hiding this comment

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

Should there be a TODO to remove this once resolved upstream? Or does it not matter?

Copy link
Member Author

Choose a reason for hiding this comment

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

A TODO might be a good option here, but it also may not matter. Given that it's docker I can't imagine it'll ever actually use the GPU. I could go either way; I'll add the TODO tomorrow if this PR hasn't been merged as I'm dog tired and done for today.

Copy link
Member

Choose a reason for hiding this comment

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

Sure, no problem. Also, can you please add the reason in the commit message too.

Copy link
Member Author

@11xor6 11xor6 Aug 4, 2021

Choose a reason for hiding this comment

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

So Selenium just released a new version of the Chrome container thus I've just removed the work around entirely. I did add the reason in the commit message with links to the Selenium and Chrome tickets.

Apparently there is an issue with Chrome 92 when running inside a Docker container. This has been resolved with another release of the Selenium Chrome container, thus all that is needed is to reenable the product tests. The links below outline the issue if more detail is required.

See:
* SeleniumHQ/docker-selenium#1346
* SeleniumHQ/docker-selenium#1351
* https://bugs.chromium.org/p/chromium/issues/detail?id=1228625

Related to trinodb#8756
@hashhar hashhar added this to the 361 milestone Aug 5, 2021
@hashhar hashhar merged commit 7d7df75 into trinodb:master Aug 5, 2021
@11xor6 11xor6 deleted the 11xor6/reenable-oauth2-pt branch August 5, 2021 05:45
@kokosing
Copy link
Member

kokosing commented Aug 5, 2021

I think we should pin exact (immutable) version anyway in order to avoid such issues in future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

4 participants