Skip to content

test: deflake WOA tests - #23707

Merged
jkleinsc merged 1 commit into
masterfrom
woa-livin-on-a-prayer
May 26, 2020
Merged

jkleinsc merged 1 commit into
masterfrom
woa-livin-on-a-prayer

Conversation

@jkleinsc

@jkleinsc jkleinsc commented May 21, 2020 •

Copy link
Copy Markdown
Member

Description of Change

This PR deflakes 3 tests that have been flaky on WOA as well as other platforms.

  1. chromium features PDF Viewer opens when loading a pdf resource as top level navigation
  2. Menu.setApplicationMenu does not override null menu on startup
  3. devtools extensions loads a devtools extension.

Checklist

Release Notes

Notes: none

@jkleinsc jkleinsc changed the title ci: deflake WOA tests test: deflake WOA tests May 21, 2020
Comment thread azure-pipelines-woa.yml Outdated
set npm_config_arch=arm64
cd electron
node script/yarn test -- --enable-logging --verbose
FOR /L %%x IN (1,1,10) DO (node script/yarn test -- --enable-logging --verbose)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

is this for debugging purposes?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

LOL - yes - and why this PR is in draft

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I've run the tests locally on a WOA machine 10 times but I want to make sure its good to go through CI.

@jkleinsc
jkleinsc marked this pull request as ready for review May 22, 2020 15:02
@jkleinsc
jkleinsc force-pushed the woa-livin-on-a-prayer branch from 0accd80 to 4699fc0 Compare May 22, 2020 15:10
await emittedOnce(contents, 'did-finish-load');
await new Promise((resolve) => {
contents.on('did-finish-load', resolve);
contents.on('did-frame-finish-load', resolve);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

did-finish-load is just a special case of did-frame-finish-load, they are emitted in the same C++ method, I think only listening to did-frame-finish-load is enough.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@zcbenz that is what I had originally, but for some reason on Windows, it was failing if I didn't listen for did-finish-load, but on ARM failing if I didn't listen for did-frame-finish-load.

@jkleinsc
jkleinsc merged commit db5cf81 into master May 26, 2020
@release-clerk

release-clerk Bot commented May 26, 2020

Copy link
Copy Markdown

No Release Notes

@jkleinsc
jkleinsc deleted the woa-livin-on-a-prayer branch May 26, 2020 14:26
@jkleinsc

Copy link
Copy Markdown
Member Author

/trop run backport

@trop

trop Bot commented May 26, 2020

Copy link
Copy Markdown
Contributor

The backport process for this PR has been manually initiated, here we go! :D

@trop

trop Bot commented May 26, 2020

Copy link
Copy Markdown
Contributor

I was unable to backport this PR to "7-3-x" cleanly;
you will need to perform this backport manually.

@trop trop Bot removed the target/7-3-x label May 26, 2020
@trop

trop Bot commented May 26, 2020

Copy link
Copy Markdown
Contributor

I was unable to backport this PR to "8-x-y" cleanly;
you will need to perform this backport manually.

@trop

trop Bot commented May 26, 2020

Copy link
Copy Markdown
Contributor

I have automatically backported this PR to "10-x-y", please check out #23769

@trop

trop Bot commented May 26, 2020

Copy link
Copy Markdown
Contributor

I have automatically backported this PR to "9-x-y", please check out #23770

@trop trop Bot removed the target/9-x-y label May 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants