Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-implement most of PR #7024 switch to Chrome browser #7442

Merged
merged 20 commits into from
Jun 17, 2016

Conversation

LeeDr
Copy link
Contributor

@LeeDr LeeDr commented Jun 13, 2016

This switches to use chrome for the integration tests, which has proven to give much better performance rendering Kibana.

It also turns on the new bail option available in version 3.1 of intern. This option will skip any test after a failed one.

Both of these changes are intended to improve performance of the integration tests since they are currently taking close to 15 minutes to run.

@LeeDr
Copy link
Contributor Author

LeeDr commented Jun 13, 2016

jenkins, test it

@jbudz
Copy link
Member

jbudz commented Jun 13, 2016

@LeeDr this will need to change browserName in intern.js too

@LeeDr
Copy link
Contributor Author

LeeDr commented Jun 13, 2016

Thanks @jbudz ! Changed intern.js from firefox to chrome.

@jbudz
Copy link
Member

jbudz commented Jun 14, 2016

jenkins, test it

@jbudz
Copy link
Member

jbudz commented Jun 14, 2016

Looking good. Few comments:

  • Can we look into bumping intern to latest instead (3.2.3)?
  • Test failure on last run
  • So expectations are set properly, this doesn't seem to be running any faster on jenkins, we're still hovering around ~15 minutes
  • Are we bringing firefox back eventually? Thoughts on running tests on both browsers?

@LeeDr
Copy link
Contributor Author

LeeDr commented Jun 14, 2016

  • Bumped intern to latest (3.2.3)
  • Testing fix for failed test
  • Chrome tends to run faster than Firefox. Failures can slow it down a lot. I'm looking into some recently added tests that added 20 seconds test time.
  • Firefox testing just broke with the update to Firefox 47. It's possible to install Firefox 46 and turn off updates. But we'll need to switch to a new Marionette driver to support current Firefox versions. See Allow functional test automation on Firefox 47+ #7452

@LeeDr
Copy link
Contributor Author

LeeDr commented Jun 14, 2016

jenkins, test it

@LeeDr
Copy link
Contributor Author

LeeDr commented Jun 14, 2016

Locally, all tests are passing on Chrome in less than 8 minutes;

TOTAL: tested 1 platforms, 0/92 tests failed

real    7m37.892s

Still working on the failure issue.

@LeeDr LeeDr removed the review label Jun 15, 2016
@LeeDr LeeDr unassigned jbudz Jun 15, 2016
@LeeDr
Copy link
Contributor Author

LeeDr commented Jun 15, 2016

build http://build-eu-00.elastic.co/job/kibana_core_pr/4181/ passed but I had an intermittent failure locally. Working on a fix.

"Additional stability improvements" commit 14b7d3a

build http://build-eu-00.elastic.co/job/kibana_core_pr/4190/ passed. Running again.

http://build-eu-00.elastic.co/job/kibana_core_pr/4195/console failed to collapse the time-picker after setting absolute time in _data_table visualize test. I added a getSpinnerDone between the clicking Go button and collapsing the time picker in headerPage.setAbsoluteRange(fromTime, toTime).

23:27:48.206: --Setting From Time : 2015-09-19 06:31:44.000
23:27:48.717: --Setting To Time : 2015-09-23 18:31:44.000
23:27:49.430: Taking screenshot "/home/jenkins/workspace/kibana_core_pr/test/screenshots/failure/failure_1466026069430_visualize app_visualize app.png"
SUITE ERROR
UnknownError: [POST http://localhost:4444/wd/hub/session/0e6cafb94b286a1dcd2c5f0b5a19e50d/element/0.6915926487210866-10/click] unknown error: Element is not clickable at point (1184, 422). Other element would receive the click: <div class="config-close remove">...</div>
...
  at Element.click  <node_modules/intern/node_modules/leadfoot/Element.js:163:15>
  at Command.<anonymous>  <node_modules/intern/node_modules/leadfoot/Command.js:680:19>
...
  at HeaderPage.collapseTimepicker  <test/support/pages/header_page.js:124:8>
  at Command.<anonymous>  <test/support/pages/header_page.js:116:21>
...
  at HeaderPage.setAbsoluteRange  <test/support/pages/header_page.js:115:8>
  at setAbsoluteRange  <test/functional/apps/visualize/_data_table.js:29:25>

Latest build failed http://build-eu-00.elastic.co/job/kibana_core_pr/4196/console

at DashboardPage.clickNewDashboard  <test/support/pages/dashboard_page.js:17:8>

So I added "getSpinnerDone at the end of loadSavedDashboard".

@LeeDr
Copy link
Contributor Author

LeeDr commented Jun 15, 2016

jenkins, test it

@@ -75,6 +75,9 @@ export default (function () {
.findByCssSelector('button.ng-scope[aria-label="Save Dashboard"]')
.click()
.then(function () {
return headerPage.getSpinnerDone();
})
.then(function () {
return common.sleep(1000);
Copy link
Member

@jbudz jbudz Jun 16, 2016

Choose a reason for hiding this comment

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

should these sleeps be added to all getSpinnerDone calls?

or I guess I'm asking, why there and not in other areas?

@LeeDr
Copy link
Contributor Author

LeeDr commented Jun 16, 2016

jenkins, test it

@LeeDr
Copy link
Contributor Author

LeeDr commented Jun 16, 2016

jenkins, test it

1 similar comment
@LeeDr
Copy link
Contributor Author

LeeDr commented Jun 16, 2016

jenkins, test it

@LeeDr
Copy link
Contributor Author

LeeDr commented Jun 16, 2016

5 passes in a row!

@LeeDr
Copy link
Contributor Author

LeeDr commented Jun 16, 2016

jenkins, test it

2 similar comments
@LeeDr
Copy link
Contributor Author

LeeDr commented Jun 17, 2016

jenkins, test it

@LeeDr
Copy link
Contributor Author

LeeDr commented Jun 17, 2016

jenkins, test it

@LeeDr
Copy link
Contributor Author

LeeDr commented Jun 17, 2016

Now 8 passes in a row!

.findByLinkText('Absolute').click();
.findByLinkText('Absolute').click()
.then(function () {
return self.getSpinnerDone();
Copy link
Member

Choose a reason for hiding this comment

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

this shouldn't be needed should it? clicking absolute shouldn't be triggering any requests

@LeeDr
Copy link
Contributor Author

LeeDr commented Jun 17, 2016

After the change to remove the 3 getSpinnerDone calls, the tests failed with the blank kibana screen. I don't think it's related.
Next commit was to CONTRIBUTING.md and the tests passed.
I'll trigger another run.

@LeeDr
Copy link
Contributor Author

LeeDr commented Jun 17, 2016

jenkins, test it

1 similar comment
@LeeDr
Copy link
Contributor Author

LeeDr commented Jun 17, 2016

jenkins, test it

@jbudz
Copy link
Member

jbudz commented Jun 17, 2016

LGTM

@LeeDr LeeDr merged commit e2ff6bb into elastic:master Jun 17, 2016
@epixa epixa added v5.0.0 and removed v5.0.0 labels Jun 28, 2016
airow pushed a commit to airow/kibana that referenced this pull request Feb 16, 2017
Re-implement most of PR elastic#7024 switch to Chrome browser

Former-commit-id: e2ff6bb
@LeeDr LeeDr deleted the runTestsOnChrome branch May 23, 2017 13:57
cee-chen added a commit that referenced this pull request Jan 10, 2024
`v91.3.1`⏩`v92.0.0-backport.0`

---

##
[`v92.0.0-backport.0`](https://github.com/elastic/eui/releases/v92.0.0-backport.0)

**This is a backport release only intended for use by Kibana.**

**Bug fixes**

- Fixed an `EuiTreeView` JSX Typescript error
([#7452](elastic/eui#7452))
- Fixed a color console warning being generated by disabled `EuiStep`s
([#7454](elastic/eui#7454))


## [`v92.0.0`](https://github.com/elastic/eui/releases/v92.0.0)

- Updated generic types of `EuiBasicTable`, `EuiInMemoryTable` and
`EuiSearchBar.Query.execute` to add `extends object` constraint
([#7340](elastic/eui#7340))
- This change should have no impact on your applications since the
updated types only affect properties that exclusively accept object
values.
- Added a new `EuiFlyoutResizable` component
([#7439](elastic/eui#7439))
- Updated `EuiTextArea` to accept `isClearable` and `icon` as props
([#7449](elastic/eui#7449))

**Bug fixes**

- `EuiRange`/`EuiDualRange`'s track ticks & highlights now update their
positions on resize ([#7442](elastic/eui#7442))

**Deprecations**

- Updated `EuiFilterButton` to remove the second
`.euiFilterButton__textShift` span wrapper. Target
`.euiFilterButton__text` instead
([#7444](elastic/eui#7444))

**Breaking changes**

- Removed deprecated `EuiNotificationEvent`. We recommend copying the
component to your application if necessary
([#7434](elastic/eui#7434))
- Removed deprecated `EuiControlBar`. We recommend using `EuiBottomBar`
instead ([#7435](elastic/eui#7435))
delanni pushed a commit to delanni/kibana that referenced this pull request Jan 11, 2024
`v91.3.1`⏩`v92.0.0-backport.0`

---

##
[`v92.0.0-backport.0`](https://github.com/elastic/eui/releases/v92.0.0-backport.0)

**This is a backport release only intended for use by Kibana.**

**Bug fixes**

- Fixed an `EuiTreeView` JSX Typescript error
([elastic#7452](elastic/eui#7452))
- Fixed a color console warning being generated by disabled `EuiStep`s
([elastic#7454](elastic/eui#7454))


## [`v92.0.0`](https://github.com/elastic/eui/releases/v92.0.0)

- Updated generic types of `EuiBasicTable`, `EuiInMemoryTable` and
`EuiSearchBar.Query.execute` to add `extends object` constraint
([elastic#7340](elastic/eui#7340))
- This change should have no impact on your applications since the
updated types only affect properties that exclusively accept object
values.
- Added a new `EuiFlyoutResizable` component
([elastic#7439](elastic/eui#7439))
- Updated `EuiTextArea` to accept `isClearable` and `icon` as props
([elastic#7449](elastic/eui#7449))

**Bug fixes**

- `EuiRange`/`EuiDualRange`'s track ticks & highlights now update their
positions on resize ([elastic#7442](elastic/eui#7442))

**Deprecations**

- Updated `EuiFilterButton` to remove the second
`.euiFilterButton__textShift` span wrapper. Target
`.euiFilterButton__text` instead
([elastic#7444](elastic/eui#7444))

**Breaking changes**

- Removed deprecated `EuiNotificationEvent`. We recommend copying the
component to your application if necessary
([elastic#7434](elastic/eui#7434))
- Removed deprecated `EuiControlBar`. We recommend using `EuiBottomBar`
instead ([elastic#7435](elastic/eui#7435))
CoenWarmer pushed a commit to CoenWarmer/kibana that referenced this pull request Feb 15, 2024
`v91.3.1`⏩`v92.0.0-backport.0`

---

##
[`v92.0.0-backport.0`](https://github.com/elastic/eui/releases/v92.0.0-backport.0)

**This is a backport release only intended for use by Kibana.**

**Bug fixes**

- Fixed an `EuiTreeView` JSX Typescript error
([elastic#7452](elastic/eui#7452))
- Fixed a color console warning being generated by disabled `EuiStep`s
([elastic#7454](elastic/eui#7454))


## [`v92.0.0`](https://github.com/elastic/eui/releases/v92.0.0)

- Updated generic types of `EuiBasicTable`, `EuiInMemoryTable` and
`EuiSearchBar.Query.execute` to add `extends object` constraint
([elastic#7340](elastic/eui#7340))
- This change should have no impact on your applications since the
updated types only affect properties that exclusively accept object
values.
- Added a new `EuiFlyoutResizable` component
([elastic#7439](elastic/eui#7439))
- Updated `EuiTextArea` to accept `isClearable` and `icon` as props
([elastic#7449](elastic/eui#7449))

**Bug fixes**

- `EuiRange`/`EuiDualRange`'s track ticks & highlights now update their
positions on resize ([elastic#7442](elastic/eui#7442))

**Deprecations**

- Updated `EuiFilterButton` to remove the second
`.euiFilterButton__textShift` span wrapper. Target
`.euiFilterButton__text` instead
([elastic#7444](elastic/eui#7444))

**Breaking changes**

- Removed deprecated `EuiNotificationEvent`. We recommend copying the
component to your application if necessary
([elastic#7434](elastic/eui#7434))
- Removed deprecated `EuiControlBar`. We recommend using `EuiBottomBar`
instead ([elastic#7435](elastic/eui#7435))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants