Skip to content

Conversation

pzrq
Copy link
Contributor

@pzrq pzrq commented Aug 8, 2017

The net effect of this PR is to remove the following, by reordering the data-service and Compass setup so the data-service setup now comes first:

return client 
        .clickInstanceRefreshIcon()
        .waitForInstanceRefresh()

It should have at least 20 Travis runs to validate it has fixed this 35% of the time issue, so I will be pushing noop commits to the branch to get those Travis runs.

@durran
Copy link
Member

durran commented Aug 8, 2017

LGTM

pzrq added 10 commits August 8, 2017 13:05
Very interesting Travis log from previous run:
https://travis-ci.com/10gen/compass/jobs/85809471

Parallels to COMPASS 1056 as well...
Avoids the need to fiddle with the .clickInstanceRefreshIcon() and .waitForInstanceRefresh() entirely, but if it does work, it would probably not resolve COMPASS 1056 as that would require a similar setup refactoring.
@durran durran force-pushed the COMPASS-1679-debugging branch from f44d8d7 to 60e9c2c Compare August 8, 2017 17:05
@durran durran merged commit 5bdda0f into master Aug 8, 2017
@durran durran deleted the COMPASS-1679-debugging branch August 8, 2017 17:42
@pzrq
Copy link
Contributor Author

pzrq commented Aug 9, 2017

For info (somehow did not click submit yesterday), build failures from the 20 runs after suggest this resolved the issue:

  1) #schema when applying a filter in the schema tab checks the collections table:
     Error: Timeout of 60000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.
  
  2) #schema when applying a filter in the schema tab applies the filter again while on schema tab:
     Error: Timeout of 60000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.
  
  3) #schema "after all" hook:
     Error: Timeout of 60000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.

https://travis-ci.com/10gen/compass/jobs/85813876

  1) App Menu "before all" hook:
     Error: Timeout of 2000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.

https://travis-ci.com/10gen/compass/jobs/85814519

  1) #explain "before all" hook:
     Error: Timeout of 60000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.
  
  2) #explain "after all" hook:
     TypeError: Cannot read property 'quit' of null
      at quitCompass (test/functional/support/spectron-support.js:73:13)
      at Context.<anonymous> (test/functional/explain.test.js:26:12)
  3) #indexes "before all" hook:
     Error: Timeout of 60000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.
  
  4) #indexes "after all" hook:
     TypeError: Cannot read property 'quit' of null
      at quitCompass (test/functional/support/spectron-support.js:73:13)
      at Context.<anonymous> (test/functional/indexes.test.js:27:12)
  5) #query-bar "before all" hook:
     Error: Timeout of 60000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.
  
  6) #query-bar "after all" hook:
     TypeError: Cannot read property 'quit' of null
      at quitCompass (test/functional/support/spectron-support.js:73:13)
      at Context.<anonymous> (test/functional/query-bar.test.js:29:12)
  7) #schema "before all" hook:
     Error: Timeout of 60000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.
  
  8) #schema "after all" hook:
     TypeError: Cannot read property 'quit' of null
      at quitCompass (test/functional/support/spectron-support.js:73:13)
      at Context.<anonymous> (test/functional/schema.test.js:26:12)
  9) #sidebar "before all" hook:
     Error: Timeout of 60000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.
  
  10) #sidebar "after all" hook:
     TypeError: Cannot read property 'quit' of null
      at quitCompass (test/functional/support/spectron-support.js:73:13)
      at Context.<anonymous> (test/functional/sidebar.test.js:26:12)

https://travis-ci.com/10gen/compass/jobs/85814521

@pzrq
Copy link
Contributor Author

pzrq commented Aug 9, 2017

Thanks @durran 👍

pzrq added a commit that referenced this pull request Aug 10, 2017
)

* Add some debugging statements

* Add DEBUG=* to Travis

* Drop travis to just the required functional subset

Should avoid the extremely verbose logs from enzyme tests as well, e.g.
https://api.travis-ci.com/jobs/85808677/log.txt?deansi=true&access_token=X8EJCyqCWec556MVGCK4qg

* Add more output

Very interesting Travis log from previous run:
https://travis-ci.com/10gen/compass/jobs/85809471

Parallels to COMPASS 1056 as well...

* 👕

* Move data service setup to before Compass starts

Avoids the need to fiddle with the .clickInstanceRefreshIcon() and .waitForInstanceRefresh() entirely, but if it does work, it would probably not resolve COMPASS 1056 as that would require a similar setup refactoring.

* Reverse debugging changes

* noop

* noop

* Revert "noop"
pzrq added a commit that referenced this pull request Aug 10, 2017
)

* Add some debugging statements

* Add DEBUG=* to Travis

* Drop travis to just the required functional subset

Should avoid the extremely verbose logs from enzyme tests as well, e.g.
https://api.travis-ci.com/jobs/85808677/log.txt?deansi=true&access_token=X8EJCyqCWec556MVGCK4qg

* Add more output

Very interesting Travis log from previous run:
https://travis-ci.com/10gen/compass/jobs/85809471

Parallels to COMPASS 1056 as well...

* 👕

* Move data service setup to before Compass starts

Avoids the need to fiddle with the .clickInstanceRefreshIcon() and .waitForInstanceRefresh() entirely, but if it does work, it would probably not resolve COMPASS 1056 as that would require a similar setup refactoring.

* Reverse debugging changes

* noop

* noop

* Revert "noop"
pzrq added a commit that referenced this pull request Aug 10, 2017
) (#1199)

* Add some debugging statements

* Add DEBUG=* to Travis

* Drop travis to just the required functional subset

Should avoid the extremely verbose logs from enzyme tests as well, e.g.
https://api.travis-ci.com/jobs/85808677/log.txt?deansi=true&access_token=X8EJCyqCWec556MVGCK4qg

* Add more output

Very interesting Travis log from previous run:
https://travis-ci.com/10gen/compass/jobs/85809471

Parallels to COMPASS 1056 as well...

* 👕

* Move data service setup to before Compass starts

Avoids the need to fiddle with the .clickInstanceRefreshIcon() and .waitForInstanceRefresh() entirely, but if it does work, it would probably not resolve COMPASS 1056 as that would require a similar setup refactoring.

* Reverse debugging changes

* noop

* noop

* Revert "noop"
pzrq added a commit that referenced this pull request Aug 10, 2017
) (#1200)

* Add some debugging statements

* Add DEBUG=* to Travis

* Drop travis to just the required functional subset

Should avoid the extremely verbose logs from enzyme tests as well, e.g.
https://api.travis-ci.com/jobs/85808677/log.txt?deansi=true&access_token=X8EJCyqCWec556MVGCK4qg

* Add more output

Very interesting Travis log from previous run:
https://travis-ci.com/10gen/compass/jobs/85809471

Parallels to COMPASS 1056 as well...

* 👕

* Move data service setup to before Compass starts

Avoids the need to fiddle with the .clickInstanceRefreshIcon() and .waitForInstanceRefresh() entirely, but if it does work, it would probably not resolve COMPASS 1056 as that would require a similar setup refactoring.

* Reverse debugging changes

* noop

* noop

* Revert "noop"
durran pushed a commit that referenced this pull request Aug 13, 2017
)

* Add some debugging statements

* Add DEBUG=* to Travis

* Drop travis to just the required functional subset

Should avoid the extremely verbose logs from enzyme tests as well, e.g.
https://api.travis-ci.com/jobs/85808677/log.txt?deansi=true&access_token=X8EJCyqCWec556MVGCK4qg

* Add more output

Very interesting Travis log from previous run:
https://travis-ci.com/10gen/compass/jobs/85809471

Parallels to COMPASS 1056 as well...

* 👕

* Move data service setup to before Compass starts

Avoids the need to fiddle with the .clickInstanceRefreshIcon() and .waitForInstanceRefresh() entirely, but if it does work, it would probably not resolve COMPASS 1056 as that would require a similar setup refactoring.

* Reverse debugging changes

* noop

* noop

* Revert "noop"
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.

2 participants