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

Support LIVE-8118 rename optimism #3964

Merged
merged 9 commits into from
Jul 12, 2023

Merge branch 'develop' into support/LIVE-8118-rename-optimism

fb129be
Select commit
Loading
Failed to load commit list.
Merged

Support LIVE-8118 rename optimism #3964

Merge branch 'develop' into support/LIVE-8118-rename-optimism
fb129be
Select commit
Loading
Failed to load commit list.
live-github-bot / @Desktop β€’ Test App succeeded Jul 12, 2023 in 13m 38s

βœ… Success

Perform end to end and unit tests, type checks and run the linter on the Ledger Live Desktop application.

πŸ”— Workflow run

TypeCheck

Typechecks are fine

  • βœ… Type checks ended with status success

Dead Code Check

Dead code checks are fine

  • βœ…

Unit Tests (Jest)

Unit tests are fine

  • βœ… Unit tests ended with status success

Screenshot Tests (Playwright)

🐧 Linux
βœ… (success)
Screenshots: βœ…

There are no changes in the screenshots for this PR. If this is expected, you are good to go.

Details

πŸ’‘ Basics Tips

To share some piece of advice and help the community, please do not hesitate to edit this file and submit a pull request. Thank you! πŸ™

If you're troubleshooting a build failure, here are a few tips to keep in mind.

Note: you should always navigate to the workflow run page linked above to get additional information about the build failure.

⚠️ Read the logs ⚠️

Start by carefully reading the logs. In most cases (99% of the time), this will be enough to understand the cause of the failure.

Determine if the failure is os-specific

LLD is tested on Linux, macOS, and Windows, and some errors may only occur on a single platform.

Identify the specific step where the error occurred

The LLD test process consists of the following actions that are performed (in a nutshell):

  • Unit testing

    • Checkout the repository. ℹ️ For pull requests, it does a checkout of the branch targeted by the pull request, merges the pull request branch into it and then runs the workflow from that merge commit. It does NOT run at the HEAD commit of the pull request branch. So if you have different results locally make sure to checkout, fetch and pull the target branch and rebase your branch onto it.
    • Install the system dependencies
    • Install the javascript dependencies
    • Build the dependencies of LLD from source
    • Runs the test:jest script
  • End to End testing (For linux, macOS and windows - in parallel)

    • Checkout the repository
    • Install the system dependencies
    • Install the javascript dependencies
    • Build the dependencies of LLD from source
    • Bundles the LLD javascript (build:testing script) and the SDK dummy app
    • Tests with playwright (test:playwright script)
    • Uploads the playwright results as artifacts

Look for for the source of the error in the logs.

Use the keyboard shortcut Cmd + F on macOS or Ctrl + F on Windows and Linux to search for the relevant error message.

The issue might be unrelated to the LLD codebase, but rather related to a dependency like live-common or ledgerjs for instance.

The error message should be enough to understand what went wrong. If it's not the case, then you should try to reproduce the error locally.

Screenshots mismatch

Most of the time the CI fails because playwright detected a change while performing Visual Comparisons.

The check run summary should contain a report (including snapshot diff images) to help understanding what happened.

If you are sure that the changes are expected, you can update the snapshots by commenting /generate-screenshots on the pull request or clicking the Regen. Screenshots button at the top of this page.

It will trigger a workflow that will update the snapshots on all operating systems and push the changes to the pull request after completion.

To run playwright locally you can use the pnpm desktop test:playwright command - but you will need to bundle the app using pnpm desktop build (or pnpm desktop build:testing) beforehand.

Unit tests issue

You can run jest locally by using the pnpm desktop test:jest command.

Check other runs of the same workflow

Check other runs of the same workflow. If other branches are experiencing the same issue, it's likely that the error is not specific to your code.

Review the workflow code.

The workflow YAML file provides information about the commands that are run on the continuous integration (CI) environment.

You should be able to reproduce locally by simply running the commands in the same order.

Infrastucture issues

Consider the possibility of infrastructure issues.

If the error appears to be related to a slow network or a physical machine, it's possible that the problem is not related to the code. In this case, wait a bit and restart the job, or file an issue if the problem persists.

Annotations

Check warning on line 3 in apps/ledger-live-desktop/tests/mocks/WalletConnectClient.ts

See this annotation in the file changed.

@live-github-bot live-github-bot / @Desktop β€’ Test App

@typescript-eslint/no-explicit-any

Unexpected any. Specify a different type.

Check warning on line 4 in apps/ledger-live-desktop/tests/mocks/WalletConnectClient.ts

See this annotation in the file changed.

@live-github-bot live-github-bot / @Desktop β€’ Test App

@typescript-eslint/no-explicit-any

Unexpected any. Specify a different type.

Check warning on line 24 in apps/ledger-live-desktop/tests/mocks/WalletConnectClient.ts

See this annotation in the file changed.

@live-github-bot live-github-bot / @Desktop β€’ Test App

@typescript-eslint/no-explicit-any

Unexpected any. Specify a different type.

Check warning on line 99 in apps/ledger-live-desktop/tests/mocks/notificationsHelpers.ts

See this annotation in the file changed.

@live-github-bot live-github-bot / @Desktop β€’ Test App

@typescript-eslint/no-explicit-any

Unexpected any. Specify a different type.

Check warning on line 14 in apps/ledger-live-desktop/tests/models/AppUpdater.ts

See this annotation in the file changed.

@live-github-bot live-github-bot / @Desktop β€’ Test App

@typescript-eslint/no-explicit-any

Unexpected any. Specify a different type.

Check warning on line 33 in apps/ledger-live-desktop/tests/models/DeviceAction.ts

See this annotation in the file changed.

@live-github-bot live-github-bot / @Desktop β€’ Test App

@typescript-eslint/no-explicit-any

Unexpected any. Specify a different type.

Check warning on line 48 in apps/ledger-live-desktop/tests/models/DeviceAction.ts

See this annotation in the file changed.

@live-github-bot live-github-bot / @Desktop β€’ Test App

@typescript-eslint/no-explicit-any

Unexpected any. Specify a different type.

Check warning on line 87 in apps/ledger-live-desktop/tests/models/DeviceAction.ts

See this annotation in the file changed.

@live-github-bot live-github-bot / @Desktop β€’ Test App

@typescript-eslint/no-explicit-any

Unexpected any. Specify a different type.

Check warning on line 125 in apps/ledger-live-desktop/tests/models/DeviceAction.ts

See this annotation in the file changed.

@live-github-bot live-github-bot / @Desktop β€’ Test App

@typescript-eslint/no-explicit-any

Unexpected any. Specify a different type.

Check warning on line 154 in apps/ledger-live-desktop/tests/models/DeviceAction.ts

See this annotation in the file changed.

@live-github-bot live-github-bot / @Desktop β€’ Test App

@typescript-eslint/no-explicit-any

Unexpected any. Specify a different type.

Check warning on line 160 in apps/ledger-live-desktop/tests/models/DeviceAction.ts

See this annotation in the file changed.

@live-github-bot live-github-bot / @Desktop β€’ Test App

@typescript-eslint/no-explicit-any

Unexpected any. Specify a different type.

Check warning on line 166 in apps/ledger-live-desktop/tests/models/DeviceAction.ts

See this annotation in the file changed.

@live-github-bot live-github-bot / @Desktop β€’ Test App

@typescript-eslint/no-explicit-any

Unexpected any. Specify a different type.

Check warning on line 180 in apps/ledger-live-desktop/tests/models/DeviceAction.ts

See this annotation in the file changed.

@live-github-bot live-github-bot / @Desktop β€’ Test App

@typescript-eslint/no-explicit-any

Unexpected any. Specify a different type.

Check warning on line 197 in apps/ledger-live-desktop/tests/models/DeviceAction.ts

See this annotation in the file changed.

@live-github-bot live-github-bot / @Desktop β€’ Test App

@typescript-eslint/no-explicit-any

Unexpected any. Specify a different type.

Check warning on line 208 in apps/ledger-live-desktop/tests/models/DeviceAction.ts

See this annotation in the file changed.

@live-github-bot live-github-bot / @Desktop β€’ Test App

@typescript-eslint/no-explicit-any

Unexpected any. Specify a different type.

Check warning on line 214 in apps/ledger-live-desktop/tests/models/DeviceAction.ts

See this annotation in the file changed.

@live-github-bot live-github-bot / @Desktop β€’ Test App

@typescript-eslint/no-explicit-any

Unexpected any. Specify a different type.

Check warning on line 220 in apps/ledger-live-desktop/tests/models/DeviceAction.ts

See this annotation in the file changed.

@live-github-bot live-github-bot / @Desktop β€’ Test App

@typescript-eslint/no-explicit-any

Unexpected any. Specify a different type.

Check warning on line 227 in apps/ledger-live-desktop/tests/models/DeviceAction.ts

See this annotation in the file changed.

@live-github-bot live-github-bot / @Desktop β€’ Test App

@typescript-eslint/no-explicit-any

Unexpected any. Specify a different type.

Check warning on line 235 in apps/ledger-live-desktop/tests/models/DeviceAction.ts

See this annotation in the file changed.

@live-github-bot live-github-bot / @Desktop β€’ Test App

@typescript-eslint/no-explicit-any

Unexpected any. Specify a different type.

Check warning on line 241 in apps/ledger-live-desktop/tests/models/DeviceAction.ts

See this annotation in the file changed.

@live-github-bot live-github-bot / @Desktop β€’ Test App

@typescript-eslint/no-explicit-any

Unexpected any. Specify a different type.

Check warning on line 246 in apps/ledger-live-desktop/tests/models/DeviceAction.ts

See this annotation in the file changed.

@live-github-bot live-github-bot / @Desktop β€’ Test App

@typescript-eslint/no-explicit-any

Unexpected any. Specify a different type.

Check warning on line 254 in apps/ledger-live-desktop/tests/models/DeviceAction.ts

See this annotation in the file changed.

@live-github-bot live-github-bot / @Desktop β€’ Test App

@typescript-eslint/no-explicit-any

Unexpected any. Specify a different type.

Check warning on line 263 in apps/ledger-live-desktop/tests/models/DeviceAction.ts

See this annotation in the file changed.

@live-github-bot live-github-bot / @Desktop β€’ Test App

@typescript-eslint/no-explicit-any

Unexpected any. Specify a different type.

Check warning on line 303 in apps/ledger-live-desktop/tests/models/DeviceAction.ts

See this annotation in the file changed.

@live-github-bot live-github-bot / @Desktop β€’ Test App

@typescript-eslint/no-explicit-any

Unexpected any. Specify a different type.

Check warning on line 118 in apps/ledger-live-desktop/tests/models/DiscoverPage.ts

See this annotation in the file changed.

@live-github-bot live-github-bot / @Desktop β€’ Test App

@typescript-eslint/no-explicit-any

Unexpected any. Specify a different type.