-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Reland: implement build bundle with assemble #40470
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
…to bundle_assemble
…to bundle_assemble
Codecov Report
@@ Coverage Diff @@
## master #40470 +/- ##
==========================================
- Coverage 59.75% 59.29% -0.47%
==========================================
Files 193 193
Lines 18705 18795 +90
==========================================
- Hits 11177 11144 -33
- Misses 7528 7651 +123
Continue to review full report at Codecov.
|
jmagman
left a comment
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.
Last 3 commits since the master merge LGTM
zanderso
left a comment
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.
lgtm w/ question and nit.
| final PoolResource resource = await pool.request(); | ||
| try { | ||
| final File file = fs.file(fs.path.join(environment.outputDir.path, entry.key)); | ||
| file.parent.createSync(recursive: true); |
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.
What happens when one of these file operations fails?
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 should throw, will update
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.
actually, we're already propagating the future, just ensuring that the resource is released first
|
|
||
| void _writeFilesToBuffer(List<File> files, StringBuffer buffer) { | ||
| for (File outputFile in files) { | ||
| if (platform.isWindows) { |
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.
nit: 2 space indent
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.
Fixed
|
I can't see if the devicelab failure is real or not, so I'll rollback for now |
This reverts commit ea7876a.
Description
This is a reland of #37508. The depfile's were not correctly escaped for windows, which caused failures when rebuilding.
Additionally fixes a bug in the file cache cleanup, and ensures we use a package uri when building a snapshot in assemble.