Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@eyebrowsoffire
Copy link
Contributor

No description provided.

@flutter-dashboard flutter-dashboard bot added the platform-web Code specifically for the web engine label Mar 16, 2023
@flutter-dashboard
Copy link

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat (don't just cc him here, he won't see it! He's on Discord!).

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

io.Directory get webUiBuildDir => io.Directory(pathlib.join(
webUiRootDir.path,
'build',
outDir.path,
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we copy to both locations as a transitional step to not break the current tests?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think we'll have to do that. AFAIK the current tests will not be broken by this.

List<io.File> _flatListSourceFiles(io.Directory directory) {
// This is the old path that tests used to be built into. Ignore anything
// within this path.
final String legacyBuildPath = path.join(environment.webUiRootDir.path, 'build');
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we also add the legacy path to the felt clean command?

final List<io.FileSystemEntity> thingsToBeCleaned = <io.FileSystemEntity>[
environment.webUiDartToolDir,
environment.webUiBuildDir,
io.File(path.join(environment.webUiRootDir.path, '.dart_tool', 'package_config.json')),
io.File(path.join(environment.webUiRootDir.path, 'pubspec.lock')),
if (_alsoCleanNinja)
environment.outDir,
if(_alsoCleanFlutterRepo)
environment.engineDartToolDir,
];

I personally rarely use felt clean so I don't have a strong opinion here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah good idea

@Hixie
Copy link
Contributor

Hixie commented Mar 16, 2023

test-exempt: is tests

@eyebrowsoffire eyebrowsoffire added the autosubmit Merge PR when tree becomes green via auto submit App label Mar 16, 2023
@auto-submit auto-submit bot merged commit d22a02d into main Mar 16, 2023
@auto-submit auto-submit bot deleted the web_tests_out_dir branch March 16, 2023 22:19
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Mar 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

autosubmit Merge PR when tree becomes green via auto submit App needs tests platform-web Code specifically for the web engine

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants