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

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

Open
hjetpoluru opened this issue Aug 14, 2024 · 2 comments
Open
Labels
flaky tests Sev2-normal Normal severity; minor loss of service or inconvenience. team-extension-platform type-bug

Comments

@hjetpoluru
Copy link
Contributor

hjetpoluru commented Aug 14, 2024

CI failure link reported on Oct 31
(Request Queueing chainId proxy sync request queue is...)

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 off should always follow the globally selected network after connecting and switching without refresh calls @no-mmi

Error: No window found by background script with title: MetaMask Dialog
    at ServerMochaToBackground.receivedMessage (test/e2e/background-socket/server-mocha-to-background.ts:2:2485)
    at ws.onmessage (test/e2e/background-socket/server-mocha-to-background.ts:2:1916)
    at callListener (node_modules/ws/lib/event-target.js:290:14)
    at WebSocket.onMessage (node_modules/ws/lib/event-target.js:209:9)
    at WebSocket.emit (node:events:519:28)
    at WebSocket.emit (node:domain:488:12)
    at Receiver.receiverOnMessage (node_modules/ws/lib/websocket.js:1220:20)
    at Receiver.emit (node:events:519:28)
    at Receiver.emit (node:domain:488:12)
    at Receiver.dataMessage (node_modules/ws/lib/receiver.js:596:14)
    at Receiver.getData (node_modules/ws/lib/receiver.js:496:10)
    at Receiver.startLoop (node_modules/ws/lib/receiver.js:167:16)
    at Receiver._write (node_modules/ws/lib/receiver.js:94:10)
    at writeOrBuffer (node:internal/streams/writable:570:12)
    at _write (node:internal/streams/writable:499:10)
    at Writable.write (node:internal/streams/writable:508:10)
    at Socket.socketOnData (node_modules/ws/lib/websocket.js:1355:35)
    at Socket.emit (node:events:519:28)
    at Socket.emit (node:domain:488:12)
    at addChunk (node:internal/streams/readable:559:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)
    at Readable.push (node:internal/streams/readable:390:5)
    at TCP.onStreamRead (node:internal/stream_base_commons:191:23)

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
Copy link
Contributor

Not related to MM API Platform Team

@chloeYue
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flaky tests Sev2-normal Normal severity; minor loss of service or inconvenience. team-extension-platform type-bug
Projects
Status: To be fixed
Status: To be fixed
Development

No branches or pull requests

4 participants