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

test: fix secrets for tenderly #9106

Merged
merged 1 commit into from
Apr 1, 2024
Merged

test: fix secrets for tenderly #9106

merged 1 commit into from
Apr 1, 2024

Conversation

cortisiko
Copy link
Member

Description

The RPC URL for the testnet used in swaps was incorrect, and as a result, the tests failed because they could not connect to the network. process.env.TENDERLY_NETWORK_ID was returning undefined. This PR assigns process.env.TENDERLY_NETWORK_ID to a variable before using it in the testnet RPC url. It fixes the issue locally.

Fixes:

Manual testing steps

  1. Go to this page...

Screenshots/Recordings

Before

After

Pre-merge author checklist

  • I’ve followed MetaMask Coding Standards.
  • I've completed the PR template to the best of my ability
  • I’ve included tests if applicable
  • I’ve documented my code using JSDoc format if applicable
  • I’ve applied the right labels on the PR (see labeling guidelines). Not required for external contributors.

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

@metamaskbot metamaskbot added the INVALID-PR-TEMPLATE PR's body doesn't match template label Mar 30, 2024
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 45.35%. Comparing base (3f17ad2) to head (a68ebdc).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #9106   +/-   ##
=======================================
  Coverage   45.35%   45.35%           
=======================================
  Files        1272     1272           
  Lines       31247    31247           
  Branches     3189     3189           
=======================================
  Hits        14171    14171           
  Misses      16234    16234           
  Partials      842      842           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@cortisiko cortisiko added needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) No QA Needed Apply this label when your PR does not need any QA effort. Run Smoke E2E Triggers smoke e2e on Bitrise and removed INVALID-PR-TEMPLATE PR's body doesn't match template labels Mar 31, 2024
@cortisiko cortisiko marked this pull request as ready for review March 31, 2024 14:17
@cortisiko cortisiko requested a review from a team as a code owner March 31, 2024 14:17
Copy link
Contributor

github-actions bot commented Mar 31, 2024

https://bitrise.io/ Bitrise

✅✅✅ pr_smoke_e2e_pipeline passed on Bitrise! ✅✅✅

Commit hash: a68ebdc
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/89f33999-23c1-4cc4-8c94-b4ddd129bae5

Note

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

Copy link
Contributor

@chrisleewilcox chrisleewilcox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cortisiko cortisiko merged commit ba9a5ba into main Apr 1, 2024
39 of 45 checks passed
@cortisiko cortisiko deleted the e2e/fix-networks-env-path branch April 1, 2024 23:11
@github-actions github-actions bot removed the needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) label Apr 1, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Apr 1, 2024
@metamaskbot metamaskbot added the release-7.21.0 Issue or pull request that will be included in release 7.21.0 label Apr 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
No QA Needed Apply this label when your PR does not need any QA effort. release-7.21.0 Issue or pull request that will be included in release 7.21.0 Run Smoke E2E Triggers smoke e2e on Bitrise team-mobile-platform
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants