Skip to content
New issue

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

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

Already on GitHub? # to your account

regression in digdug 2.2.4 #75

Closed
vladikoff opened this issue Jun 3, 2019 · 11 comments
Closed

regression in digdug 2.2.4 #75

vladikoff opened this issue Jun 3, 2019 · 11 comments

Comments

@vladikoff
Copy link
Member

It seems like the recent dot release changed something where with Firefox 58 testing we now get:

Suite firefox on linux 4.15.0-1035-aws - signin token code FAILED
InvalidArgument: [POST http://localhost:4444/wd/hub/session/b36ca15a-1246-44de-80b4-69f012454baf/window / {"name":"2147483683"}] missing field `handle` at line 3 column 1
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:53'
System info: host: '356e9606de2d', ip: '192.168.80.3', os.name: 'Linux', os.arch: 'amd64', os.version: '4.15.0-1035-aws', java.version: '1.8.0_212'
Driver info: driver.version: unknown
  at Command.<anonymous>  <tests/functional/lib/helpers.js:402:12>
  at Command.<anonymous>  <tests/functional/lib/helpers.js:399:6>
  at Command.<anonymous>  <tests/functional/lib/helpers.js:60:23>
  at Command.<anonymous>  <tests/functional/lib/helpers.js:73:18>
  at Command.<anonymous>  <tests/functional/lib/helpers.js:68:10>
  at Command.<anonymous>  <tests/functional/lib/helpers.js:443:6>
  at Command.<anonymous>  <tests/functional/lib/helpers.js:60:23>
  at Command.<anonymous>  <tests/functional/lib/helpers.js:68:10>
  at Suite.beforeEach  <tests/functional/sign_in_token_code.js:51:8>
  at <src/lib/Suite.ts:383:26>
  at runLifecycleMethod  <src/lib/Suite.ts:351:13>
  at next  <src/lib/Suite.ts:522:32>

We are gonna try to update firefox for this case to see if that fixes it

@vladikoff
Copy link
Member Author

Sorry @jason0x43 this is probably a leadfoot issue? (might have to transfer it)

Shrinkwrap update below https://github.com/mozilla/fxa/pull/1343/files#diff-e860b3ada447521466d04927113e18b0R842

@jason0x43
Copy link
Member

Yeah, that'd would be a leadfoot issue, unless it's happening because of an update to Selenium and geckodriver. Are you using digdug's defaults, or does your test config pin the driver versions?

@vladikoff
Copy link
Member Author

vladikoff commented Jun 5, 2019 via email

@jason0x43
Copy link
Member

Dig Dug tracks (roughly) the current releases of Selenium and web drivers, so it possible that a Dig Dug update is using a geckodriver that no longer works right with FF 58; or it could be some recent changes to feature tests in Leadfoot. I'll take a look.

@jason0x43
Copy link
Member

I have so far been unable to reproduce the error; I can't get an old version of FF installed locally, and FF 58 on BrowserStack can use the name parameter even when I specify geckodriver 0.24.0.

To test if it's a driver version issue, you could try pinning your Selenium and geckodriver versions to the previous Dig Dug defaults:

"tunnelOptions": {
  "version": "3.14.0",
  "drivers": [
    { "name": "firefox", "version": "0.21.0" }
  ]
}

@vladikoff
Copy link
Member Author

Actually, we are using Firefox 67 for this.

The API for window probably changed

[POST http://localhost:4444/wd/hub/session/97fd0cbf-ab21-2945-bf45-507276f6492b/window / {"name":"4294967336"}] missing field handle at line 3 column 1

and now needs to pass in the handle instead of name . I've seen this happen before

@vladikoff
Copy link
Member Author

@jason0x43 so I looked at this more, this is clearly the handle param

I tried setting this here:

config.capabilities = {
  usesHandleParameter: true,
  usesWebDriverWindowHandleCommands: true,
};

But it still logs as false. Am I doing it wrong?

mozilla/fxa@78e9742#diff-c2a4b4f157997a366f725852ddefbd1aR123

@jason0x43
Copy link
Member

You're actually hitting a couple of Leadfoot issues there. One is that the feature test for usesHandleParameter is failing on Firefox because the string case in the error doesn't match what the test is looking for (theintern/leadfoot#178).

The other issue is that manually specifying capabilities only works for some drivers right now, and geckodriver apparently isn't one of those (theintern/leadfoot#137).

I should have a fix out for theintern/leadfoot#178 today, and possibly for theintern/leadfoot#137.

@vladikoff
Copy link
Member Author

@jason0x43 could you please push the latest leadfoot to npm?

@jason0x43
Copy link
Member

2.2.12 is now out and includes the fix for theintern/leadfoot#137

@jason0x43
Copy link
Member

I believe this has been resolved, but we can reopen if not.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants