-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
shutdown robustness and test tasks #2928
Conversation
run_rspec(Rake::FileList["spec/**/*_spec.rb"]) | ||
desc "run core specs" | ||
task "core" => ["setup"] do | ||
RSpec::Core::Runner.run([Rake::FileList["spec/**/*_spec.rb"]]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@colinsurprenant please reapply the same exit code enforcement done in #2920 otherwise a failed "rake test" task will have an exit code of 0:
joaoduarte@Joaos-MBP-2 ~/projects/logstash (git)-[pr/2928] % bundle exec rake test:core
Using Accessor#strict_set for specs
Run options: exclude {:redis=>true, :socket=>true, :performance=>true, :couchdb=>true, :elasticsearch=>true, :elasticsearch_secure=>true, :broken=>true, :export_cypher=>true, :integration=>true, :windows=>true}
............................................................................................................................................................................................................................................F.........................................
Failures:
1) conditionals in filter simple "{"foo":"bar"}" when processed
Failure/Error: Unable to find matching line from backtrace
expected: "awesom"
got: "awesome"
(compared using ==)
# ./spec/core/conditionals_spec.rb:66:in `(root)'
# ./rakelib/test.rake:13:in `(root)'
Finished in 3.61 seconds
278 examples, 1 failure
Failed examples:
rspec ./vendor/bundle/jruby/1.9/gems/logstash-devutils-0.0.10-java/lib/logstash/devutils/rspec/logstash_helpers.rb:51 # conditionals in filter simple "{"foo":"bar"}" when processed
Randomized with seed 18354
joaoduarte@Joaos-MBP-2 ~/projects/logstash (git)-[pr/2928] % echo $?
0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or rebase against master :-), good catch @jsvd
+1 on being sure we don't miss important stuff like this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, did not rebase, I will.
6cffdbb
to
c36fad6
Compare
moved version bump in #2932 |
LGTM (same for devutils and plugins) |
Dependent on #2949 |
LGTM, looked at devutils and all the plugins. |
I did a manual merge of this in 380ea33 |
All the plugins were pushed. |
refactored test tasks and added robustness in shutdown handling and other thread safeties
this issue also relates to