Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

[wasm][firefox] crit: OpenQA.Selenium.WebDriverException: Failed to decode response from marionette #101617

Open
dotnet/xharness
#1221

Description

@lewing

Release Note Category

  • Feature changes/additions
  • Bug fixes
  • Internal Infrastructure Improvements

Release Note Description

Requires increasing the shared memory. This edit of description is done to make PR's pipeline pass Enforce GitHub issue link presence step.

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=656594
Build error leg or test failing: WasmTestOnFirefox-ST-System.Runtime.Tests.WorkItemExecution
Pull request: #101538

Failure signature

Previously matched text:

crit: OpenQA.Selenium.WebDriverException: Failed to decode response from marionette

Activity

  1. added
    blocking-clean-ci
    Known Build Error
    on Apr 26, 2024
  2. added this to the 9.0.0 milestone on Apr 26, 2024
  3. added
    arch-wasm
    os-browser
    and removed on Apr 26, 2024
  4. dotnet-policy-service commented on Apr 26, 2024

    @dotnet-policy-service
    Contributor

    Tagging subscribers to this area: @dotnet/area-infrastructure-libraries
    See info in area-owners.md if you want to be subscribed.

  5. dotnet-policy-service commented on Apr 26, 2024

    @dotnet-policy-service
    Contributor

    Tagging subscribers to this area: @directhex
    See info in area-owners.md if you want to be subscribed.

  6. added
    in-pr
    blocking-clean-ci
    disabled-test
    and removed
    blocking-clean-ci
    on Apr 26, 2024
  7. 2 remaining items

  8. pavelsavara commented on May 14, 2024

    @pavelsavara
    Member

    This has some hints https://stackoverflow.com/questions/49734915/failed-to-decode-response-from-marionette-message-in-python-firefox-headless-s

    • docker memory need be at least 2gb
    • or there are firefox zombies from previous run
  9. removed
    Known Build Error
    on May 15, 2024
  10. modified the milestones: 9.0.0, Future on May 15, 2024
  11. akoeplinger commented on May 16, 2024

    @akoeplinger
    Member

    Yeah looks like we'd need a way to specify either --shm-size or mount the host's /dev/shm as a volume into the container.

    Here's where we run docker in helix: https://dev.azure.com/dnceng/internal/_git/dotnet-helix-machines?path=/resources/helix-scripts/helix/dockerhelper.py&version=GBmain&line=162&lineEnd=177&lineStartColumn=1&lineEndColumn=1&lineStyle=plain&_a=contents

  12. ilonatommy commented on Jun 11, 2024

    @ilonatommy
    Member

    All LibraryTests_HybridGlobalization on firefox fail because of it.

    Yeah looks like we'd need a way to specify either --shm-size.

    The link you pasted gives the answer, docker's client run function has shm_size parameter. I can make this change if it would be an accepted solution.
    https://docker-py.readthedocs.io/en/stable/containers.html?highlight=shm_size#docker.models.containers.ContainerCollection.run

    edit: by default it's 64MB.

  13. akoeplinger commented on Jun 12, 2024

    @akoeplinger
    Member

    Yeah I think adding the parameter with e.g. 2g is the best option we have. You'll need to send a PR to the dotnet-helix-machines repo I linked above and wait for dnceng to get it rolled out.

  14. ilonatommy commented on Jun 24, 2024

    @ilonatommy
    Member

    It is not caught because runtime-wasm is excluded from Build Analysis step and the failures happen on runtime-wasm (Build browser-wasm windows Release LibraryTests_HybridGlobalization) e.g. log

    Console log: 'WasmTestOnFirefox-ST-Common.Tests' from job 1443fe94-33bc-46e6-bbf7-575bc33b2e86 (windows.amd64.server2022.open.rt) using docker image mcr.microsoft.com/dotnet-buildtools/prereqs:windowsservercore-ltsc2022-helix-webassembly on a002B1J
    running %HELIX_CORRELATION_PAYLOAD%\scripts\1a81aacd35e2468bb85a763d39aec6a5\execute.cmd in C:\h\w\ABFC097D\w\B776098D\e max 1800 seconds
    ....
    JavaScript error: resource://gre/modules/WindowsLaunchOnLogin.sys.mjs, line 28: NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIWindowsRegKey.open]
    JavaScript error: resource://gre/modules/WindowsLaunchOnLogin.sys.mjs, line 28: NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIWindowsRegKey.open]
    [18:52:33] crit: OpenQA.Selenium.WebDriverException: Failed to decode response from marionette
                        at OpenQA.Selenium.Remote.RemoteWebDriver.UnpackAndThrowOnError(Response errorResponse)
                        at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters)
                        at OpenQA.Selenium.Remote.RemoteWebDriver.StartSession(ICapabilities desiredCapabilities)
                        at OpenQA.Selenium.Remote.RemoteWebDriver..ctor(ICommandExecutor commandExecutor, ICapabilities desiredCapabilities)
                        at OpenQA.Selenium.Firefox.FirefoxDriver..ctor(FirefoxDriverService service, FirefoxOptions options, TimeSpan commandTimeout)
                        at Microsoft.DotNet.XHarness.CLI.Commands.Wasm.WasmTestBrowserCommand.<>c__DisplayClass13_0.<GetFirefoxDriver>b__1(FirefoxDriverService driverService) in /_/src/Microsoft.DotNet.XHarness.CLI/Commands/WASM/Browser/WasmTestBrowserCommand.cs:line 146
                        at Microsoft.DotNet.XHarness.CLI.Commands.Wasm.WasmTestBrowserCommand.CreateWebDriver[TDriverService](Func`1 getDriverService, Func`2 getDriver) in /_/src/Microsoft.DotNet.XHarness.CLI/Commands/WASM/Browser/WasmTestBrowserCommand.cs:line 308
                        at Microsoft.DotNet.XHarness.CLI.Commands.Wasm.WasmTestBrowserCommand.CreateWebDriver[TDriverService](Func`1 getDriverService, Func`2 getDriver) in /_/src/Microsoft.DotNet.XHarness.CLI/Commands/WASM/Browser/WasmTestBrowserCommand.cs:line 313
                        at Microsoft.DotNet.XHarness.CLI.Commands.Wasm.WasmTestBrowserCommand.GetFirefoxDriver(ILogger logger) in /_/src/Microsoft.DotNet.XHarness.CLI/Commands/WASM/Browser/WasmTestBrowserCommand.cs:line 144
                        at Microsoft.DotNet.XHarness.CLI.Commands.Wasm.WasmTestBrowserCommand.InvokeInternal(ILogger logger) in /_/src/Microsoft.DotNet.XHarness.CLI/Commands/WASM/Browser/WasmTestBrowserCommand.cs:line 72
                        at Microsoft.DotNet.XHarness.CLI.Commands.XHarnessCommand`1.Invoke(IEnumerable`1 arguments) in /_/src/Microsoft.DotNet.XHarness.CLI/Commands/XHarnessCommand.cs:line 145
    XHarness exit code: 71 (GENERAL_FAILURE)
    
    
  15. ilonatommy commented on Jun 24, 2024

    @ilonatommy
    Member

    Waiting for the results of tests after the changes get propagated: #104017

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

Metadata

Metadata

Assignees

Labels

arch-wasmarea-Infrastructure-monodisabled-testos-browser

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions