Split up run_ruby_end2end_tests.sh into more granular test targets

pull/23620/head
Alexander Polcyn 4 years ago
parent 3d4d992470
commit 9b4ef62cb9
  1. 2
      src/ruby/.rubocop_todo.yml
  2. 0
      src/ruby/end2end/call_credentials_returning_bad_metadata_doesnt_kill_background_thread_test.rb
  3. 0
      src/ruby/end2end/call_credentials_timeout_test.rb
  4. 0
      src/ruby/end2end/channel_closing_test.rb
  5. 0
      src/ruby/end2end/channel_state_test.rb
  6. 0
      src/ruby/end2end/client_memory_usage_test.rb
  7. 0
      src/ruby/end2end/errors_load_before_grpc_lib_test.rb
  8. 0
      src/ruby/end2end/forking_client_test.rb
  9. 0
      src/ruby/end2end/graceful_sig_handling_test.rb
  10. 0
      src/ruby/end2end/graceful_sig_stop_test.rb
  11. 0
      src/ruby/end2end/grpc_class_init_test.rb
  12. 0
      src/ruby/end2end/killed_client_thread_test.rb
  13. 0
      src/ruby/end2end/load_grpc_with_gc_stress_test.rb
  14. 0
      src/ruby/end2end/logger_load_before_grpc_lib_test.rb
  15. 0
      src/ruby/end2end/multiple_killed_watching_threads_test.rb
  16. 0
      src/ruby/end2end/package_with_underscore_test.rb
  17. 0
      src/ruby/end2end/sig_handling_test.rb
  18. 0
      src/ruby/end2end/sig_int_during_channel_watch_test.rb
  19. 0
      src/ruby/end2end/status_codes_load_before_grpc_lib_test.rb
  20. 40
      tools/run_tests/helper_scripts/run_ruby_end2end_tests.sh
  21. 30
      tools/run_tests/run_tests.py

@ -449,7 +449,7 @@ Style/ParallelAssignment:
# Configuration parameters: PreferredDelimiters.
Style/PercentLiteralDelimiters:
Exclude:
- 'end2end/grpc_class_init_driver.rb'
- 'end2end/grpc_class_init_test.rb'
- 'spec/client_server_spec.rb'
- 'spec/generic/active_call_spec.rb'
- 'spec/generic/client_stub_spec.rb'

@ -1,40 +0,0 @@
#!/bin/bash
# Copyright 2015 gRPC authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
set -ex
# change to grpc repo root
cd "$(dirname "$0")/../../.."
EXIT_CODE=0
time ruby src/ruby/end2end/sig_handling_driver.rb || EXIT_CODE=1
time ruby src/ruby/end2end/channel_state_driver.rb || EXIT_CODE=1
time ruby src/ruby/end2end/channel_closing_driver.rb || EXIT_CODE=1
time ruby src/ruby/end2end/sig_int_during_channel_watch_driver.rb || EXIT_CODE=1
time ruby src/ruby/end2end/killed_client_thread_driver.rb || EXIT_CODE=1
time ruby src/ruby/end2end/forking_client_driver.rb || EXIT_CODE=1
time ruby src/ruby/end2end/grpc_class_init_driver.rb || EXIT_CODE=1
time ruby src/ruby/end2end/multiple_killed_watching_threads_driver.rb || EXIT_CODE=1
time ruby src/ruby/end2end/load_grpc_with_gc_stress_driver.rb || EXIT_CODE=1
time ruby src/ruby/end2end/client_memory_usage_driver.rb || EXIT_CODE=1
time ruby src/ruby/end2end/package_with_underscore_checker.rb || EXIT_CODE=1
time ruby src/ruby/end2end/graceful_sig_handling_driver.rb || EXIT_CODE=1
time ruby src/ruby/end2end/graceful_sig_stop_driver.rb || EXIT_CODE=1
time ruby src/ruby/end2end/errors_load_before_grpc_lib.rb || EXIT_CODE=1
time ruby src/ruby/end2end/logger_load_before_grpc_lib.rb || EXIT_CODE=1
time ruby src/ruby/end2end/status_codes_load_before_grpc_lib.rb || EXIT_CODE=1
time ruby src/ruby/end2end/call_credentials_timeout_driver.rb || EXIT_CODE=1
time ruby src/ruby/end2end/call_credentials_returning_bad_metadata_doesnt_kill_background_thread_driver.rb || EXIT_CODE=1
exit $EXIT_CODE

@ -926,11 +926,31 @@ class RubyLanguage(object):
timeout_seconds=10 * 60,
environ=_FORCE_ENVIRON_FOR_WRAPPERS)
]
tests.append(
self.config.job_spec(
['tools/run_tests/helper_scripts/run_ruby_end2end_tests.sh'],
timeout_seconds=20 * 60,
environ=_FORCE_ENVIRON_FOR_WRAPPERS))
for test in [
'src/ruby/end2end/sig_handling_test.rb',
'src/ruby/end2end/channel_state_test.rb',
'src/ruby/end2end/channel_closing_test.rb',
'src/ruby/end2end/sig_int_during_channel_watch_test.rb',
'src/ruby/end2end/killed_client_thread_test.rb',
'src/ruby/end2end/forking_client_test.rb',
'src/ruby/end2end/grpc_class_init_test.rb',
'src/ruby/end2end/multiple_killed_watching_threads_test.rb',
'src/ruby/end2end/load_grpc_with_gc_stress_test.rb',
'src/ruby/end2end/client_memory_usage_test.rb',
'src/ruby/end2end/package_with_underscore_test.rb',
'src/ruby/end2end/graceful_sig_handling_test.rb',
'src/ruby/end2end/graceful_sig_stop_test.rb',
'src/ruby/end2end/errors_load_before_grpc_lib_test.rb',
'src/ruby/end2end/logger_load_before_grpc_lib_test.rb',
'src/ruby/end2end/status_codes_load_before_grpc_lib_test.rb',
'src/ruby/end2end/call_credentials_timeout_test.rb',
'src/ruby/end2end/call_credentials_returning_bad_metadata_doesnt_kill_background_thread_test.rb'
]:
tests.append(
self.config.job_spec(['ruby', test],
shortname=test,
timeout_seconds=20 * 60,
environ=_FORCE_ENVIRON_FOR_WRAPPERS))
return tests
def pre_build_steps(self):

Loading…
Cancel
Save