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

Re-Re-land Implement flutter build bundle with assemble #41230

Merged
merged 45 commits into from
Sep 25, 2019

Conversation

jonahwilliams
Copy link
Member

Description

This reland fixes issues introduced when adjusting invalidation of the file hashes. An additional test case has been added which confirms that if the filecache is deleted we no longer crash.

@fluttergithubbot fluttergithubbot added team Infra upgrades, team productivity, code health, technical debt. See also team: labels. tool Affects the "flutter" command-line tool. See also t: labels. labels Sep 24, 2019
@@ -84,8 +84,6 @@ abstract class CodegenDaemon {
/// Only a subset of the arguments provided to the [KernelCompiler] are
/// supported here. Using the build pipeline implies a fixed multiroot
/// filesystem and requires a pubspec.
///
Copy link
Member Author

Choose a reason for hiding this comment

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

Unrelated change, but stale comment should be safe to delete...

@@ -123,7 +123,7 @@ class FileHashStore {
printTrace('Persisting file store');
final File file = _cacheFile;
if (!file.existsSync()) {
file.createSync();
file.createSync(recursive: true);
Copy link
Member Author

Choose a reason for hiding this comment

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

If the parent directory was missing this crashed with a missing file exception. The test added below exercises this case

Copy link
Member

@jmagman jmagman left a comment

Choose a reason for hiding this comment

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

Just reviewed the last commit, LGTM

@jonahwilliams jonahwilliams merged commit 84a476a into flutter:master Sep 25, 2019
@jonahwilliams jonahwilliams deleted the bundle_assemble branch September 25, 2019 14:44
jonahwilliams added a commit that referenced this pull request Sep 25, 2019
@jonahwilliams jonahwilliams restored the bundle_assemble branch September 25, 2019 15:31
Inconnu08 pushed a commit to Inconnu08/flutter that referenced this pull request Sep 30, 2019
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
team Infra upgrades, team productivity, code health, technical debt. See also team: labels. tool Affects the "flutter" command-line tool. See also t: labels.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants