-
Notifications
You must be signed in to change notification settings - Fork 5k
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 Cascading test failures and reported as Ganache errors #27131
Comments
@hjetpoluru I found a very simple reproduction for this error. In any suite that has multiple tests, add The first test will fail with I did a little digging, and what's happening is that if mocha causes the test to quit (rather than the test internally throwing an error), the blocks in This is not an easy thing to fix, it's a huge funnel cake. |
Discussion about this flaky test in the slack channel |
Custom Network
tests
PR that @davidmurdoch helped to organize. Gist of it is that withFixtures must be called in a describe block, which will:
If a test uses the start function it will set up an end function that will always be called after the test finishes (pass/failure/timeout). The end function does all the clean up that withFixtures did previously, but it now does it even if the tests time out. Additionally, this changes how we run tests "with fixtures". Instead of passing a callback we now await the call to start, which will give us our fixtures in it's return value (like the driver).
Open issue: |
Comments from technical refinement:
Comment in next technical refinement:
|
CI failure reported on Dec 6 (MultiRpc: should migrate to multi rpc @no-mmi)
test-e2e-chrome
Test path - /test/e2e/tests/network/multi-rpc.spec.ts
Test scenario
CI failure reported on Dec 5 (Sign Typed Data Signature Request can queue multiple...)
test-e2e-chrome-webpack
Test Path -/test/e2e/tests/signature/signature-request.spec.js
Test scenario
CI failure reported on Dec 3 (Encrypt Decrypt should decrypt an encrypted message)
test-e2e-chrome-webpack
Test path - /test/e2e/tests/dapp-interactions/encrypt-decrypt.spec.js
Test scenario
CI failure reported on Dec 2 (Encrypt Decrypt should show balance correctly as ETH)
test-e2e-chrome
Test path - /test/e2e/tests/dapp-interactions/encrypt-decrypt.spec.js
Test scenario
CI failure reported on Dec 2 (Settings - general tab @no-mmi validate "العربية" ...)
test-e2e-chrome
Test path - /test/e2e/tests/settings/change-language.spec.ts
Test scenario
CI failure reported on Nov 22(Send ETH from inside MetaMask finds the transaction ...)
Build - Regular
Browser - Chrome
Test path - /test/e2e/tests/transaction/send-eth.spec.js
Test scenario
CI failure reported on Nov 20th (Reveal SRP through settings completes quiz and revea...)
Build - Regular
Browser - Chrome
Test Path - /test/e2e/tests/settings/settings-security-reveal-srp.spec.ts
Test Scenario
CI failure reported on Nov 12th (Marketing cookieId should not be send to segment whe...)
Build - Regular
Browser - Chrome
Test Path - /test/e2e/tests/metrics/marketing-cookieid.spec.ts
Test Scenario
CI failure reported on Nov 12th (Encrypt Decrypt should show balance correctly as ETH)
Build - Regular
Browser - Chrome
Test Path - /test/e2e/tests/dapp-interactions/encrypt-decrypt.spec.js
Test Scenario
CI failure reported on Nov 12th(Confirmation Redesign Token Send @no-mmi ERC721 dApp...)
Build - Regular
Browser - Chrome
Test Path - /test/e2e/tests/confirmations/transactions/nft-token-send-redesign.spec.ts
Test Scenario
Note - This above flaky test scenario has happened on the second attempt too.
CI failure reported on Nov 11th (Sign Typed Data Signature Request can initiate and r...)
Build - mmi
Browser - Chrome
Test Path - /test/e2e/tests/signature/signature-request.spec.js
Test scenario
CI failure reported on Nov 1st(ERC1155 NFTs testdapp interaction should batch trans...)
Build - mmi
Browser - Chrome
Test Path - /test/e2e/tests/tokens/nft/erc1155-interaction.spec.js
Test scenario
CI failure reported on Oct 29th (Request-queue UI changes handles three confirmations...)
Build - Webpack
Browser - Chrome
Test Path -/test/e2e/tests/request-queuing/ui.spec.js
Test scenario
CI failure reported on Oct 23rd (ERC721 NFTs testdapp interaction should prompt users...)
Build - Webpack
Browser - Chrome
Test Path - /test/e2e/tests/tokens/nft/erc721-interaction.spec.js
Test Scenario
CI failure reported on Oct 23rd (Snap Account Signatures @no-mmi can sign with approv...)
Build - Webpack
Browser - Chrome
Test Path - /test/e2e/tests/account/snap-account-signatures.spec.ts
Test Scenario -
CI failure reported on Oct 23rd (Unlock wallet should send first three Page metric ev...)
Build - Webpack
Browser - Chrome
Test Path - /test/e2e/tests/metrics/unlock-wallet.spec.js
Test Scenario -
CI failure reported on Oct 21st (Request-queue UI changes handles three confirmations...)
Build - Webpack
Browser - Chrome
Test Path -/test/e2e/tests/request-queuing/ui.spec.js
Test Scenario -
CI failure reported on Oct 21st(Review Permissions page should disconnect when click...)
Build - mmi
Browser - Chrome
Test Path -/test/e2e/tests/connections/review-permissions-page.spec.js
Test Scenario -
CI failure reported on Oct 18th (Add account should display correct new account name ...)
Build - Regular
Browser - Chrome
Test Path - /test/e2e/tests/account/add-account.spec.js
Test Scenario -
CI failure reported on Oct 18th (Snap Account Signatures @no-mmi can sign with reject...)
Build - Webpack
Browser - Chrome
Test Path -/test/e2e/tests/account/snap-account-signatures.spec.ts
Test Scenario -
CI failure reported on Oct 17th (Gas estimates generated by MetaMask Send on a networ...)
Build - Regular
Browser - Chrome
Test Path -/test/e2e/tests/transaction/gas-estimates.spec.js
Test Scenario -
Build - rpc-mmi
Browser - Chrome
Test Path -/test/e2e/json-rpc/switchEthereumChain.spec.js
Test Scenario -
CI failure reported on Oct 17th (Switch Ethereum Chain for two dapps switches the cha...)
Build - rpc-mmi
Browser - Chrome
Test Path -/test/e2e/json-rpc/switchEthereumChain.spec.js
Test Scenario -
CI failure reported on Oct 17th (Snap Account Signatures @no-mmi can sign with approv...)
Build - Webpack
Browser - Chrome
Test Path -/test/e2e/tests/account/snap-account-signatures.spec.ts
Test Scenario -
CI failure reported on Oct 16th (Request-queue UI changes should autoswitch networks ...)
CI failure reported on Oct 16th (Request-queue UI changes handles three confirmations...)
Build - Webpack
Browser - Chrome
Test Path -/test/e2e/tests/request-queuing/ui.spec.js
Test Scenario -
CI failure reported on Oct 14th (Create Snap Account @no-mmi create Snap account canc...)
Build - Webpack
Browser - Chrome
Test Path -/test/e2e/tests/account/create-snap-account.spec.ts
Test Scenario -
CI failure reported on Oct 14th(Confirmation Redesign ERC20 Approve Component Submit...)
Build - Regular
Browser - Chrome
Test Path - /test/e2e/tests/confirmations/transactions/revoke-allowance-redesign.spec.ts
Test Scenario -
CI failure reported on Oct 11th (Snap Account Signatures can sign with approve flow)
Build - Webpack
Browser - Chrome
Test Path - /test/e2e/accounts/snap-account-signatures.spec.ts
Test Scenario -
CI failure reported on Oct 9th (Sentry errors before initialization, after opting ou...)
Build - Regular
Browser - Chrome
Test Path - /test/e2e/tests/metrics/errors.spec.js
Test Scenario -
CI failure reported on Oct 9th (Malicious Confirmation Signature - Bad Domain @no-mm...)
Build - Webpack
Browser - Chrome
Test Path - /test/e2e/tests/confirmations/signatures/malicious-signatures.spec.ts
Test Scenario -
CI failure reported on Oct 8th (Request-queue UI changes handles three confirmations...)
Build - Webpack
Browser - Chrome
Test Path - /test/e2e/tests/request-queuing/ui.spec.js
Test Scenario -
CI failure reported on Sept 27(Malicious Confirmation Signature - Bad Domain @no-mm...)
Build - Webpack
Browser - Chrome
Test Path - /test/e2e/tests/confirmations/signatures/malicious-signatures.spec.ts
Test Scenario -
CI failure reported on Sept 27(Snap Account Signatures can sign with sync flow)
Build - Webpack
Browser - Chrome
Test Path - /test/e2e/accounts/snap-account-signatures.spec.ts
Test Scenario -
CI failure reported on Sept 26(Create token, approve token and approve token withou...
Build - Webpack
Browser - Chrome
Test Path - /test/e2e/tests/tokens/custom-token-add-approve.spec.js
Test Scenario -
CI failure reported on Sept 20
https://app.circleci.com/pipelines/github/MetaMask/metamask-extension/101484/workflows/02584d3e-9e9d-49d9-9953-0944167dace6/jobs/3778719/tests
Build - Webpack
Browser - Chrome
Test Path - /test/e2e/tests/transaction/send-eth.spec.js
Test Scenario -
CI failure reported on Sept 20
https://app.circleci.com/pipelines/github/MetaMask/metamask-extension/101369/workflows/6c8551cb-1b8c-4ff5-a912-889d65e289b2/jobs/3774012/tests
Build - mmi
Browser - Chrome
Test Path - /test/e2e/tests/signature/signature-request.spec.js
Test Scenario -
CI failure reported on Sept 19
https://app.circleci.com/pipelines/github/MetaMask/metamask-extension/101259/workflows/506f3637-17c1-42dd-82b0-8e62ee9e6ff3/jobs/3770240/tests
Build - Regular
Browser - Chrome
Test Path - /test/e2e/tests/metrics/dapp-viewed.spec.js
Test Scenario -
CI failure reported on Sept 19
https://app.circleci.com/pipelines/github/MetaMask/metamask-extension/101117/workflows/42636518-13bc-42c7-8624-9334fe1ca94f/jobs/3764726/tests
Build - mmi
Browser - Chrome
Test Path - /test/e2e/tests/settings/settings-search.spec.js
Test Scenario -
CI failure reported on Sept 17
https://app.circleci.com/pipelines/github/MetaMask/metamask-extension/100638/workflows/39f21f3a-0ac3-454b-a34a-3abe8ec618ac/jobs/3747023/tests
Build - webpack
Browser - Chrome
Test Path - /test/e2e/tests/simulation-details/simulation-details.spec.ts
Test Scenarios -
Another CI failure reported on Sept 17
https://app.circleci.com/pipelines/github/MetaMask/metamask-extension/100523/workflows/8e4175f9-0b34-416f-815d-2524eb92820e/jobs/3742442/tests
Build - webpack
Browser - Chrome
Test Path - /test/e2e/tests/transaction/send-eth.spec.js
Test Scenario -
CI failure reported on Sept 13
https://app.circleci.com/pipelines/github/MetaMask/metamask-extension/100198/workflows/7d530039-f9aa-486c-ab61-17e60c5647ca/jobs/3730323/tests
Build - mmi
Browser - Chrome
Test Path - /test/e2e/tests/network/add-custom-network.spec.js
Test scenarios -
Initial error message for the first test scenario
The text was updated successfully, but these errors were encountered: