Skip to content

Commit

Permalink
BUGFIX: MSF-25904 Error no suitable driver found when testing LCM Bri…
Browse files Browse the repository at this point in the history
…cks with environment C9S
  • Loading branch information
hung-nguyen-hoang committed Nov 8, 2023
1 parent 2931de7 commit b7177fc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions bin/run_brick.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@

brick_type = !ARGV.empty? ? ARGV[0] : DEFAULT_BRICK


require '/usr/local/rvm/gems/jruby-9.4.1.0/gems/gooddata-dss-jdbc-0.2.8/lib/datawarehouse-jdbc-driver-3.5.6.jar'


def get_brick_params(prefix)
ENV.select { |k,| k.to_s.match(/^#{prefix}.*/) }.map { |k, v| [k.slice(prefix.length..-1), v] }.to_h
end
Expand Down Expand Up @@ -62,6 +66,12 @@ def handle_error(params, log, brick_type, error, error_message)
params['GDC_EXECUTION_RESULT_LOG_PATH'] = execution_result_log_path

log.info "action=#{brick_type}_execution status=start commit_hash=#{commit_hash} execution_id=#{execution_id}"

# Start sleep to investigate issue no suitable driver found
log.info "action=#{brick_type}_execution status=start commit_hash=#{commit_hash} execution_id=#{execution_id} sleep=start"
sleep(60)
log.info "action=#{brick_type}_execution status=start commit_hash=#{commit_hash} execution_id=#{execution_id} sleep=end"

brick_pipeline.call(params)
rescue GoodData::LcmExecutionError => lcm_error
handle_error(execution_result_log_params, log, brick_type, lcm_error, lcm_error.summary_error)
Expand Down
1 change: 1 addition & 0 deletions gooddata.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ if RUBY_VERSION >= '2.5'
s.add_dependency 'parseconfig', '~> 1.0'
s.add_dependency 'pmap', '~> 1.1'
s.add_dependency 'sequel', '< 5.72.0'
s.add_dependency 'gooddata-dss-jdbc', '< 0.2.9'
s.add_dependency 'remote_syslog_logger', '~> 1.0.3'
s.add_dependency 'restforce', '>= 2.4'
s.add_dependency 'rest-client', '~> 2.0'
Expand Down

0 comments on commit b7177fc

Please sign in to comment.