chore: new environment variable to builds with gh actions#26668
Conversation
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection: The changes affect:
All changes are:
For E2E tests, when Selected SmokeRamps and SmokeCard as these are the primary user-facing features affected by the environment detection changes. The rewards functionality doesn't have a dedicated E2E tag, and the changes there are minimal. Performance Test Selection: |
Description
OTA was broken with old environment variables check. This PR aims to solve that by introdocing a new environment variable.
Changelog
CHANGELOG entry:
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Medium Risk
Changes how several services choose API endpoints/environments by switching from
GITHUB_ACTIONS/E2Echecks to a newBUILDS_ENABLED_WITH_GH_ACTIONS_TEMPORARYflag, which could route builds to different backend environments if misconfigured.Overview
Introduces a new build-time env flag,
BUILDS_ENABLED_WITH_GH_ACTIONS_TEMPORARY, and uses it to decide when to take build-provided URLs/environments (frombuilds.yml) versus deriving them fromMETAMASK_ENVIRONMENT.Updates Baanx Card URL mapping, ramps SDK environment selection (Aggregator + Deposit), ramps controller init, and rewards API URL override logic to key off this flag, and refreshes/adjusts tests accordingly (including removing the previous special-casing tied to
E2E).Written by Cursor Bugbot for commit 4249918. This will update automatically on new commits. Configure here.