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

Tests cannot be run by CI #6

Open
kimburgess opened this issue Oct 20, 2017 · 1 comment
Open

Tests cannot be run by CI #6

kimburgess opened this issue Oct 20, 2017 · 1 comment
Assignees
Labels

Comments

@kimburgess
Copy link
Contributor

Tests / device mocks are currently little tricky to run due to the dependence or Orchestrator. These should be integrated into something that Travis can work with.

It should be possible to get this up an running with the aca0/engine container, but there's a dependency on it talking to couchbase during the spin up.

$ docker run aca0/engine rake module:test['../aca-device-modules/modules/extron/switcher/dxp_spec.rb'] 
rake aborted!
Libcouchbase::Error::Invalid: failed to create instance
/usr/local/bundle/gems/libcouchbase-1.0.4/lib/libcouchbase/bucket.rb:24:in `initialize'
/usr/local/bundle/gems/couchbase-orm-1.0.0/lib/couchbase-orm/connection.rb:13:in `new'
/usr/local/bundle/gems/couchbase-orm-1.0.0/lib/couchbase-orm/connection.rb:13:in `bucket'
/usr/local/bundle/gems/couchbase-orm-1.0.0/lib/couchbase-orm/base.rb:52:in `bucket'
/usr/local/bundle/gems/couchbase-orm-1.0.0/lib/couchbase-orm/views.rb:119:in `ensure_design_document!'
/usr/local/bundle/gems/couchbase-orm-1.0.0/lib/couchbase-orm/railtie.rb:89:in `block (2 levels) in <class:Railtie>'
/usr/local/bundle/gems/couchbase-orm-1.0.0/lib/couchbase-orm/railtie.rb:88:in `each'
/usr/local/bundle/gems/couchbase-orm-1.0.0/lib/couchbase-orm/railtie.rb:88:in `block in <class:Railtie>'
/usr/local/bundle/gems/activesupport-5.1.4/lib/active_support/lazy_load_hooks.rb:67:in `block in execute_hook'
/usr/local/bundle/gems/activesupport-5.1.4/lib/active_support/lazy_load_hooks.rb:60:in `with_execution_control'
/usr/local/bundle/gems/activesupport-5.1.4/lib/active_support/lazy_load_hooks.rb:65:in `execute_hook'
/usr/local/bundle/gems/activesupport-5.1.4/lib/active_support/lazy_load_hooks.rb:50:in `block in run_load_hooks'
/usr/local/bundle/gems/activesupport-5.1.4/lib/active_support/lazy_load_hooks.rb:49:in `each'
/usr/local/bundle/gems/activesupport-5.1.4/lib/active_support/lazy_load_hooks.rb:49:in `run_load_hooks'
/usr/local/bundle/gems/railties-5.1.4/lib/rails/application/finisher.rb:73:in `block in <module:Finisher>'
/usr/local/bundle/gems/railties-5.1.4/lib/rails/initializable.rb:30:in `instance_exec'
/usr/local/bundle/gems/railties-5.1.4/lib/rails/initializable.rb:30:in `run'
/usr/local/bundle/gems/railties-5.1.4/lib/rails/initializable.rb:59:in `block in run_initializers'
/usr/local/bundle/gems/railties-5.1.4/lib/rails/initializable.rb:58:in `run_initializers'
/usr/local/bundle/gems/railties-5.1.4/lib/rails/application.rb:353:in `initialize!'
/home/aca-apps/ruby-engine-app/config/environment.rb:5:in `<top (required)>'
/usr/local/bundle/gems/railties-5.1.4/lib/rails/application.rb:329:in `require'
/usr/local/bundle/gems/railties-5.1.4/lib/rails/application.rb:329:in `require_environment!'
/usr/local/bundle/gems/railties-5.1.4/lib/rails/application.rb:445:in `block in run_tasks_blocks'
/usr/local/bundle/gems/rake-12.1.0/exe/rake:27:in `<top (required)>'
---- continuation ----
/usr/local/bundle/gems/libuv-3.2.2/lib/libuv/reactor.rb:174:in `block in run'
/usr/local/bundle/gems/libuv-3.2.2/lib/libuv/fiber_pool.rb:19:in `block in exec'
/usr/local/bundle/gems/libuv-3.2.2/lib/libuv/fiber_pool.rb:76:in `block (2 levels) in new_fiber'
/usr/local/bundle/gems/libuv-3.2.2/lib/libuv/fiber_pool.rb:73:in `loop'
/usr/local/bundle/gems/libuv-3.2.2/lib/libuv/fiber_pool.rb:73:in `block in new_fiber'
Tasks: TOP => module:test => environment
(See full trace by running task with --trace)

ENGINE_NODE_ID env var not set

Need to look into a way of running these with the smallest amount of overhead.

@stakach
Copy link
Contributor

stakach commented Oct 25, 2017

Yeah true... shouldn't be too hard to remove the requirement for couchbase for tests. I'll get this done

@stakach stakach self-assigned this Oct 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants