* Add feature flag support for RATS
Adds feature flag support for RATS integration tests. First feature to use it
is persistent_queues. You can enable a FF in travis by using the travis matrix
and adding a env variable called FEATURE_FLAG=<feature_name>.
To use feature flag, you need a logstash.yml file which has this feature turned on.
Unfortunately --path.settings needs an entire dir where logstash.yml is located, not
just the logstash.yml file, so we need to checkin the fixture which has the feature yml
and log4j.
For example, you can now set FEATURE_FLAG=persistent_queues which means travis will
run tests twice, one with this feature enabled and once without it. When the feature is enaabled
the logstash.yml located in qa/integration/fixtures/persistent_queues is picked up whenever LS is started in tests
The new way to build is using 'rake' and not 'make'.
For some some attempt at compatibility, any 'make' invocation will
invoke rake. `make foo` will invoke `rake foo`.
This is for #1640
Major changes:
* rake is used instead of make. This allows us to more easily improve,
debug, and test the build tooling.
* The build process can be bootstrapped from any Ruby that has
Rake available. Bootstrapping rake is automatic will download JRuby and
re-execute itself under JRuby.
* rpm and deb packages no longer list any java as dependencies. This
is the result of user discomfort and discussions which concluded
that there is no good way to "depend" on Java via rpm or deb.
Internal changes:
* Vendoring paths are project-based. Each vendor directory is now
specific as vendor/<project>/... For example, JRuby is dumped into
vendor/jruby/...
Other changes:
* We don't use jruby-complete anymore. We now use bin/jruby as the entry point.
This improves the startup time of Logstash on my laptop by approximately
1.5 seconds (~25% speedup of startup time). Testing `bin/logstash
version` speed; 5 runs each:
* Before patch: 7.27 7.55 7.26 7.42 7.47
* After patch: 5.54 5.97 5.67 5.58 5.54
Smaller changes:
- removed 'env' subcommand
- Remove 'deps' subcommand. Replaced by 'rake vendor:all'
- Add gem_home method for this platform's GEM_HOME
- .travis.yml removed because we haven't used Travis in a long time.
- bin/logstash exits nonzero with a useful message if JRuby can't be found.
Notes:
Invoke bundler via system() call instead of Bundler::CLI.
After some discussion in #bundler on freenode (very helpful!) on how
to do what we need to do with bundler, I was encouraged to not use the
bundler api from ruby, so system() it is.
Patch slightly modified to fit the new model of packaging (ruby instead
of shell invocation), but original author is obazoud in #1008.
Richard Pijnenburg helped with some of the code and was lovely in
helping test it.
Fixes#1640
I removed the Gemfile.lock this lets travis-ci build without having to remove it or update it before running bundle install.
I added tests for the split filter. They test that the split filter behaves properly under default and non-default configuration.
I've disabled the following tests pending changes:
elasticsearch basic output
fifo file output
Squashed commit of the following:
commit fc9e2e61bad3f6c86ccba00a4a9fa4ad3e5e5030
Author: Nick Ethier <ncethier@gmail.com>
Date: Thu Feb 9 13:21:48 2012 -0700
housekeeping
commit 6cbeb2ded72a81e8e7b88b140a5796a35f21dbed
Author: Nick Ethier <ncethier@gmail.com>
Date: Thu Feb 9 13:04:09 2012 -0700
Added tests for the split filter
commit b54b9fca7ebc0b1963e71494374b46dd25e80916
Author: Nick Ethier <ncethier@gmail.com>
Date: Thu Feb 9 00:19:39 2012 -0700
Adjust grok performance limit
commit c0d810e6070dd94e9db94d86fa52feb6a5836d03
Author: Nick Ethier <ncethier@gmail.com>
Date: Thu Feb 9 00:05:02 2012 -0700
update deps, skip a couple tests until i can debug them, also set the file output test to flush after every event
commit b490b1e56dd6789dc4974e3010454184a4d6d352
Author: Nick Ethier <ncethier@gmail.com>
Date: Wed Feb 8 20:59:15 2012 -0700
more updates to make travis-ci happy
commit ab9cc6d76f7c6404d61e4c9374a4a92cc87a6642
Author: Nick Ethier <ncethier@gmail.com>
Date: Wed Feb 8 20:33:21 2012 -0700
Disabled file output test
commit ce8a45af222fd0030be37fdd174d5b7f34984e10
Author: Nick Ethier <ncethier@gmail.com>
Date: Wed Feb 8 19:53:13 2012 -0700
update lock before install
commit 99ad33f2d89db2068ba030fb9b16e0551e35bae6
Author: Nick Ethier <ncethier@gmail.com>
Date: Wed Feb 8 19:49:41 2012 -0700
add build image to readme
commit 0d7fa48acfca41b3d9de0e947d100a790c4cdb68
Author: Nick Ethier <ncethier@gmail.com>
Date: Wed Feb 8 19:44:13 2012 -0700
see if travis will work out of the box