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

Conversation

@nturgut
Copy link
Contributor

@nturgut nturgut commented Mar 26, 2020

Improvements on felt:

  • Putting driver files downloaded under .dart_tools
  • Running only targets unit tests if targets are provided.
  • Cleaning up used processes if tests fails (it used to only cleanup in case of success)
  • Some comment and variable fixes.

Fixes: flutter/flutter#53320

@nturgut nturgut added the platform-web Code specifically for the web engine label Mar 26, 2020
@nturgut nturgut requested a review from yjbanov March 26, 2020 03:30
temporaryDirectories.add(_drivers);

io.Directory temp = io.Directory.current;
io.Directory.current = _browserDriverDir;
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this done only to resolve ./chromedriver/chromedriver from the current directory? If so, I'd recommend calling startProcess(pathlib.join(_browserDriverDir.path, 'chromedriver', 'chromedriver')) with the same effect but without changing global program state. Same for workingDirectory.

Copy link
Contributor

Choose a reason for hiding this comment

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

+1

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Unfortunately we also need it since the library we are importing from web_drivers also need it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

in other words this line is necessary for both line 98 and 99. Suggestion solution only considers line 99.

Copy link
Contributor

Choose a reason for hiding this comment

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

I see.

Copy link
Contributor

@mdebbar mdebbar left a comment

Choose a reason for hiding this comment

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

LGTM after addressing Yegor's comments.

temporaryDirectories.add(_drivers);

io.Directory temp = io.Directory.current;
io.Directory.current = _browserDriverDir;
Copy link
Contributor

Choose a reason for hiding this comment

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

+1

@nturgut
Copy link
Contributor Author

nturgut commented Mar 26, 2020

Merging the PR, since it is only related to web engine testing tools not related to breakage or to the engine code itself.

@nturgut nturgut merged commit 44fc676 into flutter:master Mar 26, 2020
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla: yes platform-web Code specifically for the web engine

Projects

None yet

Development

Successfully merging this pull request may close these issues.

felt test leaks chromedriver; pollutes console output

4 participants