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 Jun 3, 2020

Firefox sometimes gives a popup related to "corrupt profile" and asks if a new profile should be created (happened on local Mac). This might create a flake in the future on LUCI bots

In order to prevent these type of popups give a profile when opening firefox. Preferences are taken from: https://github.com/dart-lang/test/blob/master/pkgs/test/lib/src/runner/browser/firefox.dart

@nturgut nturgut requested review from ferhatb and yjbanov June 3, 2020 18:29
// https://developer.mozilla.org/en-US/docs/Mozilla/Command_Line_Options#Browser
//
var dir = createTempDir();
File(path.join(dir, 'prefs.js')).writeAsStringSync(_profile);
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 clean up the profile directory between test runs?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We delete the directory after processExits:
Line 78: unawaited(process.exitCode
.then((_) => Directory(dir).deleteSync(recursive: true)));

@nturgut
Copy link
Contributor Author

nturgut commented Jun 4, 2020

This fix is related to Firefox, which only runs on Linux Web Engine luci bot. Merging the PR since the test failures are not related to the code path.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants