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

Default to named ui public n to z #11221

Merged

Conversation

stacey-gammon
Copy link
Contributor

@stacey-gammon stacey-gammon commented Apr 13, 2017

Related to #10981. Converting rest of ui/public to using named exports only. Default exports may still be around where they are used prolifically, or in x-pack.

Background: #8641

@stacey-gammon stacey-gammon force-pushed the deafult-to-named-ui-public-n-to-z branch from 74578ae to e0faa74 Compare April 13, 2017 16:01
@stacey-gammon
Copy link
Contributor Author

Hmm, error looks strange:

Running "checkPlugins" task

Running "esvm:test" (esvm) task
starting up "test" cluster
INFO -  - cluster - Downloading & installing from "master" branch.
Fatal error: unexpected end of file�
runbld>>> <<<<<<<<<<<< SCRIPT EXECUTION END <<<<<<<<<<<<
runbld>>> DURATION: 257349ms
runbld>>> STDOUT: 86987 bytes
runbld>>> STDERR: 1929 bytes
runbld>>> WRAPPED PROCESS: FAILURE (3)

jenkins, test this

@stacey-gammon
Copy link
Contributor Author

Looks like another invalid failure, different one this time:

Running "functionalTestRunner" task
 debg  Loading config file from "/var/lib/jenkins/workspace/elastic+kibana+pull-request+multijob-selenium/test/functional/config.js"
 info  Config loaded
  log   [17:49:27.198] [info][status][plugin:[email protected]] Status changed from yellow to yellow - No existing Kibana index found
INFO - -woNMIT - meta_data_create_index_service - [.kibana] creating index, cause [api], templates [], shards [1]/[1], mappings [server, config]
  log   [17:49:27.621] [info][status][plugin:[email protected]] Status changed from yellow to green - Kibana index ready
  log   [17:49:27.621] [info][status][ui settings] Status changed from yellow to green - Ready
Warning: Error: remote failed to start within 2 minutes
    at /var/lib/jenkins/workspace/elastic+kibana+pull-request+multijob-selenium/test/functional/services/remote/leadfoot_command.js:13:13
    at undefined.next (native)
    at step (/var/lib/jenkins/workspace/elastic+kibana+pull-request+multijob-selenium/test/functional/services/remote/leadfoot_command.js:5:1)
    at /var/lib/jenkins/workspace/elastic+kibana+pull-request+multijob-selenium/test/functional/services/remote/leadfoot_command.js:5:1� Use --force to continue.

Aborted due to warnings.

jenkins, test this

@stacey-gammon stacey-gammon force-pushed the deafult-to-named-ui-public-n-to-z branch from 06c266a to d593c33 Compare April 13, 2017 20:37
@stacey-gammon
Copy link
Contributor Author

jenkins, test this

(functional runner failed to start)

@stacey-gammon stacey-gammon force-pushed the deafult-to-named-ui-public-n-to-z branch 6 times, most recently from 7c4b5dc to 09cc7e3 Compare April 17, 2017 20:20
@stacey-gammon stacey-gammon force-pushed the deafult-to-named-ui-public-n-to-z branch from 5b1a269 to f186247 Compare April 18, 2017 13:07
@stacey-gammon
Copy link
Contributor Author

Build error:

Chrome 57.0.2987 (Linux 0.0.0) kibana_map tests KibanaMap - baseLayer WMS FAILED
	Error: timeout of 10000ms exceeded. Ensure the done() callback is being called in this test.
Chrome 57.0.2987 (Linux 0.0.0): Executed 485 of 719 (1 FAILED) (0 secs / 16.69 secs)

I think I've seen this one before and it's flaky (exceeds the timeout anyway, doesn't actually fail...)

jenkins, test this.

@stacey-gammon stacey-gammon force-pushed the deafult-to-named-ui-public-n-to-z branch from f186247 to 9327c55 Compare April 18, 2017 15:59
@stacey-gammon stacey-gammon force-pushed the deafult-to-named-ui-public-n-to-z branch from 9327c55 to c4621e0 Compare April 18, 2017 16:24
Copy link
Contributor

@ycombinator ycombinator left a comment

Choose a reason for hiding this comment

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

Amazing work, as before! I left a few comments but overall LGTM!

@@ -1,12 +1,12 @@
import _ from 'lodash';
import VisProvider from 'ui/vis';
import { VisProvider } from 'ui/vis';
import AggTypesIndexProvider from 'ui/agg_types/index';
Copy link
Contributor

Choose a reason for hiding this comment

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

Any reason this one didn't change?

@@ -5,7 +5,8 @@ import ngMock from 'ng_mock';
import AggParamWriterProvider from '../../agg_param_writer';
import FixturesStubbedLogstashIndexPatternProvider from 'fixtures/stubbed_logstash_index_pattern';
import AggTypesIndexProvider from 'ui/agg_types/index';
Copy link
Contributor

Choose a reason for hiding this comment

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

Any reason this one didn't change?

@@ -1,7 +1,7 @@
import _ from 'lodash';
import expect from 'expect.js';
import ngMock from 'ng_mock';
import VisProvider from 'ui/vis';
import { VisProvider } from 'ui/vis';
import FixturesStubbedLogstashIndexPatternProvider from 'fixtures/stubbed_logstash_index_pattern';
import AggTypesParamTypesCalculateIntervalProvider from 'ui/agg_types/param_types/_calculate_interval';
Copy link
Contributor

@ycombinator ycombinator Apr 18, 2017

Choose a reason for hiding this comment

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

AFAICT, there is no file corresponding to ui/agg_types/param_types/_calculate_interval in the source code. I looked in https://github.com/elastic/kibana/tree/master/src/ui/public/agg_types/param_types. How is this even working? 😄

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hah, interesting. Looks like this test is never being run because it's not mentioned in the index.js file. I'll remove the file in a separate PR, so the vis team can take a more focused look and in case we ever need to bring it back, it's decoupled from this monster PR. :)

@@ -45,3 +46,6 @@ export default function () {

return esDuration;
}

// used by x-pack. TODO: switch to named and remove.
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd suggest removing this comment and others like it that reference x-pack from OSS Kibana source code. When we see these default imports in x-pack-kibana, we'll know which ones to come back and cleanup in OSS Kibana.

@@ -9,9 +9,10 @@

import _ from 'lodash';
import { IndexedArray } from 'ui/indexed_array';
import VisAggConfigProvider from 'ui/vis/agg_config';
import { VisAggConfigProvider } from 'ui/vis/agg_config';
import AggTypesIndexProvider from 'ui/agg_types/index';
Copy link
Contributor

Choose a reason for hiding this comment

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

Any reason not to change this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Looks like this file got left out of the a - m chunk. I'll add the conversion in here. It still works bc I kept the default export around in that file.

@@ -10,13 +10,13 @@

import _ from 'lodash';
import AggTypesIndexProvider from 'ui/agg_types/index';
Copy link
Contributor

Choose a reason for hiding this comment

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

Any reason not to change this?

import VislibComponentsLabelsLabelsProvider from '../components/labels/labels';
import { VislibComponentsZeroInjectionInjectZerosProvider } from '../components/zero_injection/inject_zeros';
import { VislibComponentsZeroInjectionOrderedXKeysProvider } from '../components/zero_injection/ordered_x_keys';
import { VislibComponentsLabelsLabelsProvider } from '../components/labels/labels';
import VislibComponentsColorColorProvider from 'ui/vis/components/color/color';
Copy link
Contributor

Choose a reason for hiding this comment

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

Any reason not to change this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Initially because I was waiting for this PR to get merged: #11251

But now it's merged so I'll convert.

Copy link
Contributor

@ycombinator ycombinator left a comment

Choose a reason for hiding this comment

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

LGTM!

@stacey-gammon stacey-gammon merged commit 3eeecb7 into elastic:master Apr 19, 2017
stacey-gammon added a commit that referenced this pull request Apr 19, 2017
* Merge

* fix

* Update resize checker which is in a different location than master
@stacey-gammon stacey-gammon deleted the deafult-to-named-ui-public-n-to-z branch April 19, 2017 19:53
w33ble added a commit to elastic/template-kibana-plugin that referenced this pull request Jun 15, 2017
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.

2 participants