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

[doc][monitoring] Using existing Grafana instances. #31633

Closed
wants to merge 109 commits into from
Closed
Changes from all commits
Commits
Show all changes
109 commits
Select commit Hold shift + click to select a range
60975c2
Documentation about using existing Grafana instance.
BukicTomislav-AVLHR Jan 12, 2023
3f09a8c
[air] Increase global batch size for air_benchmark_tensorflow_mnist_g…
krfricke Jan 3, 2023
64297e3
Fixing RAY_PDB bug and adding unit test (#31376)
cadedaniel Jan 3, 2023
624b8bf
[ci][nightly][core] Fix stress_test_state_api_scale (#31346)
rickyyx Jan 3, 2023
9ab0968
[ci][core] Remove cython version pin in release tests #31339
rickyyx Jan 3, 2023
64d41c8
[RLlib] Issue 28428: QMix not working w/ GPUs. (#31299)
sven1977 Jan 3, 2023
76ddf3f
[core] add option for raylet to inform whether a task should be retri…
clarng Jan 3, 2023
1e3f0e2
[Data] Fix Discretizers transforming ignored cols (#31404)
Yard1 Jan 3, 2023
389ceab
[RLlib] RLTrainer (#31191)
avnishn Jan 3, 2023
c0cb109
[Docs] Remove unused env var from Tune docs (#31406)
Yard1 Jan 3, 2023
01e5658
[AIR] Allow user to pass model to `TensorflowCheckpoint.get_model` (#…
bveeramani Jan 4, 2023
357a7e9
[Data] Add codeowners to preprocessor tests (#31422)
amogkam Jan 4, 2023
30b2a9e
[Datasets] Allow MultiHotEncoder to encode arrays (#31365)
bveeramani Jan 4, 2023
43b517f
[RLlib] Test models created for TorchPPORLModule (#31181)
ArturNiederfahrenhorst Jan 4, 2023
518e30b
[AIR] Deal with nested Chain in BatchPredictor (#31407)
Yard1 Jan 4, 2023
d0c24bf
[data] New executor backend [3/n]--- Add basic operators impl (#31305)
ericl Jan 4, 2023
40ecaa5
[Tune] Fix best trial in ProgressReporter with nan (#31276)
Yard1 Jan 4, 2023
dee914e
[docs] Update contribution guide to mention when to use REP (#30844)
zhe-thoughts Jan 4, 2023
6658984
[RLlib] Fix Batch Norm Model and QMix VDN mixer flakeyness. (#31371)
ArturNiederfahrenhorst Jan 4, 2023
e476980
[Train] Fix off-by-one AIR Trainer checkpoint ID indexing on restore …
justinvyu Jan 4, 2023
38354e5
[Train] Fix flaky `test_reserved_cpu_warnings` (#31415)
Yard1 Jan 4, 2023
a198a20
[Serve] Return 400 response code for malformed Serve configs sent via…
shrekris-anyscale Jan 4, 2023
0df8e54
[Datasets] Fix schema unification for Datasets with ragged Arrow arra…
scottjlee Jan 4, 2023
136e783
Fix AIR documentation codeowners (#31442)
bveeramani Jan 4, 2023
c494f2a
[AIR] Add `TorchVisionPreprocessor` (#30578)
bveeramani Jan 4, 2023
f828d5d
Revert "[Core] RetryObjectInPlasmaErrors tries to fetch all objects, …
fishbone Jan 4, 2023
1a12229
Add a warning message. (#31294)
rkooo567 Jan 4, 2023
140e49b
[RLlib] Always create connectors if it's enabled. Otherwise the polic…
Jan 4, 2023
2e1ae70
[RLlib] Clean up deprecated concat_samples calls (#31391)
ArturNiederfahrenhorst Jan 5, 2023
e66294f
[RLlib] Deflake replay buffer demo - Use more rollout workers for Rep…
ArturNiederfahrenhorst Jan 5, 2023
87b5904
[Core][runtime-context] replace deprecated API usage #31198
scv119 Jan 5, 2023
0eddf04
[RLlib] Properly serialize and restore StateBufferConnector states fo…
Jan 5, 2023
1ef99c8
[RLlib] Terminated/Truncated in Quickstart Script. (#31386)
ArturNiederfahrenhorst Jan 5, 2023
5c73651
[air] Deprecate MlflowTrainableMixin, move to setup_mlflow() function…
krfricke Jan 5, 2023
a809a63
[Datasets] Add benchmark for iter_batches() API on tabular data (#31304)
jianoaix Jan 5, 2023
3280f18
[RLlib] Enable connectors. (#30388)
ArturNiederfahrenhorst Jan 5, 2023
25607c6
Revert "Revert "[ci/release] Move all release tests to use Ray jobs i…
krfricke Jan 5, 2023
973395b
[RLlib] Support multi-gpu CQL for torch (tf already supported). (#31466)
Emiyalzn Jan 5, 2023
6b997e9
[Data] Fix Imputer failing with categorical dtype (#31435)
Yard1 Jan 5, 2023
78cc1ae
[core][telemetry] ray.get timeout=0 telemetry tracking (#31159)
rickyyx Jan 5, 2023
57aa113
[Core/Python] Turn hardcoded forward slashes into os.path.join operat…
jbedorf Jan 5, 2023
a92ea9b
Fix the bug of eagerly clearing up input blocks (#31459)
c21 Jan 5, 2023
410d706
[dev] Remove gitpod #31355
rickyyx Jan 5, 2023
3e11a9e
[RLlib] Fix 100 policy test by bringing # of env back to 5. (#31475)
Jan 5, 2023
6a71cde
[data] New executor [4/n]--- Add bulk executor implementation (#31443)
ericl Jan 5, 2023
930021b
[Jobs] Track real job process (#31306)
zcin Jan 5, 2023
c5fb411
[Serve] [Autoscaler] Change target_num_ongoing_requests_per_replica t…
zcin Jan 5, 2023
b0442af
[ci][nightly] no ray.wait in a loop for many_actors test #31412
rickyyx Jan 6, 2023
d1233dc
[core] Delete gcs heartbeat manager (#30951)
fishbone Jan 6, 2023
36b5e08
[Core][deprecate run_on_all_workers 1/n] set worker's sys.path throug…
scv119 Jan 6, 2023
247b7ee
[Core][deprecate run_on_all_workers 1/n] set worker's sys.path throug…
scv119 Jan 6, 2023
135e621
[ci] Update build-docker-images.py (#31385)
csko Jan 6, 2023
02f46c2
[ci/release] Use job-based file manager for SDK runner per default (#…
krfricke Jan 6, 2023
5c4b275
Revert "[RLlib] Enable connectors. (#30388)" (#31495)
ArturNiederfahrenhorst Jan 6, 2023
4939111
[RLlib] Deflake replay buffer demo by making training shorter (#31468)
ArturNiederfahrenhorst Jan 6, 2023
8ffefb9
[Datasets] Refactor Ray Data API documentation (#31204)
c21 Jan 6, 2023
2f9c508
[Datasets] Enable lazy execution by default (#31286)
c21 Jan 6, 2023
747c14d
[Autoscaler] Prefix (autoscaler) instead of (scheduler) for autoscale…
gvspraveen Jan 6, 2023
8c05969
[Core][runtime-context] Warn user when deprecated API is used (#31195)
scv119 Jan 6, 2023
17ad02f
[RLlib] RLTrainer is all you need. (#31490)
kouroshHakha Jan 6, 2023
9e04c1f
Prepare Python 3.11 support (#31170)
csko Jan 7, 2023
1304469
[Doc] [Jobs] Address comments on Jobs OpenAPI description (#30975)
architkulkarni Jan 8, 2023
82d1970
Add a new blog article for Ray Serve (#31531)
jbesomi Jan 9, 2023
912ea3c
[Doc] Improve metrics aggregation Train user guide (#31498)
Yard1 Jan 9, 2023
61503cf
[docs] Fix Deprecated annotation indentation (#31532)
krfricke Jan 9, 2023
40a9832
[ci] Build wheels for Linux ARM64 (#31522)
krfricke Jan 9, 2023
33a678b
[serve] Add initial health check before marking a replica as RUNNING …
zcin Jan 9, 2023
8718503
[Tune][CI] Skip zoopt invalid values test (#31419)
justinvyu Jan 9, 2023
9e23234
[core] allow infinite oom retry (#31509)
clarng Jan 9, 2023
e7248e2
[RLlib] Delete rl optimizer (#31530)
avnishn Jan 9, 2023
7f0b59b
[core] fix typo in core_worker.cc (#31497)
eltociear Jan 9, 2023
63100f2
[ci][perf][core] ray.wait & ray.get ownership check improvement (#31539)
rickyyx Jan 9, 2023
6a36d21
[RLlib] Add addtional_update to RL Trainer (#31541)
avnishn Jan 9, 2023
f74856c
[CoreWorker][deprecate run_function_on_all_workers 2/n] announcing de…
scv119 Jan 9, 2023
07b04d3
[CI] Deflake test_reserved_cpu_warnings (again) (#31535)
Yard1 Jan 9, 2023
37f1974
Revert "[serve] Add initial health check before marking a replica as …
zcin Jan 9, 2023
1b562db
[Data] Refactor block batching to follow iterator pattern (#31425)
amogkam Jan 10, 2023
96e0b54
Adding accelerator type A10G (#31534)
zoltan-fedor Jan 10, 2023
213b2e7
[RLlib] Introduce IMPALA off_policyness test with GPU (#31485)
ArturNiederfahrenhorst Jan 10, 2023
8f73a44
[data] New executor [5/n]--- Add legacy compatibility shims (#31482)
ericl Jan 10, 2023
9f40162
[data] New executor [6/n] add misc changes (#31557)
ericl Jan 10, 2023
c65f7b3
[RLlib] Fixes the recreation of optimizers when `add_module` is used …
kouroshHakha Jan 10, 2023
01ef884
[docs] Fix installation table layout (#31562)
krfricke Jan 10, 2023
7f05c3e
[core][state] Ignore tasks w/o status updates (driver generated tasks…
rickyyx Jan 10, 2023
d23af66
[docs] Provide guidelines for Many Model Training (#31517)
richardliaw Jan 10, 2023
a968f05
[Datasets] Add benchmark for read_parquet() API (#31483)
jianoaix Jan 10, 2023
b4fe7fe
Revert "Revert "[serve] Add initial health check before marking a rep…
zcin Jan 10, 2023
e32068a
[Doc][aws][autoscaler] Update AWS cluster cfg yaml to use default AMI…
Jan 10, 2023
e4bb0b2
[CI] De-flake tune_scalability_network_overhead [smoketest] (#31580)
bveeramani Jan 11, 2023
e3fc256
fix docs: typo in logging.md (#31572)
davidxia Jan 11, 2023
c2bf614
[AIR] Add guide on how implement a custom predictors (#31392)
bveeramani Jan 11, 2023
20489ed
[core] Fix a memory leak due to lineage counting (#31488)
fishbone Jan 11, 2023
6c267a1
[RLlib] Add RLModule and MARLModule Serialize Deserialize methods (#3…
avnishn Jan 11, 2023
55b89b0
[AIR] Fix Torch release tests (#31500)
bveeramani Jan 11, 2023
6b4bad6
[core][state] Add task_parent_id to TaskState (#31570)
rickyyx Jan 11, 2023
da29951
[Datasets] Do not eagerly execute first block for read_xxx API (#31558)
c21 Jan 11, 2023
dce6dbd
[docs] Filter by tags. (#31410)
maxpumperla Jan 11, 2023
8888817
[Fail on pytest warnings 1/n] Marking strings with invalid escape seq…
cadedaniel Jan 11, 2023
e52e929
[RLlib] RLTrainer stand-alone unittests (#31552)
kouroshHakha Jan 11, 2023
9d5b296
[Datasets] Expose underlying `DatasetStats` as an accessible object f…
scottjlee Jan 11, 2023
7299f46
[RLlib] Add flag to allow users to enable disable the tf function tra…
avnishn Jan 11, 2023
4a0bdc0
[Core] [Pytest fail on warnings] Use default behavior in test annotat…
cadedaniel Jan 11, 2023
6241dba
[tune][docs] quick doc search pass (#31592)
maxpumperla Jan 12, 2023
ac23437
[RLlib] Use PyTorch vectorized max() and sum() in SampleBatch.__init_…
cassidylaidlaw Jan 12, 2023
fdd6ef1
[RLlib] Trainer runner quick cleanups (#31568)
kouroshHakha Jan 12, 2023
24a9587
[Datasets] Emit warning when starting Dataset execution with no CPU r…
scottjlee Jan 12, 2023
b8fbdfc
Remove method about py-spy permissions from every py-spy error. (#31600)
alanwguo Jan 12, 2023
4cd1075
[Dataset] Improve str/repr of `Dataset` to include execution plan (#3…
c21 Jan 12, 2023
75db9aa
[CoreWorker] lazy bind core_work's job_config through task spec. (#31…
scv119 Jan 12, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
56 changes: 56 additions & 0 deletions .buildkite/pipeline.arm64.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
- label: ":mechanical_arm: :ferris_wheel: ARM64 Linux wheels"
conditions: ["RAY_CI_LINUX_WHEELS_AFFECTED"]
instance_size: arm64-medium
commands:
# Build the wheels
- UPLOAD_WHEELS_AS_ARTIFACTS=1 LINUX_WHEELS=1 ./ci/ci.sh build
# Upload the wheels
# We don't want to push on PRs, in fact, the copy_files will fail because unauthenticated.
- if [ "$BUILDKITE_PULL_REQUEST" != "false" ]; then exit 0; fi
- pip install -q docker aws_requests_auth boto3
- ./ci/env/env_info.sh
# Upload to branch directory.
- python .buildkite/copy_files.py --destination branch_wheels --path ./.whl
# Upload to latest directory.
- if [ "$BUILDKITE_BRANCH" == "master" ]; then python .buildkite/copy_files.py --destination wheels --path ./.whl; fi

- label: ":mechanical_arm: :ferris_wheel: ARM64 Post-wheels tests"
conditions: ["RAY_CI_LINUX_WHEELS_AFFECTED"]
instance_size: arm64-medium
commands:
- LINUX_WHEELS=1 ./ci/ci.sh build
- cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi }; trap cleanup EXIT
- ./ci/env/env_info.sh
- bazel test --config=ci $(./ci/run/bazel_export_options)
--test_tag_filters=post_wheel_build
--test_env=CONDA_EXE
--test_env=CONDA_PYTHON_EXE
--test_env=CONDA_SHLVL
--test_env=CONDA_PREFIX
--test_env=CONDA_DEFAULT_ENV
--test_env=CI
--test_env=RAY_CI_POST_WHEEL_TESTS=True
python/ray/tests/... python/ray/serve/... python/ray/tune/... rllib/... doc/...


# This currently takes ~3 hours and times out often.
# Enable this when ARM debug wheels are actually needed (and look into speeding this up).

#- label: ":mechanical_arm: :ferris_wheel: ARM64 Debug Wheels"
# conditions:
# [
# "RAY_CI_LINUX_WHEELS_AFFECTED",
# ]
# instance_size: arm64-medium
# commands:
# # Build the debug wheels
# - RAY_DEBUG_BUILD=debug LINUX_WHEELS=1 ./ci/ci.sh build
# # Upload the wheels.
# # We don't want to push on PRs, in fact, the copy_files will fail because unauthenticated.
# - if [ "$BUILDKITE_PULL_REQUEST" != "false" ]; then exit 0; fi
# - pip install -q docker aws_requests_auth boto3
# - ./ci/env/env_info.sh
# # Upload to branch directory.
# - python .buildkite/copy_files.py --destination branch_wheels --path ./.whl
# # Upload to latest directory.
# - if [ "$BUILDKITE_BRANCH" == "master" ]; then python .buildkite/copy_files.py --destination wheels --path ./.whl; fi
17 changes: 13 additions & 4 deletions .buildkite/pipeline.build.yml
Original file line number Diff line number Diff line change
@@ -200,7 +200,9 @@
instance_size: medium
commands:
- cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi }; trap cleanup EXIT
- bazel test --config=ci --config=ubsan $(./ci/run/bazel_export_options)
# Unset CC CXX vars set in Dockerfile. Clang currently runs into problems with ubsan builds, this will revert to
# using GCC instead.
- unset CC CXX && bazel test --config=ci --config=ubsan $(./ci/run/bazel_export_options)
--build_tests_only
--jobs=2
-- //:all -//:core_worker_test -//:logging_test -//:ray_syncer_test
@@ -215,9 +217,8 @@
--jobs=2
-- //:all -//:core_worker_test -//:event_test -//:gcs_actor_manager_test
-//:gcs_placement_group_manager_test -//:gcs_placement_group_scheduler_test
-//:gcs_server_rpc_test -//:gcs_client_test -//:gcs_heartbeat_manager_test
-//:metric_exporter_client_test -//:stats_test -//:worker_pool_test
-//:ray_syncer_test
-//:gcs_server_rpc_test -//:gcs_client_test -//:metric_exporter_client_test
-//:stats_test -//:worker_pool_test -//:ray_syncer_test

- label: ":serverless: Dashboard Tests"
conditions:
@@ -338,6 +339,14 @@
- ./ci/ci.sh test_minimal 3.10
- ./ci/ci.sh test_latest_core_dependencies 3.10

- label: ":python: Minimal install 3.11"
conditions: ["RAY_CI_PYTHON_AFFECTED"]
instance_size: medium
commands:
- cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi }; trap cleanup EXIT
- ./ci/ci.sh test_minimal 3.11
- ./ci/ci.sh test_latest_core_dependencies 3.11

- label: ":python: Default install"
conditions: ["RAY_CI_PYTHON_AFFECTED"]
instance_size: small
3 changes: 2 additions & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -70,6 +70,7 @@
# Ray data.
/python/ray/data/ @ericl @scv119 @clarkzinzow @jjyao @jianoaix @c21
/python/ray/data/preprocessors/ @clarkzinzow @jiaodong @Yard1 @bveeramani @matthewdeng @amogkam
/python/ray/data/tests/preprocessors/ @clarkzinzow @jiaodong @Yard1 @bveeramani @matthewdeng @amogkam
/doc/source/data/ @ericl @scv119 @clarkzinzow @jjyao @jianoaix @maxpumperla @c21 @ray-project/ray-docs

# Ray workflows.
@@ -93,7 +94,7 @@
/doc/source/serve/ @edoakes @simon-mo @jiaodong @shrekris-anyscale @sihanwang41 @architkulkarni @ray-project/ray-docs

# AIR (docs)
/doc/source/air/ @richardliaw @gjoliver @krfricke @xwjiang2010 @amogkam @matthewdeng @Yard1 @maxpumperla @ray-project/ray-docs
/doc/source/ray-air/ @richardliaw @gjoliver @krfricke @xwjiang2010 @amogkam @matthewdeng @Yard1 @maxpumperla @ray-project/ray-docs

# ML Docker Dependencies
/python/requirements/ml/requirements_dl.txt @amogkam @sven1977 @richardliaw @matthewdeng
7 changes: 3 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -200,10 +200,6 @@ tools/prometheus*
project-id
.mypy_cache/

# gitpod cache related
.pip-cache/
.bazel-cache/

# release test related
.anyscale.yaml
test_state.json
@@ -224,3 +220,6 @@ workflow_data/
/compile_commands.json
# Directory where clangd puts its indexing work
/.cache/

# Auto-generated tag mapping
tag-mapping.json
16 changes: 0 additions & 16 deletions .gitpod.yml

This file was deleted.

23 changes: 0 additions & 23 deletions .gitpod/Dockerfile

This file was deleted.

11 changes: 0 additions & 11 deletions BUILD.bazel
Original file line number Diff line number Diff line change
@@ -934,17 +934,6 @@ cc_test(
],
)

cc_test(
name = "gcs_heartbeat_manager_test",
srcs = ["src/ray/gcs/gcs_server/test/gcs_heartbeat_manager_test.cc"],
copts = COPTS,
tags = ["team:core"],
deps = [
":gcs_server_lib",
"@com_google_googletest//:gtest_main",
],
)

cc_test(
name = "dependency_resolver_test",
size = "small",
4 changes: 2 additions & 2 deletions bazel/ray_deps_setup.bzl
Original file line number Diff line number Diff line change
@@ -194,8 +194,8 @@ def ray_deps_setup():
auto_http_archive(
name = "cython",
build_file = True,
url = "https://github.com/cython/cython/archive/3028e8c7ac296bc848d996e397c3354b3dbbd431.tar.gz",
sha256 = "31ea23c2231ddee8572a2a5effd54952e16a1b44e9a4cb3eb645418f8accf20d",
url = "https://github.com/cython/cython/archive/c48361d0a0969206e227ec016f654c9d941c2b69.tar.gz",
sha256 = "37c466fea398da9785bc37fe16f1455d2645d21a72e402103991d9e2fa1c6ff3",
)

auto_http_archive(
7 changes: 4 additions & 3 deletions ci/build/build-docker-images.py
Original file line number Diff line number Diff line change
@@ -43,8 +43,9 @@
"cu112": "nvidia/cuda:11.2.0-cudnn8-devel-ubuntu20.04",
"cu111": "nvidia/cuda:11.1.1-cudnn8-devel-ubuntu20.04",
"cu110": "nvidia/cuda:11.0.3-cudnn8-devel-ubuntu20.04",
"cu102": "nvidia/cuda:10.2-cudnn8-devel-ubuntu20.04",
"cu101": "nvidia/cuda:10.1-cudnn8-devel-ubuntu20.04",
# there is no ubuntu20.04 image for cuda 10.2 and 10.1
"cu102": "nvidia/cuda:10.2-cudnn8-devel-ubuntu18.04",
"cu101": "nvidia/cuda:10.1-cudnn8-devel-ubuntu18.04",
"cpu": "ubuntu:focal",
}

@@ -619,7 +620,7 @@ def push_readmes(merge_build: bool):
default="py37",
nargs="*",
help="Which python versions to build. "
"Must be in (py36, py37, py38, py39, py310)",
"Must be in (py36, py37, py38, py39, py310, py311)",
)
parser.add_argument(
"--device-types",
3 changes: 2 additions & 1 deletion ci/build/test-wheels.sh
Original file line number Diff line number Diff line change
@@ -100,7 +100,8 @@ elif [[ "$platform" == "macosx" ]]; then
"3.7"
"3.8"
"3.9"
"3.10")
"3.10"
)

for ((i=0; i<${#PY_MMS[@]}; ++i)); do
PY_MM="${PY_MMS[i]}"
10 changes: 6 additions & 4 deletions ci/ci.sh
Original file line number Diff line number Diff line change
@@ -414,8 +414,7 @@ validate_wheels_commit_str() {
continue
fi

folder=${basename%%-cp*}
WHL_COMMIT=$(unzip -p "$whl" "${folder}.data/purelib/ray/__init__.py" | grep "__commit__" | awk -F'"' '{print $2}')
WHL_COMMIT=$(unzip -p "$whl" | grep "^__commit__" | awk -F'"' '{print $2}')

if [ "${WHL_COMMIT}" != "${EXPECTED_COMMIT}" ]; then
echo "Error: Observed wheel commit (${WHL_COMMIT}) is not expected commit (${EXPECTED_COMMIT}). Aborting."
@@ -455,11 +454,14 @@ build_wheels() {
-e "RAY_DEBUG_BUILD=${RAY_DEBUG_BUILD:-}"
)

IMAGE_NAME="quay.io/pypa/manylinux2014_${HOSTTYPE}"
IMAGE_TAG="2022-12-20-b4884d9"

if [ -z "${BUILDKITE-}" ]; then
# This command should be kept in sync with ray/python/README-building-wheels.md,
# except the "${MOUNT_BAZEL_CACHE[@]}" part.
docker run --rm -w /ray -v "${PWD}":/ray "${MOUNT_BAZEL_CACHE[@]}" \
quay.io/pypa/manylinux2014_x86_64:2021-11-07-28723f3 /ray/python/build-wheel-manylinux2014.sh
"${IMAGE_NAME}:${IMAGE_TAG}" /ray/python/build-wheel-manylinux2014.sh
else
rm -rf /ray-mount/*
rm -rf /ray-mount/.whl || true
@@ -469,7 +471,7 @@ build_wheels() {
docker run --rm -v /ray:/ray-mounted ubuntu:focal ls /
docker run --rm -v /ray:/ray-mounted ubuntu:focal ls /ray-mounted
docker run --rm -w /ray -v /ray:/ray "${MOUNT_BAZEL_CACHE[@]}" \
quay.io/pypa/manylinux2014_x86_64:2021-11-07-28723f3 /ray/python/build-wheel-manylinux2014.sh
"${IMAGE_NAME}:${IMAGE_TAG}" /ray/python/build-wheel-manylinux2014.sh
cp -rT /ray-mount /ray # copy new files back here
find . | grep whl # testing

4 changes: 3 additions & 1 deletion ci/docker/base.test.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM ubuntu:focal
ARG DOCKER_IMAGE_BASE_UBUNTU=ubuntu:focal
FROM $DOCKER_IMAGE_BASE_UBUNTU

ARG REMOTE_CACHE_URL
ARG BUILDKITE_PULL_REQUEST
@@ -33,6 +34,7 @@ RUN apt-get install -y -qq \
sudo unzip unrar apt-utils dialog tzdata wget rsync \
language-pack-en tmux cmake gdb vim htop \
libgtk2.0-dev zlib1g-dev libgl1-mesa-dev \
liblz4-dev libunwind-dev libncurses5 \
clang-format-12 jq \
clang-tidy-12 clang-12
# Make using GCC 9 explicit.
6 changes: 4 additions & 2 deletions ci/docker/build.Dockerfile
Original file line number Diff line number Diff line change
@@ -9,6 +9,9 @@ ENV BUILDKITE_PULL_REQUEST=${BUILDKITE_PULL_REQUEST}
ENV BUILDKITE_COMMIT=${BUILDKITE_COMMIT}
ENV BUILDKITE_PULL_REQUEST_BASE_BRANCH=${BUILDKITE_PULL_REQUEST_BASE_BRANCH}
ENV TRAVIS_COMMIT=${BUILDKITE_COMMIT}
# Set compiler here to build Ray with CLANG/LLVM
ENV CC=clang
ENV CXX=clang++-12

# Move out of working dir /ray
# Delete stale data
@@ -25,9 +28,8 @@ RUN env

# init also calls install-dependencies.sh
RUN BUILD=1 bash --login -i ./ci/ci.sh init
RUN bash --login -i ./ci/ci.sh build

RUN export CC=clang CXX=clang++-12
RUN bash --login -i ./ci/ci.sh build

# Run determine test to run
RUN bash --login -i -c "python ./ci/pipeline/determine_tests_to_run.py --output=json > affected_set.json"
54 changes: 44 additions & 10 deletions ci/env/install-bazel.sh
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ ROOT_DIR=$(cd "$(dirname "$0")/$(dirname "$(test -L "$0" && readlink "$0" || ech

arg1="${1-}"

achitecture="${HOSTTYPE}"

platform="unknown"
case "${OSTYPE}" in
msys)
@@ -26,6 +26,9 @@ case "${OSTYPE}" in
exit 1
esac

architecture="${HOSTTYPE}"
echo "Architecture is $architecture"

if [ "${BAZEL_CONFIG_ONLY-}" != "1" ]; then
# Sanity check: Verify we have symlinks where we expect them, or Bazel can produce weird "missing input file" errors.
# This is most likely to occur on Windows, where symlinks are sometimes disabled by default.
@@ -50,26 +53,57 @@ if [ "${BAZEL_CONFIG_ONLY-}" != "1" ]; then
if [ "${OSTYPE}" = "msys" ]; then
target="${MINGW_DIR-/usr}/bin/bazel.exe"
mkdir -p "${target%/*}"
curl -f -s -L -R -o "${target}" "https://github.com/bazelbuild/bazel/releases/download/${version}/bazel-${version}-${platform}-${achitecture}.exe"
curl -f -s -L -R -o "${target}" "https://github.com/bazelbuild/bazel/releases/download/${version}/bazel-${version}-${platform}-${architecture}.exe"
else
target="./install.sh"
curl -f -s -L -R -o "${target}" "https://github.com/bazelbuild/bazel/releases/download/${version}/bazel-${version}-installer-${platform}-${achitecture}.sh"
chmod +x "${target}"

# Buildkite mac instances
if [[ -n "${BUILDKITE-}" ]] && [ "${platform}" = "darwin" ]; then
"${target}" --user
mkdir -p "$HOME/bin"
# Add bazel to the path.
# shellcheck disable=SC2016
printf '\nexport PATH="$HOME/bin:$PATH"\n' >> ~/.zshenv
# shellcheck disable=SC1090
source ~/.zshenv
INSTALL_USER=1
# Buildkite linux instance
elif [ "${CI-}" = true ] || [ "${arg1-}" = "--system" ]; then
"$(command -v sudo || echo command)" "${target}" > /dev/null # system-wide install for CI
INSTALL_USER=0
# User
else
"${target}" --user > /dev/null
mkdir -p "$HOME/bin"
INSTALL_USER=1
export PATH=$PATH:"$HOME/bin"
fi
which bazel
rm -f "${target}"

if [ "${architecture}" = "aarch64" ]; then
# architecture is "aarch64", but the bazel tag is "arm64"
url="https://github.com/bazelbuild/bazel/releases/download/${version}/bazel-${version}-${platform}-arm64"

if [ "$INSTALL_USER" = "1" ]; then
target="$HOME/bin/bazel"
curl -f -s -L -R -o "${target}" "${url}"
chmod +x "${target}"
else
target="/bin/bazel"
sudo curl -f -s -L -R -o "${target}" "${url}"
sudo chmod +x "${target}"
fi

which bazel

else
target="./install.sh"
curl -f -s -L -R -o "${target}" "https://github.com/bazelbuild/bazel/releases/download/${version}/bazel-${version}-installer-${platform}-${architecture}.sh"
chmod +x "${target}"

if [ "$INSTALL_USER" = "1" ]; then
"${target}" --user
else
"$(command -v sudo || echo command)" "${target}" > /dev/null # system-wide install for CI
fi
which bazel
rm -f "${target}"
fi
fi
fi

Loading