Skip to content
This repository has been archived by the owner. It is now read-only.

Wait 10 seconds to make sure browser instances are closed #11239

Merged
merged 1 commit into from Oct 28, 2017

Conversation

@luixxiul
Copy link
Contributor

luixxiul commented Oct 2, 2017

There are several cases where a new browser instance starts with .startApp() before the existing instance is completely closed with .stopApp(). Adding 10 seconds delay should almost assure that the existing instance is closed before new one starts on a slow machine.

Closes #10490

Auditors:

Test Plan:

  1. Run npm run test -- --grep='sessionStore test'

  2. Run npm run test -- --grep='ledger history'

  3. Check the Travis result as well

    https://travis-ci.org/brave/browser-laptop/jobs/286708254#L3528

Submitter Checklist:

  • Submitted a ticket for my issue if one did not already exist.
  • Used Github auto-closing keywords in the commit message.
  • Added/updated tests for this change (for new code or code which already has tests).
  • Ran git rebase -i to squash commits (if needed).
  • Tagged reviewers and labelled the pull request as needed.

Test Plan:

Reviewer Checklist:

Tests

  • Adequate test coverage exists to prevent regressions
  • Tests should be independent and work correctly when run individually or as a suite ref
  • New files have MPL2 license header
@luixxiul luixxiul self-assigned this Oct 2, 2017
@luixxiul luixxiul requested a review from bbondy Oct 2, 2017
@luixxiul
Copy link
Contributor Author

luixxiul commented Oct 3, 2017

The change looks working properly:

https://travis-ci.org/brave/browser-laptop/jobs/286708254#L3528

 23 passing (4m)
@luixxiul luixxiul added this to the 0.21.x (Nightly Channel) milestone Oct 3, 2017
@codecov-io
Copy link

codecov-io commented Oct 3, 2017

Codecov Report

Merging #11239 into master will decrease coverage by 0.03%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master   #11239      +/-   ##
==========================================
- Coverage   52.09%   52.06%   -0.04%     
==========================================
  Files         269      269              
  Lines       25501    25501              
  Branches     4062     4062              
==========================================
- Hits        13286    13277       -9     
- Misses      12215    12224       +9
Flag Coverage Δ
#unittest 52.06% <ø> (-0.04%) ⬇️
Impacted Files Coverage Δ
js/stores/appStoreRenderer.js 91.17% <0%> (-8.83%) ⬇️
app/renderer/components/reduxComponent.js 84.37% <0%> (-6.25%) ⬇️
js/stores/windowStore.js 27.27% <0%> (-0.31%) ⬇️
@luixxiul
Copy link
Contributor Author

luixxiul commented Oct 13, 2017

+1 from #11508

Copy link
Contributor

cezaraugusto left a comment

Looks good to me but I'm not sure if 10s is an OK number so deferring merge to @bsclifton @bbondy

@cezaraugusto
Copy link
Contributor

cezaraugusto commented Oct 13, 2017

also pls put ledger tests in test plan too as their files were changed too and rebase against master latest as new tests were added. Thanks

@luixxiul
Copy link
Contributor Author

luixxiul commented Oct 13, 2017

Thanks, the test was added to the 1st post.

@bbondy bbondy modified the milestones: 0.21.x (Developer Channel), 0.20.x (Beta Channel) Oct 25, 2017
Suguru Hirahara
There are several cases where a new browser instance starts with .startApp() before the existing instance is completely closed with .stopApp(). Adding 10 seconds delay should almost assure that the existing instance is closed before new one starts even on a slow machine.

Closes #10490

Auditors:

Test Plan:
1. Run `npm run test -- --grep='sessionStore test'`
@bbondy bbondy modified the milestones: 0.20.x (Beta Channel), Backlog Oct 27, 2017
@luixxiul
Copy link
Contributor Author

luixxiul commented Oct 27, 2017

Is this fix not needed? I am not quite sure about that.

@luixxiul luixxiul added the needs-info label Oct 27, 2017
@bbondy
Copy link
Member

bbondy commented Oct 27, 2017

We're just not tracking things in milestones anymore unless it blocks the release, see #general in slack. Things can get uplifted from backlog as they are done mostly.

@luixxiul
Copy link
Contributor Author

luixxiul commented Oct 27, 2017

@bbondy I have seen that, and I am just wondering if the review on #11239 (review) above is not sufficient.

@bbondy
Copy link
Member

bbondy commented Oct 28, 2017

Do you know how long it adds to the test suite total?

@luixxiul
Copy link
Contributor Author

luixxiul commented Oct 28, 2017

120 seconds are added. As the test runs parallel on Travis, it practically adds 80 seconds (sessionStoreTest).

@bbondy bbondy merged commit 41a0523 into brave:master Oct 28, 2017
1 of 3 checks passed
1 of 3 checks passed
codecov/project 52.06% (-0.04%) compared to 327382d
Details
continuous-integration/travis-ci/pr The Travis CI build failed
Details
codecov/patch Coverage not affected when comparing 327382d...b7043c0
Details
@bbondy bbondy modified the milestones: Backlog, 0.19.x Hotfix 3 (Release channel) Oct 28, 2017
bbondy added a commit that referenced this pull request Oct 28, 2017
Wait 10 seconds to make sure browser instances are closed
bbondy added a commit that referenced this pull request Oct 28, 2017
Wait 10 seconds to make sure browser instances are closed
bbondy added a commit that referenced this pull request Oct 28, 2017
Wait 10 seconds to make sure browser instances are closed
@bbondy
Copy link
Member

bbondy commented Oct 28, 2017

master: 41a0523
0.21.x: cd94bd9
0.20.x: c3c17d9
0.19.x: 3e6cdc5

@luixxiul luixxiul deleted the luixxiul:wait-10-seconds branch Oct 28, 2017
@bsclifton
Copy link
Member

bsclifton commented Oct 29, 2017

@luixxiul the tests aren't parallelized like that, unfortunately. There are 8 simple groupings that will run at the same time... The changes here affect 3 groupings. So each of those 3 groups would be affected and delayed, because each group runs in a serial fashion

@luixxiul let's keep an eye on tests if you don't mind and ensure this doesn't eat up too much time

Copy link
Member

bsclifton left a comment

++ notes left:
#11239 (comment)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

5 participants
You can’t perform that action at this time.