MetaMask / metamask-extension

:globe_with_meridians: :electric_plug: The MetaMask browser extension enables browsing Ethereum blockchain enabled websites
https://metamask.io
Other
11.92k stars 4.87k forks source link

Fix "Request Queueing chainId proxy sync request queue is..." flaky tests #26418

Open hjetpoluru opened 1 month ago

hjetpoluru commented 1 month ago

CI failure link reported on Sept 18 https://app.circleci.com/pipelines/github/MetaMask/metamask-extension/100918/workflows/8fac5c6b-5539-40d3-839f-f6d19d6adf66/jobs/3757303/tests

Build - Webpack Browser - Chrome Test Path - /test/e2e/tests/request-queuing/chainid-check.spec.js Test Scenario - Request Queueing chainId proxy sync request queue is on should preserve per dapp network selections after connecting and switching without refresh calls @no-mmi

Error: A new host not contained in the privacy-snapshot received a network
           request during test execution. Please update the privacy-snapshot
           file by passing the --update-privacy-snapshot option to the test
           command or add the new hosts to the snapshot manually.

           New hosts found: sepolia.infura.io.
  (Ran on CircleCI Node 1 of 20, Job test-e2e-chrome-webpack)
    at withFixtures (test/e2e/helpers.js:264:15)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Context.<anonymous> (test/e2e/tests/request-queuing/chainid-check.spec.js:20:7)

Console log error with socket failed

2024-09-17T19:26:11.809Z [driver] Called 'navigate' with arguments []
ServerMochaToBackground got a client connection

-----Received an error from Chrome-----
Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 1.
----------End of Chrome error----------
-----We will ignore this 'Warning'-----

2024-09-17T19:26:18.718Z [driver] Called 'fill' with arguments ["#password","correct horse battery staple"]
2024-09-17T19:26:19.039Z [driver] Called 'press' with arguments ["#password",""]
2024-09-17T19:26:19.169Z [driver] Called 'assertElementNotPresent' with arguments ["[data-testid=\"unlock-page\"]"]
2024-09-17T19:26:19.909Z [driver] Called 'navigate' with arguments ["home"]
Failed to handle request: socket hang up

Another error reported in the console log

Failure on testcase: 'Request Queueing chainId proxy sync request queue is on should preserve per dapp network selections after connecting and switching without refresh calls @no-mmi', for more information see the artifacts tab in CI

Error: A new host not contained in the privacy-snapshot received a network
           request during test execution. Please update the privacy-snapshot
           file by passing the --update-privacy-snapshot option to the test
           command or add the new hosts to the snapshot manually.

           New hosts found: sepolia.infura.io.

ServerMochaToBackground disconnected from client
manifest-flag-mocha-hooks.ts -- afterEach hook
manifest-flag-mocha-hooks.ts -- beforeEach hook
Starting ChromeDriver 126.0.6478.182 (5b5d8292ddf182f8b2096fa665b473b6317906d5-refs/branch-heads/6478@{#1776}) on port 41057
Only local connections are allowed.
Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe.
[1726601198.044][SEVERE]: bind() failed: Cannot assign requested address (99)
ChromeDriver was started successfully.

Console log error link https://app.circleci.com/pipelines/github/MetaMask/metamask-extension/100918/workflows/8fac5c6b-5539-40d3-839f-f6d19d6adf66/jobs/3757303/parallel-runs/1?filterBy=ALL

CI failure link when this ticket was created https://app.circleci.com/pipelines/github/MetaMask/metamask-extension/95342/workflows/047b9dc5-4ad8-4931-967a-1267ba4a59c6/jobs/3548992/tests

blurpesec commented 1 month ago

Not related to MM API Platform Team

chloeYue commented 5 days ago

This test is still flaky. CI failure: https://app.circleci.com/pipelines/github/MetaMask/metamask-extension/101420/workflows/cd96393d-824a-495a-8a9f-b9651f8edefc/jobs/3775881