Commit graph

961 commits

Author SHA1 Message Date
Spencer c5ae40ca5d [server/logger] downgrade EPIPE errors to debug level (#9023)
* [server/logger] downgrade EPIPE errors to debug level

* fix variable naming
2016-11-10 19:25:19 -07:00
Jonathan Budzenski 090f74941c [license] Fix amdefine check (#8935) 2016-11-02 12:50:00 -04:00
Lee Drengenberg 8ed3b333b0 Port #8880 to master Support Cloud testing (#8915)
* Support Cloud Kibana UI testing master

* Add xpack file

* cherry-pick 9f63224e77
2016-11-01 10:44:12 -05:00
Peter Pisljar 9b5a96e034 [build] Check SHA sum of downloaded node package (#7746)
* fix #7136 - check SHA of downloaded node binaries
* skips download if --skip-node-download cli argument is present
2016-10-29 17:10:46 +02:00
spalger ea303935a1 [tests/functional] auto-rebuild assets in test:ui:server task
While working on some functional tests I had to re-run the `test:ui:server` task several times to rebuild the front-end assets. I'm not sure why that should be necessary, so this updates the server used in that specific task to auto-rebuild the assets.
2016-09-19 13:16:39 -07:00
Rashid Khan 13da673bc8 Merge branch 'master' of github.com:elastic/kibana into migrate/timelion 2016-09-02 12:47:19 -07:00
spalger 88427e9a43 add test sharding
The tests in master are currently failing regularly because our current browser tests are serious memory hogs. Investigation reveals that nearly every test is retaining all of the memory it causes to be allocated. We have made some progress to being able to diagnose the problems, but we expect that problem to take some serious work to fix. We need a short-term solution though, and this is it.

Rather than modify the bundling process, we will shard the top-level test suites by name. For now, we've created 4 shards, but adding new shards is trivial if we need to.

Sharding is accomplished by creating a murmur3 hash of the top level suite names, then bucketing based on the hash output. If a test suite resolves to shard2, but we are running shard1, we simply never pass the function to `mocha.describe()`. Rather than redefine every describe statement, we have shimmed the global `window.describe()` function to accomplish this.
2016-09-02 10:38:29 -07:00
Rashid Khan 1c47159939 Merge branch 'master' of github.com:elastic/kibana into migrate/timelion 2016-08-29 09:09:01 -07:00
Tyler Smalley ad97552c03 Upgrade to Node 6.4.0
* Updated dependencies to include graceful-fs ~4.0
* Replaced deprecated grunt-s3 package with suggested grunt-aws-s3
* Update licenses task to better support npm 3

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2016-08-25 08:40:14 -07:00
Spencer aa20d83063 Merge pull request #8036 from spalger/fix/testDevOptimizeDir
[dev] write test:dev optimize output to its own dir
2016-08-24 10:59:19 -07:00
spalger 51ea45cd37 [dev] write test:dev optimize output to its own dir
Currently, `npm start` and `npm run test:dev` use the same webpack "working directory". This allows them to share assets, which seems great, but when webpack writes it's record-keeping files to disk it can lead to difficult to debug "Property call of undefined is not a function" errors. By writing it's optimization output to a different directory we prevent those collisions so that both the test server and the dev server can be run side-by-side
2016-08-19 17:15:06 -07:00
Jonathan Budzenski 71b3f58551
[build] Sign debs with sha512 2016-08-15 10:32:22 -05:00
Rashid Khan 91dab7402f Add license override for bytes@1.0.0 2016-08-12 15:00:20 -07:00
Jonathan Budzenski 7cf64c75a5
Bump marked 2016-07-27 08:54:33 -05:00
Tyler Smalley 47ca9b875f Merge pull request #7842 from tylersmalley/jenkins-licenses
Adds license check to jenkins:unit
2016-07-26 14:14:35 -07:00
Jonathan Budzenski 717589e1b9 Merge pull request #7571 from jbudz/publish-staging
[build] Include full version in staging package prefix, set productio…
2016-07-26 10:06:21 -05:00
Tyler Smalley 8f70184f64 Adds license check to jenkins:unit
* Adds "Public domain" to list of accepted licenses to cover version mismatch of tweetnacl.

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2016-07-25 16:59:04 -07:00
Court Ewing 2b842b0904 Remove rebuild task
This is a manual revert of 28aa6c9, which is not very useful with the
new build tasks, completely brittle, and a flawed idea from the start. I
regret having written it.
2016-07-22 16:40:06 -04:00
Jonathan Budzenski 9c37542179 [build] Include full version in staging package prefix, set production prefix separately 2016-07-21 21:27:42 -05:00
Court Ewing 694eda8fb7 Use x86_64 in build name instead of x64
For consistency with the other projects for the unified release process.
2016-07-20 10:37:01 -04:00
Jonathan Budzenski b053aad5df [tests] Rename apps option to appSuites so we don't override the intern.apps object 2016-07-19 17:08:01 -05:00
Jonathan Budzenski 5ef2a9715c [tests] Add intern functional suites option 2016-07-19 15:35:07 -05:00
Jonathan Budzenski e4b584256d [tests] Add ui test application filtering 2016-07-19 15:30:25 -05:00
Jonathan Budzenski 397d39d246 [tests] Pass grep option to grunt intern 2016-07-19 09:44:24 -05:00
Jonathan Budzenski 144a40b780 [build] Remove user before group 2016-07-07 15:40:18 -05:00
Jonathan Budzenski b54ef4ed00 [build] Ensure group kibana is added, stricter user creation 2016-07-07 14:28:51 -05:00
Nicolás Bevacqua 05f6a56f34 Merge pull request #7374 from bevacqua/feature/config-get
Added .get, renamed .getAll as .getRaw, added new .getAll method
2016-07-07 15:53:03 -03:00
Court Ewing ac4018871d Merge pull request #7495 from epixa/urp
Consistent build archives
2016-07-06 18:39:36 -04:00
Nicolás Bevacqua 7e191b82dd [fix] @spalger identified as NSA mole. Run server-side tests in src/ui directory. 2016-07-06 15:14:25 -03:00
Court Ewing c00e49dd06 internal: Cleanup code in _build:archives task
This just a code cleanup - there are no functional changes to this task.
2016-07-05 21:20:48 -04:00
Court Ewing 2f2742e11b Consistent build archives
We do not release zip archives for any operating system except windows,
and we do not release tar.gz archives for windows. For consistency and
clarity sake, we'll explicitly list the architecture (x86) of the
windows build as well.
2016-07-05 21:19:06 -04:00
Jonathan Budzenski 03866c1292 [build] update pleaserun path to be compatible with 0.0.22+ 2016-07-05 16:30:46 -05:00
Jonathan Budzenski 81efe3b734 [folder structure] src/plugins -> src/core_plugins 2016-07-05 14:06:43 -05:00
Jonathan Budzenski a30cae3316 [folder structure] plugins/.data -> data 2016-07-05 14:06:16 -05:00
Jonathan Budzenski 28f30f8b73 [folder structure] installedPlugins -> plugins 2016-07-05 14:05:59 -05:00
spalger c684004324 [ci] fix typo in jenkins:env task 2016-07-01 12:10:29 -07:00
spalger 5f61d48a1b [ci] compact the legacy jenkins sub-task list 2016-07-01 12:00:39 -07:00
spalger d54e0d5293 [ci] fix eslint task name 2016-07-01 11:57:06 -07:00
Spencer 46c1118e30 Merge pull request #7604 from spalger/implement/versionedCiScript
[ci] split unit and selenium tasks into separate jenkins scripts
2016-07-01 11:51:46 -07:00
spalger fd699cb0a3 [ci] replace original jenkins task for bwc 2016-07-01 11:38:30 -07:00
spalger 7df6040536 [ci] split unit and selenium tasks into separate jenkins scripts 2016-07-01 11:31:02 -07:00
Jonathan Budzenski f781c80358 [build] Add package log path 2016-06-30 11:12:19 -05:00
CJ Cenizal 9a242cf8f5 Merge pull request #7529 from cjcenizal/7523/visual-regression-visualize
Create visual_regression test suite.
2016-06-22 07:22:56 -07:00
CJ Cenizal 37f82f146f Create visual_regression test suite.
- Add test:visualRegression npm script.
- Split up test:visualRegression grunt task into takeScreenshots and buildGallery subtasks.
- Add intern_visual_regression.js test file.
- Rename api_itern.js -> intern_api.js for consistency.
- Refactor delayed exports logic for readability.
- Refactor common.js page object to use ES2015 Class.
2016-06-21 20:50:55 -07:00
CJ Cenizal 6d6ab4ab5e Log dependency path info in licenses grunt task.
- Now you'll see a path of the parent dependencies when a dependency fails to licenses task, so you can identify the offending root dependency.
- ES2015ify the licenses task.
2016-06-21 18:55:54 -07:00
CJ Cenizal 5caa6c0626 Merge pull request #7515 from cjcenizal/grunt/visual-regression-subtask
Move visualRegression subtask from npm scripts to grunt task.
2016-06-21 12:03:24 -07:00
CJ Cenizal ca9b085ef0 Remove test:visualRegression from test npm script.
- Add it to end of test grunt task.
2016-06-21 11:23:40 -07:00
Jonathan Budzenski 62f258b83c Merge pull request #7457 from jbudz/issues/7157
[build] Add data directory for plugins
2016-06-21 07:45:25 -05:00
Matt Bargar 15a4fa1cdd Merge pull request #7372 from elastic/feature/ingest
Add Data - CSV
2016-06-17 16:23:46 -04:00
Lee Drengenberg e2ff6bb7a5 Merge pull request #7442 from LeeDr/runTestsOnChrome
Re-implement most of PR #7024 switch to Chrome browser
2016-06-17 15:06:40 -05:00
Court Ewing 1e2c953f16 Release task now always publishes to staging
Production builds should never be published directly from a local
machine. Instead, the release command will now publish to a
commit-specific staging URL, so you use it to publish a release
candidate, and then when those builds have been verified, you need to
copy the RC builds from on the staging location on s3 to the production
folder.
2016-06-17 14:26:08 -04:00
Court Ewing c550bbcc95 Build artifact names for unified release process
These changes are necessary for Kibana to be compatible with Elastic's
unified release process from 5.0 onward. The way artifacts get created
has not changed, but the naming conventions have.
2016-06-16 16:47:02 -04:00
LeeDr ae56c13583 merge master 2016-06-16 13:54:01 -05:00
Matthew Bargar b853d89139 Merge branch 'master' into feature/ingest 2016-06-16 14:23:12 -04:00
Matthew Bargar 0065fbaa9b Merge branch 'master' into feature/ingest
Resolved conflicts, still need to move around some add data files.
2016-06-16 12:57:29 -04:00
Jonathan Budzenski 5b19534314 [build] Add data directory that plugins can write to. Closes #7157 2016-06-16 10:14:27 -05:00
Court Ewing f6196cf662 Target directory created from config value
The target directory was being created based on a hardcoded string
rather from the target directory configuration value.
2016-06-16 10:36:06 -04:00
Court Ewing 3d546336b1 Build task for creating os packages creates target
The target directory is created by the archives task, but it is not
created by the ospackages task, so if you do not have a target
directory and try to skip archives, the build will fail.
2016-06-16 10:18:40 -04:00
Court Ewing 6b98215833 Merge pull request #7477 from epixa/SNAPSHOT
Uppercase -SNAPSHOT on snapshot builds
2016-06-16 08:02:15 -04:00
Court Ewing 7eaa1915f4 Uppercase -SNAPSHOT on snapshot builds
This is consistent with other Elastic projects.
2016-06-15 18:33:04 -04:00
LeeDr bfcb875c77 Merge master 2016-06-15 11:29:23 -05:00
Jonathan Budzenski b32949dfcd Merge pull request #7387 from jbudz/issues/6728
[packages] Set publish prefix kibana/major_version.x
2016-06-15 09:56:00 -05:00
Jonathan Budzenski 314e095441 Merge pull request #7422 from jbudz/package-dirs
[build] Cleanup dirs on uninstall
2016-06-15 09:24:02 -05:00
Jonathan Budzenski bd3cca9efa Merge pull request #7431 from jbudz/issues/7430
[build] Set init description to kibana
2016-06-15 09:22:32 -05:00
Jonathan Budzenski 83681d980d [build] Include babelcache so it can be chowned to kibana user 2016-06-15 07:44:12 -05:00
Jonathan Budzenski 29e26de7e2 [build] Cleanup dirs on uninstall 2016-06-14 15:46:31 -05:00
Court Ewing dbfee59b66 Merge pull request #7317 from epixa/newbuild
Apply -snapshot suffix during build task
2016-06-14 16:25:39 -04:00
CJ Cenizal 9e353fd451 Add visual regression screenshot gallery.
- Add 'test:visualRegression' grunt task.
- Run 'test:visualRegression' as part of npm script 'test'.
- Add 'clean:screenshots task'.
- Clean screenshots/session when funtional tests are run.
2016-06-14 08:33:45 -07:00
LeeDr 01255ee4d4 Re-implement most of PR #7024 switch to Chrome browser 2016-06-13 16:03:40 -05:00
Jonathan Budzenski 41004fda0f [docs] Update package version 2016-06-13 11:29:06 -05:00
Jonathan Budzenski 9d809f3aea [packages] Set publish prefix kibana/major_version.x 2016-06-13 08:53:55 -05:00
Court Ewing 834f56392e Apply -snapshot suffix during build task
The default behavior of the build task is to now apply the -snapshot
suffix dynamically rather than us manually hardcoding and managing it
within the source code itself. The `--release` flag will drop the
-snapshot suffix on a build, which should be used for any release
candidate.

The default behavior of the build task has also changed to create
rpm/deb packages as well. Since we've only confirmed that this works on
linux, you can override that behavior by passing `skip-os-packages`.

If you do not want to create any zip or tar.gz archives, you can pass
`--skip-archives`.
2016-06-11 15:57:30 -04:00
Matthew Bargar a0915145dd Merge branch 'master' into feature/ingest 2016-06-10 16:27:42 -04:00
Jonathan Budzenski b956a0b938 [build] Set init description to kibana. Closes #7430 2016-06-10 14:53:48 -05:00
Jonathan Budzenski e1cb593ee6 [build] Add name and description to init scripts 2016-06-07 14:48:57 -05:00
Jonathan Budzenski 9213e61608 [build] template chown optimize dir 2016-05-27 10:34:47 -05:00
Jonathan Budzenski 6189c19de8 [build] Style cleanup 2016-05-27 10:34:47 -05:00
Jonathan Budzenski db5ac1e72f [build] Cleanup packages task 2016-05-27 10:34:47 -05:00
Jonathan Budzenski 8f0be48768 [build] consolidate package config 2016-05-27 10:34:47 -05:00
Jonathan Budzenski 6d293afbfb [build] move install to /usr/share, config to /etc/kibana 2016-05-27 10:34:47 -05:00
Jonathan Budzenski 4336f2bc8d [build] Add comment in postrm explaining empty cases 2016-05-27 10:34:25 -05:00
Jonathan Budzenski bab73b8971 [build] Cleanup postrm 2016-05-27 10:34:25 -05:00
Jonathan Budzenski f9033a1c6e [build] Fail on errors 2016-05-27 10:34:25 -05:00
Jonathan Budzenski 6c6e4d31ff [build] Attempt to stop service pre-install 2016-05-27 10:34:25 -05:00
Jonathan Budzenski 83c580298f [build] Try service kibana stop before init script 2016-05-27 10:34:25 -05:00
Jonathan Budzenski 07618c3964 [build] Recursive chown optimize folder 2016-05-27 10:34:25 -05:00
Jonathan Budzenski d9a84b2f03 [build] Run as group kibana 2016-05-27 10:34:25 -05:00
Jonathan Budzenski 53871671e2 [build] template user in install/remove scripts 2016-05-27 10:34:25 -05:00
Jonathan Budzenski 08c9897986 [build] Commit install/remove scripts instead of generating, stop service before removing 2016-05-27 10:34:25 -05:00
Matthew Bargar 02f24b176b Merge branch 'master' into feature/ingest 2016-05-24 17:22:14 -04:00
Jonathan Budzenski 032de94fe2 [build] Check for release files after build task 2016-05-19 13:17:05 -05:00
Jonathan Budzenski d0c835d172 [build] Release packages to s3 2016-05-19 10:27:48 -05:00
Court Ewing 173a217a9d Merge pull request #6676 from jbudz/build-packages
[grunt] Publish packages
2016-05-19 11:10:13 -04:00
Court Ewing 28aa6c9b9c [grunt] Task to rebuild archives with new version
This is useful for when a pre-release build is completely tested and
could be released as-is if it weren't for the pre-release suffix and
commit hash. It will extract the archives in the target, replace the
version, sha, and build numbers with the current working copy's, and
then recreate the archives and shas.
2016-05-17 15:30:25 -04:00
Matthew Bargar 05b198a819 Merge branch 'feature/ingest' into ingest/bulkAPI 2016-05-10 18:27:51 -04:00
Lee Drengenberg b19cb6dbb3 Merge pull request #7141 from LeeDr/fix-build-windows-cygwin
Re-applied PR 6267 to master to fix Windows/cygwin build
Credit for this work goes to @repocho.  Thanks for getting Windows builds working!
2016-05-05 11:08:01 -05:00
LeeDr 203c7adadc Re-applied PR 6267 to master to fix Windows/cygwin build 2016-05-05 10:35:07 -05:00
Rashid Khan fb8b2a45cc Merge branch 'master' of github.com:elastic/kibana into fix/licenses 2016-05-02 09:56:05 -07:00
Rashid Khan 412b711a19 Add the license check back 2016-05-02 09:55:55 -07:00
Matthew Bargar 81d48659cc [API] Add Highland's nil to mocha's list of globals 2016-04-29 16:47:29 -04:00
Tyler Smalley 5ae32d1930 Revert "Limit memory overhead" 2016-04-28 15:13:41 -07:00
Spencer b5e61dcbef Merge pull request #7026 from spalger/fix/collectFilesToCommit
[grunt/collectFilesToCommit] fix the broken "pathsToIgnore" filter
2016-04-28 13:06:57 -05:00
Jonathan Budzenski f3cd91a0d0 [build] Keep process env variables, re-add done 2016-04-27 17:23:13 -05:00
Tyler Smalley 0865c55e7d Limits memory usage
V8 will not trigger a full mark-sweep & mark-compact until there is memory pressure for the max-old-space-size, which is 1.6GB on a 64bit system. This means that Kibana will, at times, consume over 1.6GB of RSS memory.

Bypassing this can be done by starting with `--dev` or explicitally setting `max-old-space-size`. For example: `NODE_OPTIONS="--max-old-space-size=1024" ./bin/kibana`

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2016-04-26 13:44:42 -07:00
Jonathan Budzenski 86269bca6d [build] Pass env variables to rpm-s3 2016-04-22 15:12:29 -05:00
Jonathan Budzenski 51e8633a4d [build] Move signing config to a file 2016-04-22 15:02:53 -05:00
spalger 45087dad0f [grunt/collectFilesToCommit] fix the broken "pathsToIgnore" filter
In 180aacd470 a "pathsToIngore" filter was introduced that didn't work properly and caused all paths to be ignored. This behavior was likely intended to prevent snake_case filename checking on files in the webpackShims directory but that is being properly handled by [check_added_filename](8f9ec7d932/tasks/check_added_filenames.js (L11)).
2016-04-22 10:39:34 -05:00
LeeDr 4002140a9c Add selenium-server-standalone jar md5. 2016-04-06 08:46:17 -05:00
LeeDr 431fe52cec Update downloadSelenium to match version in intern.js. 2016-04-06 07:36:06 -05:00
Spencer 3ec3006d38 Merge branch 'master' into feature/console 2016-03-31 12:53:48 -07:00
Court Ewing cc15b53937 Merge pull request #6692 from epixa/reject-rej-files
[internal] Reject CI builds if any .rej files exist
2016-03-29 15:54:39 -04:00
Court Ewing 55e429cc4f [internal] Reject CI builds if any .rej files exist
.rej are the byproduct of failed patches via git-apply or artifacts of
the backporting process through jasper. Any build that has them should
be rejected early.
2016-03-29 13:24:32 -04:00
Jonathan Budzenski da942d2f62 [build] Rename publish to publishPackages 2016-03-29 09:32:18 -05:00
spalger 7859b81bf4 Merge branch 'master' of github.com:elastic/kibana into feature/console 2016-03-28 14:42:46 -07:00
spalger 1b2dd7da2f [esvm] 127.0.0.1 is the default anyway, avoid min_master_nodes warning 2016-03-28 12:21:52 -07:00
Jonathan Budzenski cde84ecb9a [build] Add tasks for publishing rpm, deb packages 2016-03-28 11:34:31 -05:00
Jonathan Budzenski 6041ff8852 [build] Add rpm, deb name and path 2016-03-28 11:09:13 -05:00
Jonathan Budzenski 5b3e178976 [build] Set group kibana 2016-03-28 11:09:13 -05:00
Jonathan Budzenski b0dd6706d5 [build] Build i386 2016-03-28 11:09:13 -05:00
Jonathan Budzenski ac2ae334fc [build] sha1 packages 2016-03-28 11:09:13 -05:00
Rashid Khan 8bc49597f4 Remove growl dependency 2016-03-23 16:25:07 -07:00
spalger 1728cf84a1 Merge remote-tracking branch 'sense/master' into feature/console 2016-03-23 14:19:43 -07:00
spalger 8c4585a72e Merge branch 'master' of github.com:elastic/kibana into feature/console 2016-03-23 14:12:44 -07:00
Tyler Smalley 32cad000a0 Merge remote-tracking branch 'upstream/master' into feature/design 2016-03-21 18:31:58 -07:00
spalger f53b8c1a27 [java][jenkins] ensure that JDK8 is in PATH 2016-03-21 14:42:58 -07:00
spalger f383827890 [selenium] propertly share download info 2016-03-21 14:36:57 -07:00
Shelby Sturgis aae8583455 Merge branch 'master' into feature/design 2016-03-18 12:48:55 -07:00
Nicolas Bevacqua 849a499771 [hotfix/build] Fix a bug where removing a directory failed under Linux systems 2016-03-18 13:55:00 -03:00
Nicolas Bevacqua 79739ab5ce Ignore OS-specific files in other operating systems. Fixes #4460 2016-03-17 21:05:15 -03:00
spalger 3c0d12a50d Merge branch 'master' of github.com:elastic/kibana into feature/designMergeSnakeCase 2016-03-16 10:08:53 -07:00
spalger d77de4e1ca Merge branch 'master' of github.com:elastic/kibana into renameAllFiles 2016-03-15 00:35:01 -04:00
Nicolás Bevacqua dc87fe1884 Merge pull request #6526 from bevacqua/cleanup/elasticsearch-url-softcoded
Consolidate elasticsearch URL in configuration file. Fixes #5555
2016-03-14 16:44:37 -03:00
Nicolas Bevacqua ec037de9be [test] Consolidate elasticsearch URL in configuration file. Fixes #5555 2016-03-14 14:06:25 -03:00
spalger 398239840d [grunt/esvm] remove marvel config now that it is actually being applied 2016-03-13 14:28:29 -07:00
spalger caf7331a48 [filenames] allow rule-breaking in docs, tasks/config, and webpackShims 2016-03-11 16:42:19 -07:00
spalger cd11af7367 add travis config 2016-03-10 23:13:02 -07:00
spalger 7dda3709ca Merge branch 'renameAllFiles' into feature/design 2016-03-10 12:51:39 -07:00
spalger 0574f59d24 [grunt] require opt-into different task name 2016-03-10 11:40:21 -07:00
Tyler Smalley 9502adedc1 Merge remote-tracking branch 'origin/master' into feature/design 2016-03-09 10:08:35 -08:00
spalger 0403a7bc74 [npm] explicitly depend on real deps 2016-03-08 16:33:53 -07:00
spalger 5ea26743fa [console] involve in the build process 2016-03-07 16:09:41 -07:00
spalger 36cdae8281 [plugins] change plugin ids to be snakecase 2016-02-26 13:40:32 -07:00
spalger 42f936e633 [npm] remove requirefrom package 2016-02-24 14:50:12 -08:00
spalger af9ebba958 [rename] hunt down remaining non-snake path refs 2016-02-24 14:18:21 -08:00
spalger c1c8607f27 [rename] process previously dynamic imports 2016-02-24 13:36:12 -08:00
spalger 07b32d715f Merge branch 'chore/removeRequireFrom' into renameAllFiles 2016-02-24 13:33:57 -08:00
spalger 506c9939b9 [npm] remove requirefrom package 2016-02-24 13:30:02 -08:00
spalger ba19a81dd2 testUtils -> test_utils 2016-02-24 13:00:46 -08:00
spalger d3c8003430 Merge branch 'master' of github.com:elastic/kibana into renameAllFiles 2016-02-24 12:15:46 -08:00
spalger 2422a988e5 [rename] rename all files to snake_case 2016-02-24 12:14:05 -08:00
Rashid Khan c9e0c5fc65 Merge branch 'master' into tweak/smallspy 2016-02-13 15:38:23 -07:00
spalger 508d94540e [grunt/run] be more lenient with flag prefix parsing 2016-02-12 16:01:46 -07:00
Spencer d5732720cf Merge pull request #6227 from spalger/implement/kbnServerArgsGruntRun
support arbitrary config for kbnServer in grunt-run
2016-02-12 15:20:50 -07:00
spalger d664a772c7 Merge branch 'master' of github.com:elastic/kibana into implement/uiTestsForPlugins 2016-02-12 15:16:21 -07:00
spalger 00204a3df2 [npm/clean] rename to sterilize 2016-02-12 12:56:50 -07:00
spalger 4e9e30c7d3 Merge branch 'master' of github.com:elastic/kibana into implement/npmCleanTask 2016-02-12 12:53:04 -07:00
spalger 2722f42d30 [grunt/run] support passing arbitrary commands to underlying kibana started via grunt-run 2016-02-12 09:37:37 -07:00
Khalah Jones-Golden 180aacd470 Merge remote-tracking branch 'upstream/feature/design' into fix/nav-details 2016-02-10 19:06:26 -04:00
spalger 636bc7d9ce Merge branch 'master' of github.com:elastic/kibana into implement/npmCleanTask 2016-02-08 15:20:48 -07:00
spalger 10e97a4d75 Merge branch 'fix/failTestOnBadBulk' into upgrade/elasticsearch/master 2016-02-08 14:05:52 -07:00
Jonathan Budzenski 93b891b5de Merge pull request #6133 from jbudz/issues/6117
[packages] Set metadata
2016-02-08 10:49:34 -06:00
Jonathan Budzenski d64ca9c35b [packages] Add www to metadata url 2016-02-08 09:17:59 -06:00
spalger 6ee704772d [java] use jdk8 on jenkins 2016-02-05 17:31:32 -07:00
Jonathan Budzenski f59443316e [packages] Set deb-priority to optional 2016-02-05 12:32:16 -06:00
spalger da5acc499b [es] upgrade to master 2016-02-05 10:22:26 -07:00
Jonathan Budzenski ad2f9b4ba6 Merge pull request #6114 from jbudz/snapshots
[build] Set os-packages flag on jenkins
2016-02-04 15:03:52 -06:00
Jonathan Budzenski 41d3333316 [packages] Add url, maintainer, vendor, license metadata 2016-02-04 13:39:04 -06:00
Jonathan Budzenski a2b99c44f3 [packaging] Escape spaces instead of quoting description 2016-02-04 09:30:56 -06:00
Jonathan Budzenski cca8c1a919 [build] Set os-packages flag on jenkins 2016-02-03 20:42:59 -06:00
Jonathan Budzenski 34b9a7379a [packaging] Add description 2016-02-03 19:20:17 -06:00
Spencer c54b9ca6b7 Merge pull request #5891 from spalger/implement/mochaSetup
formalize mocha setup
2016-02-01 15:31:42 -07:00
Spencer 94a10efaa3 Merge pull request #5951 from jbudz/issues/5799
[build] Create os packages on jenkins
2016-02-01 15:30:20 -07:00
spalger 758c59710d [eslint] avoid https://github.com/babel/babel-eslint/issues/245 2016-02-01 13:16:59 -07:00
spalger 1b85822e26 [cli/serve] allow disabling the base path proxy if needed 2016-01-21 16:52:25 -07:00
Jonathan Budzenski 4f827c83fa [build] Only build on core 2016-01-20 12:21:35 -06:00
Jonathan Budzenski 24749258db [build] Create os packages on jenkins 2016-01-20 12:04:50 -06:00
Spencer 006333fd99 Merge pull request #5671 from spalger/implement/esvmConfigForShield
Implement esvm config for shield
2016-01-15 17:54:29 -07:00
Spencer 9537d680dc [esvm] rename config name 2016-01-15 17:53:44 -07:00
spalger 7773625690 [simplemocha] always perform mocha setup if grunt task is loaded 2016-01-14 10:32:28 -07:00
spalger 7b15ee05d1 [mochaSetup] added notes to explain the purpose for the workarounds in place 2016-01-13 16:50:55 -07:00
spalger c87aec3dae [mocha] move setup work into module
with https://github.com/elastic/kibana/pull/5553 we added command line flags the told mocha it was supposed to use babel. This changes the strategy here and instead uses mocha's -r option (and it's mocha.opts file to specify it). This means that using mocha directly from the command line still works, and that we have a place where we can do other setup work.
2016-01-12 16:26:42 -07:00
Rashid Khan 1043884a48 Merge pull request #5213 from Bargs/indexPatternApi
Create an Ingest API
2016-01-11 14:26:30 -07:00
spalger 247ad41583 [npm] added "clean" script
"npm run clean" will now find all excess files, confirm they should be deleted, and then delete them. To exclude a file pass it as the --ignore argument
2016-01-11 03:04:12 -07:00
Matthew Bargar a5178be0a7 avoid repetition 2016-01-07 17:25:33 -05:00
Matthew Bargar b4ef144ae0 Created more robust defaults and removed support for overriding them 2016-01-06 12:40:37 -05:00
Matthew Bargar fe296b4b36 First pass at adding support for fields that are part of an object 2016-01-05 16:45:08 -05:00
spalger 102f6bf0a4 Merge branch 'master' of github.com:elastic/kibana into implement/esvmConfigForShield 2016-01-05 13:18:09 -07:00
Jonathan Budzenski 64a0375f56 [build] Update node download path for Windows 2016-01-05 12:51:56 -06:00
Rashid Khan 99b7db7106 Merge pull request #5778 from jbudz/packages
Build package fixes
2015-12-29 16:15:10 -07:00
Jonathan Budzenski 4bbee0a88b [packages] Add args for deb and rpm, remove pkg 2015-12-29 15:35:19 -06:00
Jonathan Budzenski 04f886e852 [packges] Remove osx package 2015-12-29 14:25:58 -06:00
Matthew Bargar 83bbcb6c14 Convert index-pattern keys to snakeCase before sending to ES for the sake of backwards compatibility 2015-12-29 13:37:50 -05:00
Matthew Bargar c5565d72c6 Give API tests their own intern config
Adding a 'suites' property to the existing intern configuration caused
an error to be thrown at the beginning of the functional test run. Even
if the value of 'suites' was just an empty array. The existence of the
property seemed to enabled execution of the config file in the selenium
browser because it complained about not having the node require
function. To fix this, I created a separate api test config file without
the node require and removed the 'suites' property from intern.js.
2015-12-29 13:37:50 -05:00
Matthew Bargar 07e3a33b55 disable xsrf protection when running api tests 2015-12-29 13:37:50 -05:00
Matthew Bargar e6100c2f4e First API test 2015-12-29 13:37:50 -05:00
Court Ewing 300b1e6404 Use grunt root path when collecting git files
No reason to reinvent the wheel here. We already determine the root path
of the project in our grunt config, so we just use that instead.
2015-12-29 10:46:22 -05:00
Court Ewing 86d958ae97 Consolidate git file logic in lintStagedFiles task
We limit the amount of moving parts when it comes to parsing our staged
files in git by reusing the files_to_commit utility rather than the
now-defunct collectStagedFiles task.
2015-12-28 17:31:36 -05:00
Court Ewing acded081fa Check that all new files are snake cased
We removed the snake case check during precommit because it was
interfering with us getting features merged when dealing with legacy
files, but we do want to verify that any new files added have snake
cased names.
2015-12-28 16:53:39 -05:00
Jonathan Budzenski ed25f879ae Remove snake case check 2015-12-28 15:03:07 -06:00
Jonathan Budzenski 9a19b978ba [packages] Copy files when making os packages 2015-12-28 11:51:45 -06:00
Jonathan Budzenski 3b992d66c5 [packages] Change optimize folder owner to kibana after install 2015-12-28 11:51:08 -06:00
stdweird 8aac131aee pleaserun: use the userScriptsDir grunt config variable (as defined/used in osPackages)
Fixes #5322
2015-12-28 17:28:25 +00:00
stdweird eb919f77a8 osPackage: let fpm handle systemd units
Fixes #5322
2015-12-28 17:28:25 +00:00
LeeDr ab7fc81f90 Manually revert the test task change.
Fixes #5750
2015-12-22 16:45:06 +00:00
LeeDr b5897c2c3a Revert "Revert "Rename test:ui to test:browser so will run on Jenkins.""
This reverts commit b7935865dc.

Fixes #5750
2015-12-22 16:45:06 +00:00
LeeDr 0a67efb52b Revert "Rename test:ui to test:browser so will run on Jenkins."
This reverts commit 5d9d695268.

Fixes #5750
2015-12-22 16:45:06 +00:00
LeeDr 4f5b641580 Rename test:ui to test:browser so will run on Jenkins.
Fixes #5750
2015-12-22 16:45:06 +00:00
LeeDr 2a8c79d350 Bump Selenium version from 2.47.1 to 2.48.2 to work with latest Firefox 43. Add more debug logging around get url.
Fixes #5750
2015-12-22 16:45:05 +00:00
spalger 88bb904dd5 check for use of kebab-case as well
Fixes #5597
2015-12-14 19:58:43 +00:00
spalger 45478a3d5f [esvm] added admin role with full access to es 2015-12-14 11:56:01 -07:00
spalger 8e9cb6927c [esvm] add config to start es with shield 2015-12-14 11:10:56 -07:00
Court Ewing ea23878435 More conservative glob against dep tests
When creating builds, we were using a glob that was too liberal in its
matching to identify and clean test files in our dependencies in order
to shave some bytes off of our final build. We now only remove files or
directories that outright match either "test" or "tests" rather than any
file or directory that even includes the word "test" in it.

Fixes #5636
2015-12-10 19:05:36 +00:00
Spencer e73212fcd3 Merge pull request #5477 from spalger/implement/snake_case_check
[grunt/precommit] added check for snake_case filenames
2015-12-07 13:47:55 -07:00
Chris Cowan 447adb7218 Removing travis from the project 2015-12-07 12:50:12 -07:00
spalger 29308a8b2a [grunt] actually fail 2015-12-07 08:58:08 -07:00
LeeDr e6f713ae59 Don't run functional UI tests on Travis (add eslint:source).
Fixes #5569
2015-12-04 20:00:12 +00:00
LeeDr fe02d66835 Don't run functional UI tests on Travis (add eslint:source).
Fixes #5569
2015-12-04 20:00:12 +00:00
LeeDr 394c82ce2a Don't run functional UI tests on Travis, the resources are insufficient.
Fixes #5569
2015-12-04 20:00:12 +00:00
Court Ewing 38d5fc5051 Isolate esvm clusters by purpose
Attempting to run multiple elasticsearch clusters on the same host
without specifying different cluster names actually triggers the
discovery behaviors of elasticsearch, which adds the second es process
as another node of the original cluster. This means that despite running
on different ports, our test setups of elasticsearch actually attempt to
modify the main dev setup.

Fixes #5529
2015-12-02 21:20:56 +00:00
Court Ewing af6175e81a Run server tests on port 9210
The UI tests were already running against a non-default port (ie 9200),
so there is already precedent for this.

Fixes #5529
2015-12-02 21:20:55 +00:00
spalger ecb773b120 [grunt/precommit] added check for snake_case filenames 2015-11-23 14:16:54 -06:00
Joe Fleming e7fdbd11ae Merge branch 'master' into test-rebuild
Conflicts:
	tasks/config/run.js
2015-11-11 11:48:47 -07:00
Joe Fleming 1431d28852 Merge pull request #5292 from w33ble/functional-tests-settings
Initial Kibana functional UI tests - settings app
2015-11-10 15:41:30 -07:00
Joe Fleming beec996a2d make testUIServer run in dev env
force optimize step to run every time
2015-11-10 13:52:07 -07:00
spalger 5a72e17299 Merge branch 'preventHomeDirAccess' 2015-11-06 16:56:12 -06:00
Court Ewing d5025bb853 Include node engine version in build manifests 2015-11-06 12:02:22 -05:00
Joe Fleming 2d04ec4afa change serverConfig servers path 2015-11-04 16:08:00 -07:00
spalger ed99db7ada [build] babel requires the directory containing the cache exist 2015-11-04 11:10:39 -06:00
Court Ewing 73804e6647 Elasticsearch 2.1 branch for esvm
Kibana 4.3 should be developed against the 2.1 branch of elasticsearch.
2015-11-03 13:01:05 -05:00
spalger 9bfa6ef3e2 add text replacement for git info 2015-10-27 17:27:52 -05:00
spalger 6e84678d3f added linting 2015-10-26 22:53:05 -05:00
spalger f864dd0aa8 [npm] added release task 2015-10-26 16:28:17 -05:00
Jonathan Budzenski 8af41458ae [functional testing] Centralize server configs 2015-10-26 13:11:28 -05:00
Jonathan Budzenski 90969d9308 [functional testing] Add url configs and util to get pages 2015-10-21 14:26:42 -05:00
Jonathan Budzenski db8f7cdf22 [functional testing] Load scenarios 2015-10-14 15:33:25 -05:00
Jonathan Budzenski d6aed640a2 Merge branch 'master' into functional-testing 2015-10-13 08:59:34 -05:00
Jonathan Budzenski f74eafe5f7 Merge pull request #5025 from w33ble/farewell-zeroclipboard-and-thanks-for-all-the-fish
Remove ng-clip and zeroclipboard
2015-09-23 15:58:51 -05:00
Tim Sullivan 145464138f Merge pull request #5017 from spalger/chore/eslintMocha
[eslint] update and add mocha plugin
2015-09-23 13:43:25 -07:00
Joe Fleming d75bd51171 purge kibana of ng-clip and zeroclipboard 2015-09-23 13:24:26 -07:00
spalger 292a490730 [grunt/eslint] correct comment 2015-09-23 13:15:21 -07:00
Jim Unger ae0f624b2d [unit tests] Fixes generated paths to support windows 2015-09-23 14:50:32 -05:00
spalger 3510336077 [npm] added lint and lintroller scripts 2015-09-22 18:58:14 -07:00
Matt Bargar 67e7c5f578 Merge pull request #4982 from spalger/dev/ensureEsOn9200
[esvm] when starting es, ensure it runs on 9200 or fails
2015-09-21 11:09:09 -04:00
spalger 86454764af [esvm] when starting es, ensure it runs on 9200 or fails 2015-09-18 16:12:56 -07:00
Jonathan Budzenski 611ebf9381 Merge pull request #4978 from spalger/fix/testOutputOnCi
[tests] log with dots on travis/jenkins
2015-09-18 14:57:12 -05:00
spalger aa42cf786d [tests] log with dots on travis/jenkins 2015-09-18 11:58:12 -07:00
Court Ewing e2dd40e965 Remove package.json dependencies during build
The kibana app itself requires that package.json exist, so removing it
entirely from distributions is a no go. Instead, we remove only the
dependencies themselves from the package.json so people do not try to
reinstall dependencies on an official distribution.
2015-09-18 14:23:24 -04:00
Jonathan Budzenski bb85a6c244 Merge branch 'master' into functional-testing 2015-09-18 09:09:14 -05:00
Boaz Leskes bf59783a4b remove some unused files 2015-09-18 13:12:38 +02:00
Spencer 1bcd867f49 Merge pull request #4916 from Bargs/esvmForAllTests
Use esvm to start and stop elasticsearch for all tests that need it
2015-09-17 15:40:39 -07:00
Court Ewing 8161788eac Remove npm shrinkwrap tasks
We're not maintaining the shrinkwrap as part of the repo, and it doesn't
add any value when being generated automatically as part of our build
process. In its current form, it actually makes it so we cannot
successfully create new builds without manually setting up a local
shrinkwrap first.
2015-09-17 17:57:46 -04:00
Court Ewing 690d204b28 Create shrinkwrap from build
The npm shrinkwrap that we generate during build in order to package
with distributions is now properly created based on the built
dependencies rather than the local dev install.
2015-09-17 16:28:27 -04:00
Jonathan Budzenski 15f6275bd3 [functional testing] Always check selenium hash 2015-09-17 11:56:36 -05:00
Jonathan Budzenski f611c44af4 [functional testing] Cleanup before going to next task 2015-09-17 11:23:32 -05:00
Jonathan Budzenski ca81d4b777 [functional testing] Use grunt-run with selenium 2015-09-15 16:26:04 -05:00
Rashid Khan b7e667df76 Revert npm3, go back to npm2 2015-09-14 13:39:17 -07:00
Jonathan Budzenski a47725ab91 [functional testing] Use wreck 2015-09-14 14:09:50 -05:00
Jonathan Budzenski 5ae159d6b7 [functional testing] Use sync methods 2015-09-14 10:18:31 -05:00
Jonathan Budzenski 6d44d2e9ef [functional testing] Move task defaults to configs 2015-09-14 09:17:41 -05:00
Jonathan Budzenski a77b962834 Merge branch 'master' into functional-testing 2015-09-11 16:22:18 -05:00
Jonathan Budzenski 49c856712c [functional testing] Add dev mode 2015-09-11 14:08:35 -05:00
Matt Bargar f9f0a9f163 give the test config its own esvm directory that it can purge as much as it likes 2015-09-10 19:44:56 -04:00
Matt Bargar 03e109f753 Use esvm to start and stop elasticsearch for all tests that need it 2015-09-10 14:57:54 -04:00
Jonathan Budzenski d6c9019be5 [functional testing] Cleanup, run from npm test 2015-09-09 14:57:51 -05:00
Jonathan Budzenski 32d199efce [functional testing] Add fixture 2015-09-08 13:26:19 -05:00
spalger 8aa0287dd7 [build] expose build specific babel config
During build we transpile the server source to prevent runtime transpilation with babel/register. In order to support untranspiled plugin code, we still use babel/register with special ignore options, which used to be included in cli/index.js and now is moved to src/optimize/babelOptions.js so other code that wants to initialize a server (without the cli) can also configure babel/register.
2015-09-07 17:22:42 -07:00
spalger 0f4fe22252 [build/shrinkwrap] apparently it is loglevel 2015-09-07 17:03:04 -07:00
Jonathan Budzenski 71dd15ca22 [functional testing] Load webdriver 2015-09-04 14:11:28 -05:00
spalger 3672ac5ebf [esvm] test against es 2.0 2015-09-03 16:28:31 -07:00
Jonathan Budzenski 83a582cdbe [functional testing] Load fixtures 2015-09-03 13:39:26 -05:00
Jonathan Budzenski 76d60aec9e [functional testing] Start new instance of kibana 2015-09-02 14:56:07 -05:00
Jonathan Budzenski 0d53f5ee13 [functional testing] Start new instance of es 2015-09-02 14:55:41 -05:00
Jonathan Budzenski 7b8374b7c8 Add intern task to grunt and associated npm script 2015-09-02 14:07:20 -05:00
Joe Fleming 4463355c8f Merge pull request #4815 from spalger/node/downgradeTo012
[node] downgrade to 0.12.7
2015-09-01 14:49:22 -07:00
spalger af2c09edbb [build] prevent massive warnings in build
Since npm is creating a shrinkwrap file that ignores devDeps it logs a huge number of warnings, and since these warnings are logged to stderr they are not hidden by exec.silent(). This changes the logLevel to "error" for these commands and removes the `.silent()` call so that it is clear what is happening
2015-09-01 09:06:28 -07:00
spalger 708f1f1a25 [node] downgrade to 0.12.7
While working to reintroduce shrinkwrap into our workflow it became
apparent that we needed to be using npm3 but unfortunately node-gyp
is not compatible with iojs, and the iojs distros actually contain a
patched version. This means that you can only use iojs with the npm
it ships with.

When trying to find a solution for this issue, we contemplated not
using npm3, but that would mean that we can't use npm-shrinkwrap and
decided that since we are using babel anyway that switching back to
node was the best option.

The only code that must be updated to work in the new node 0.12 env
is lodash templates that use the template string syntax inside their
source (Since 0.12 does not support template strings).
2015-08-31 21:58:46 -07:00
spalger fa35652bd8 [babel] configure babel to use native generators in node 2015-08-27 19:06:50 -07:00
Joe Fleming 3b18afee8f use exec.silent so npm errors are not swallowed 2015-08-27 09:32:51 -07:00
Joe Fleming 62df5a19c6 proper shrinkwrap in build and release
build will create it if it's missing, copy it to the build and also create a version without dev deps
release requires it and fatals if it doesn't exist

Conflicts:
	tasks/build/index.js
2015-08-26 18:41:37 -07:00
Joe Fleming 8918f26e21 clearer task naming 2015-08-26 18:41:03 -07:00
spalger 694ab70cbe Merge branch 'master' of github.com:elastic/kibana into implement/npm3 2015-08-26 17:12:19 -07:00
spalger af3387442d [build] ☝️ include webpackShims in build 2015-08-26 17:05:54 -07:00
spalger faa1011bbd upgrade to npm 3.0 2015-08-26 16:36:19 -07:00
Jim Unger 85e3579105 Merge pull request #4742 from w33ble/test-coverage
Return of the test coverage
2015-08-26 11:51:02 -05:00
Joe Fleming a395853f34 fix test server command for windows machines 2015-08-26 09:39:01 -07:00
Spencer 2f780507bf Merge pull request #4665 from spalger/chore/packageJsonUpkeep
[package.json] clear out old packages and move dev packages into place
2015-08-25 08:58:20 -07:00
Joe Fleming 2e3ba07774 generate the test coverage 2015-08-24 17:10:21 -07:00
Spencer 6525554a3d Merge pull request #4706 from spalger/implement/testingDocsAndHelpers
Testing docs and helpers
2015-08-19 13:14:24 -07:00
spalger 349ba49b95 [grunt/test] just use test:quick rather than relisting it 2015-08-19 13:13:16 -07:00
spalger 4fdb7c7853 Merge branch 'master' of github.com:elastic/kibana into chore/packageJsonUpkeep 2015-08-19 11:13:40 -07:00
spalger 1fa3210cba [build] hotfix for #4713 2015-08-18 23:39:15 -07:00
spalger a27d7ba314 [build] remove the "bin" files for deep modules 2015-08-18 23:17:53 -07:00
spalger 8b37a1fc23 [jenkins] build snapshots as the final task of core jobs 2015-08-18 19:26:15 -07:00
spalger e5390a66f0 [karma] move config into grunt task for client.mocha support 2015-08-18 15:36:00 -07:00
spalger 94b1de68a3 [grunt] broke test task into chunks, linked from package.json 2015-08-18 14:51:31 -07:00
spalger 38ff67b019 [grunt test] always start a new server for the tests, added test:dev task 2015-08-18 13:32:44 -07:00
spalger e39a47e9bf [optimize] remove optimize.tests config, rely on optimize.bundleFilter instead 2015-08-18 13:30:45 -07:00
spalger 3d2812c13d [build] ship with the 32bit version of node on windows 2015-08-17 11:50:42 -07:00
spalger 1d40ed48a3 [build] drop the .node-version file 2015-08-14 16:28:18 -07:00
spalger 219c7a3b9e [build] allow installed plugins to use live compiled es7->es5 2015-08-14 16:20:48 -07:00