-
Notifications
You must be signed in to change notification settings - Fork 5.2k
test: throw on foundryup installation issues #32641
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
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. |
// if things fail for any reason try to clean up a bit. it is very important | ||
// to not leave `dir` behind, as its existence is a signal that the binaries | ||
// are installed. | ||
await Promise.all([rm(tempDir, rmOpts), rm(dir, rmOpts)]).catch(noop); | ||
throw e; | ||
const rmErrors = ( |
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.
same logic as before, but ALSO throws errors for the clean up rm
calls.
// this directory shouldn't exist, but if two simultaneous `yarn foundryup` | ||
// processes are running, it might. Last process wins, so we remove other | ||
// `dir`s just in case. | ||
await rm(dir, rmOpts); |
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 change might prevent rename
issues, even though it should be impossible to get into this function is dir
already exists.
Builds ready [42a87e6]
UI Startup Metrics (1230 ± 68 ms)
Benchmark value 1070 exceeds gate value 1061 for chrome browserify home mean domContentLoaded Benchmark value 16 exceeds gate value 15 for chrome browserify home mean getState Benchmark value 1220 exceeds gate value 1190 for chrome browserify home p95 load Benchmark value 1214 exceeds gate value 1180 for chrome browserify home p95 domContentLoaded Benchmark value 1215 exceeds gate value 1180 for chrome browserify home p95 firstPaint Benchmark value 22 exceeds gate value 18 for chrome browserify home p95 backgroundConnect Benchmark value 953 exceeds gate value 940 for chrome browserify home p95 loadScripts Benchmark value 28 exceeds gate value 26 for firefox webpack home mean backgroundConnect Benchmark value 18 exceeds gate value 13 for firefox webpack home mean setupStore Benchmark value 2015 exceeds gate value 1935 for firefox webpack home p95 uiStartup Benchmark value 32 exceeds gate value 28 for firefox webpack home p95 setupStore Sum of mean exceeds: 24ms | Sum of p95 exceeds: 200ms Sum of all benchmark exceeds: 224ms Bundle size diffs [🚀 Bundle size reduced!]
|
Builds ready [d3c5cfe]
UI Startup Metrics (1246 ± 93 ms)
Benchmark value 1083 exceeds gate value 1070 for chrome browserify home mean load Benchmark value 1075 exceeds gate value 1061 for chrome browserify home mean domContentLoaded Benchmark value 1461 exceeds gate value 1365 for chrome browserify home p95 uiStartup Benchmark value 1251 exceeds gate value 1190 for chrome browserify home p95 load Benchmark value 1241 exceeds gate value 1180 for chrome browserify home p95 domContentLoaded Benchmark value 1232 exceeds gate value 1180 for chrome browserify home p95 firstPaint Benchmark value 22 exceeds gate value 18 for chrome browserify home p95 backgroundConnect Benchmark value 962 exceeds gate value 940 for chrome browserify home p95 loadScripts Benchmark value 11 exceeds gate value 9 for firefox browserify home mean setupStore Sum of mean exceeds: 42ms | Sum of p95 exceeds: 296ms Sum of all benchmark exceeds: 338ms Bundle size diffs
|
moved to MetaMask/core#5810 |
Description
We now throw if an existing
anvil
install cannot be removed in order to install a new one.Additionally, we now throw on installation errors and on the cleanup step in order to reveal problems with filesystem access. The new errors can look something like this (I had to had to mess with the file system in order to get it to error multiple ways at once):
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist