-
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
ci: Fix metamaskbot
comment test build links
#29403
base: main
Are you sure you want to change the base?
Conversation
metamaskbot
comment test build links
- prep-build-mmi | ||
- prep-build-flask | ||
- prep-build-flask-mv2 | ||
- prep-build-test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are all required by the prepublish job because it uses the builds persisted to the workspace by these jobs.
Some of these were indirectly guaranteed to be present in the workspace due to them being required by some other listed dependency here. But best not to rely on that.
35b4b48
to
6ec646c
Compare
return `<a href="${url}">${platform}</a>`; | ||
}) | ||
.join(', '); | ||
const buildMap = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Specifying the labels and builds declaratively made it easier to apply the same validation and formatting to all of them.
firefox: `${BUILD_LINK_BASE}/builds-mv2/metamask-firefox-${VERSION}.zip`, | ||
}, | ||
'builds (beta)': { | ||
chrome: `${BUILD_LINK_BASE}/builds-beta/metamask-flask-chrome-${VERSION}-beta.0.zip`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This link was updated to be "less wrong" (I added the -beta.0
suffix), but it still won't work for two reasons:
- The beta build isn't even generated on most workflows at the moment
- Even when it is generated, the number won't always be
.0
. e.g. it could bebeta.1
.
To be addressed in the later PR.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
9b86dbc
to
440bb95
Compare
@@ -167,7 +167,6 @@ workflows: | |||
requires: | |||
- prep-deps | |||
- prep-build-test-flask-mv2: | |||
<<: *main_master_rc_only |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to build it on all PRs in order to include the build link
Builds ready [be80ecb]
Page Load Metrics (1622 ± 47 ms)
Bundle size diffs
|
@@ -783,10 +786,10 @@ jobs: | |||
name: Build extension for testing | |||
command: yarn build:test:flask:mv2 | |||
- run: | |||
name: Move test build to 'dist-test-flask' to avoid conflict with production build | |||
name: Move test build to 'dist-test-flask-mv2' to avoid conflict with production build |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These two changes were copy+paste mistakes in the step description
- store_artifacts: | ||
path: builds-test-flask | ||
- store_artifacts: | ||
path: builds-test-flask-mv2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was the main issue with the broken test MV2 build links: we forgot toe store_artifacts
step.
Various build links in the `metamaskbot` PR comment were broken. All links have been fixed except beta (which is trickier to fix, requires more substantial changes to the beta workflows). Additionally, validation was added to verify each build link, omitting any that are not working from the comment (and logging warning).
8e1220a
to
de0f2dd
Compare
Builds ready [de0f2dd]
Page Load Metrics (1857 ± 110 ms)
Bundle size diffs
|
Description
Various build links in the
metamaskbot
PR comment were broken. All links have been fixed except beta (which is trickier to fix, requires more substantial changes to the beta workflows, tracked as #29404). The beta link has been removed until we can fix it. Additionally, the Firefox MMI build link has been removed (this build does not work)Related issues
Fixes: #29402
Manual testing steps
Screenshots/Recordings
N/A
Pre-merge author checklist
Pre-merge reviewer checklist