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

shutdown robustness and test tasks #2928

Closed

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"]])
Copy link
Member

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

Copy link
Contributor

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.

Copy link
Contributor Author

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.

@colinsurprenant colinsurprenant added this to the v1.5.0 milestone Apr 1, 2015
@colinsurprenant
Copy link
Contributor Author

@jsvd @purbon I reverted the version bump and I rebased and fixed the rake tasks exit status handling.

@colinsurprenant
Copy link
Contributor Author

moved version bump in #2932

@jsvd
Copy link
Member

jsvd commented Apr 2, 2015

LGTM (same for devutils and plugins)

@suyograo
Copy link
Contributor

suyograo commented Apr 7, 2015

Dependent on #2949

suyograo added a commit to suyograo/logstash that referenced this pull request Apr 7, 2015
@ph
Copy link
Contributor

ph commented Apr 7, 2015

LGTM, looked at devutils and all the plugins.

@ph ph added the 1.5 label Apr 8, 2015
@ph
Copy link
Contributor

ph commented Apr 8, 2015

I did a manual merge of this in 380ea33

@ph
Copy link
Contributor

ph commented Apr 8, 2015

All the plugins were pushed.

@ph ph closed this Apr 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants