mirror of
https://github.com/wassname/ray.git
synced 2026-08-11 11:24:51 +08:00
Hotfix CI Export Tests to Skip (#8058)
Co-authored-by: Mehrdad <noreply@github.com>
This commit is contained in:
@@ -290,6 +290,7 @@ matrix:
|
||||
- bazel test --config=ci //cpp:all --build_tests_only --test_output=streamed
|
||||
|
||||
script:
|
||||
- . ./ci/travis/ci.sh preload
|
||||
# raylet integration tests
|
||||
- ./ci/suppress_output bash src/ray/test/run_core_worker_tests.sh
|
||||
- ./ci/suppress_output bash src/ray/test/run_object_manager_tests.sh
|
||||
|
||||
+15
-11
@@ -47,6 +47,20 @@ reload_env() {
|
||||
export PATH PYTHON3_BIN_PATH
|
||||
}
|
||||
|
||||
preload() {
|
||||
local job_names="${1-}"
|
||||
|
||||
local variable_definitions
|
||||
variable_definitions=($(python "${ROOT_DIR}"/determine_tests_to_run.py))
|
||||
if [ 0 -lt "${#variable_definitions[@]}" ]; then
|
||||
export "${variable_definitions[@]}"
|
||||
fi
|
||||
|
||||
if ! (set +x && should_run_job ${job_names//,/ }); then
|
||||
exit 0
|
||||
fi
|
||||
}
|
||||
|
||||
# Initializes the environment for the current job. Performs the following tasks:
|
||||
# - Calls 'exit 0' to quickly exit if provided a list of job names and none of them has been triggered.
|
||||
# - Sets variables to indicate the job names that have been triggered.
|
||||
@@ -57,17 +71,7 @@ reload_env() {
|
||||
# Usage: init [JOB_NAMES]
|
||||
# - JOB_NAMES (optional): Comma-separated list of job names to trigger on.
|
||||
init() {
|
||||
local job_names="${1-}"
|
||||
|
||||
local variable_definitions
|
||||
variable_definitions=($(python "${ROOT_DIR}"/determine_tests_to_run.py))
|
||||
if [ 0 -lt "${#variable_definitions[@]}" ]; then
|
||||
declare "${variable_definitions[@]}"
|
||||
fi
|
||||
|
||||
if ! (set +x && should_run_job ${job_names//,/ }); then
|
||||
exit 0
|
||||
fi
|
||||
preload
|
||||
|
||||
if [ "${OSTYPE}" = msys ]; then
|
||||
export USE_CLANG_CL=1
|
||||
|
||||
Reference in New Issue
Block a user