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

Failing tests on 1.7.22+ in recent weeks #80

Closed
headius opened this issue Jan 25, 2016 · 3 comments
Closed

Failing tests on 1.7.22+ in recent weeks #80

headius opened this issue Jan 25, 2016 · 3 comments

Comments

@headius
Copy link
Member

headius commented Jan 25, 2016

This could certainly be a JRuby issue, but for the moment I'm treating it like a jruby-openssl issue.

At some point, test builds of jruby-openssl on JRuby 1.7.22 started failing, and they've continued failing for a few weeks.

The errors spewed are all over the place and I haven't looked into any one of them yet: https://s3.amazonaws.com/archive.travis-ci.org/jobs/104727216/log.txt

It seems like these 1.7.22 failures go back to here, but those errors are different: https://travis-ci.org/jruby/jruby-openssl/builds/92441978

One of the errors on this first build is a ClassCastException, so I'm wondering if there's a hidden incompatibility that has snuck in.

@headius
Copy link
Member Author

headius commented Jan 25, 2016

An attempt to run rake test under JRuby 1.7.22 produces yet another error:

$ rake test
deprecated: maven rake tasks is enf of life
/Users/headius/.rvm/rubies/jruby-1.7.22/bin/jruby -I"lib:src/test/ruby" -e "ARGV.each{|f| require f}" "oaep/test_oaep.rb" "pkcs5/test_pbkdf2.rb" "pkcs7/test_attribute.rb" "pkcs7/test_bio.rb" "pkcs7/test_mime.rb" "pkcs7/test_pkcs7.rb" "pkcs7/test_smime.rb" "rsa/test_rsa.rb" "ssl/test_context.rb" "ssl/test_helper.rb" "ssl/test_session.rb" "ssl/test_socket.rb" "ssl/test_ssl.rb" "test_asn1.rb" "test_bn.rb" "test_cipher.rb" "test_digest.rb" "test_helper.rb" "test_hmac.rb" "test_openssl.rb" "test_random.rb" "x509/test_x509cert.rb" "x509/test_x509crl.rb" "x509/test_x509ext.rb" "x509/test_x509name.rb" "x509/test_x509req.rb" "x509/test_x509revoked.rb" "x509/test_x509store.rb" 
Could not find 'mocha' (>= 0) among 13 total gem(s)
Checked in 'GEM_PATH=/Users/headius/.rvm/gems/jruby-1.7.22:/Users/headius/.rvm/gems/jruby-1.7.22@global', execute `gem env` for more information to run all tests please `gem install mocha'
NameError: cannot link Java class org.jruby.ext.openssl.x509store
  get_proxy_or_package_under_package at org/jruby/javasupport/JavaUtilities.java:54
                      method_missing at file:/Users/headius/.rvm/rubies/jruby-1.7.22/lib/jruby.jar!/jruby/java/java_package_module_template.rb:14
                           PKCS7Test at /Users/headius/projects/jruby-openssl/src/test/ruby/pkcs7_helper.rb:27
                              (root) at /Users/headius/projects/jruby-openssl/src/test/ruby/pkcs7_helper.rb:3
                             require at org/jruby/RubyKernel.java:1040
                              (root) at /Users/headius/.rvm/rubies/jruby-1.7.22/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:1
                             require at /Users/headius/.rvm/rubies/jruby-1.7.22/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:54
                             require at org/jruby/RubyKernel.java:1040
                              (root) at /Users/headius/projects/jruby-openssl/src/test/ruby/pkcs7/test_bio.rb:1
                              (root) at -e:1
                                each at org/jruby/RubyArray.java:1613
                              (root) at -e:1
rake aborted!
1
org/jruby/RubyProc.java:271:in `call'
org/jruby/RubyProc.java:271:in `call'
org/jruby/RubyArray.java:1613:in `each'
org/jruby/RubyArray.java:1613:in `each'
org/jruby/RubyKernel.java:1059:in `load'
org/jruby/RubyKernel.java:1079:in `eval'
/Users/headius/.rvm/gems/jruby-1.7.22@global/bin/jruby_executable_hooks:15:in `(root)'
Tasks: TOP => test
(See full trace by running task with --trace)

JRuby 1.7.19 runs the tests successfully.

@kares
Copy link
Member

kares commented Feb 28, 2016

hmm, also ended with something similar on 1.7.24 :

$ rake test
deprecated: maven rake tasks is enf of life
/opt/local/rvm/rubies/jruby-1.7.24/bin/jruby -I"lib:src/test/ruby" -e "ARGV.each{|f| require f}" "oaep/test_oaep.rb" "pkcs5/test_pbkdf2.rb" "pkcs7/test_attribute.rb" "pkcs7/test_bio.rb" "pkcs7/test_mime.rb" "pkcs7/test_pkcs7.rb" "pkcs7/test_smime.rb" "rsa/test_rsa.rb" "ssl/test_context.rb" "ssl/test_helper.rb" "ssl/test_session.rb" "ssl/test_socket.rb" "ssl/test_ssl.rb" "test_asn1.rb" "test_bn.rb" "test_cipher.rb" "test_digest.rb" "test_helper.rb" "test_hmac.rb" "test_openssl.rb" "test_random.rb" "x509/test_x509cert.rb" "x509/test_x509context.rb" "x509/test_x509crl.rb" "x509/test_x509ext.rb" "x509/test_x509name.rb" "x509/test_x509req.rb" "x509/test_x509revoked.rb" "x509/test_x509store.rb" 
Could not find 'mocha' (>= 0) among 13 total gem(s)
Checked in 'GEM_PATH=/opt/local/rvm/gems/jruby-1.7.24:/opt/local/rvm/gems/jruby-1.7.24@global', execute `gem env` for more information to run all tests please `gem install mocha'
NameError: cannot initialize Java class org.jruby.ext.openssl.impl.EncContent (java.lang.ExceptionInInitializerError)
  get_proxy_or_package_under_package at org/jruby/javasupport/JavaUtilities.java:54
                      method_missing at file:/opt/local/rvm/rubies/jruby-1.7.24/lib/jruby.jar!/jruby/java/java_package_module_template.rb:14
                           PKCS7Test at /home/kares/workspace/oss/jruby-openssl/src/test/ruby/pkcs7_helper.rb:9
                              (root) at /home/kares/workspace/oss/jruby-openssl/src/test/ruby/pkcs7_helper.rb:3
                             require at org/jruby/RubyKernel.java:1040
                              (root) at /opt/local/rvm/rubies/jruby-1.7.24/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:1
                             require at /opt/local/rvm/rubies/jruby-1.7.24/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:54
                             require at org/jruby/RubyKernel.java:1040
                              (root) at /home/kares/workspace/oss/jruby-openssl/src/test/ruby/pkcs7/test_bio.rb:1
                              (root) at -e:1
                                each at org/jruby/RubyArray.java:1613
                              (root) at -e:1
rake aborted!
1
org/jruby/RubyProc.java:281:in `call'
org/jruby/RubyProc.java:281:in `call'
org/jruby/RubyArray.java:1613:in `each'
org/jruby/RubyArray.java:1613:in `each'
org/jruby/RubyKernel.java:1059:in `load'
org/jruby/RubyKernel.java:1079:in `eval'
/opt/local/rvm/gems/jruby-1.7.24/bin/jruby_executable_hooks:15:in `(root)'
Tasks: TOP => test
(See full trace by running task with --trace)

@kares
Copy link
Member

kares commented Feb 28, 2016

OK, false alarm - just a messy setup when running outside maven. now loading should work better :

$ rake test
deprecated: maven rake tasks is enf of life
/opt/local/rvm/rubies/jruby-1.7.24/bin/jruby -I"lib:src/test/ruby" -C src/test/ruby -rbundler/setup -e "ARGV.each{|f| require f}" "oaep/test_oaep.rb" "pkcs5/test_pbkdf2.rb" "pkcs7/test_attribute.rb" "pkcs7/test_bio.rb" "pkcs7/test_mime.rb" "pkcs7/test_pkcs7.rb" "pkcs7/test_smime.rb" "rsa/test_rsa.rb" "ssl/test_context.rb" "ssl/test_helper.rb" "ssl/test_session.rb" "ssl/test_socket.rb" "ssl/test_ssl.rb" "test_asn1.rb" "test_bn.rb" "test_cipher.rb" "test_digest.rb" "test_helper.rb" "test_hmac.rb" "test_openssl.rb" "test_random.rb" "x509/test_x509cert.rb" "x509/test_x509context.rb" "x509/test_x509crl.rb" "x509/test_x509ext.rb" "x509/test_x509name.rb" "x509/test_x509req.rb" "x509/test_x509revoked.rb" "x509/test_x509store.rb" 
Run options: 

# Running tests:

...................................................................................................................S..................................../home/kares/workspace/oss/jruby-openssl/src/test/ruby/ssl/ssl_server.rb started: pid=25935 port=20443
../home/kares/workspace/oss/jruby-openssl/src/test/ruby/ssl/ssl_server.rb started: pid=25935 port=20443
/home/kares/workspace/oss/jruby-openssl/src/test/ruby/ssl/ssl_server.rb started: pid=25935 port=20443
/home/kares/workspace/oss/jruby-openssl/src/test/ruby/ssl/ssl_server.rb started: pid=25935 port=20443
./home/kares/workspace/oss/jruby-openssl/src/test/ruby/ssl/ssl_server.rb started: pid=25935 port=20443
./home/kares/workspace/oss/jruby-openssl/src/test/ruby/ssl/ssl_server.rb started: pid=25935 port=20443
./home/kares/workspace/oss/jruby-openssl/src/test/ruby/ssl/ssl_server.rb started: pid=25935 port=20443
./home/kares/workspace/oss/jruby-openssl/src/test/ruby/ssl/ssl_server.rb started: pid=25935 port=20443
......./home/kares/workspace/oss/jruby-openssl/src/test/ruby/ssl/ssl_server.rb started: pid=25935 port=20443
..............................X509::Request#version= has no effect on certification request
.X509::Request#version= has no effect on certification request
.............

Finished tests in 6.610000s, 31.6188 tests/s, 142.2088 assertions/s.

  1) Skipped:
test_cipher_init_default_key(TestCipher) [/opt/local/rvm/gems/jruby-1.7.24@openssl/gems/mocha-1.1.0/lib/mocha/integration/mini_test/version_230_to_2101.rb:36]:
OpenSSL::Cipher key default not implemented

209 tests, 940 assertions, 0 failures, 0 errors, 1 skips

@kares kares closed this as completed Feb 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants