diff --git a/BUILD.bazel b/BUILD.bazel index 76c3f80e6e2fb..a411b394f4e6b 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -21,7 +21,7 @@ package( default_visibility = ["//visibility:public"], ) -# Hermetic python envionment, currently only used for CI infra and scripts. +# Hermetic python environment, currently only used for CI infra and scripts. py_runtime( name = "python3_runtime", diff --git a/ci/docker/ml.build.Dockerfile b/ci/docker/ml.build.Dockerfile index 6b8d42f99fbd2..05af07ec8cc91 100644 --- a/ci/docker/ml.build.Dockerfile +++ b/ci/docker/ml.build.Dockerfile @@ -19,7 +19,7 @@ set -euo pipefail set -x if [[ "${PYTHON-}" == "3.12" ]]; then - # hebo and doc test depdencies are not needed for 3.12 test jobs + # hebo and doc test dependencies are not needed for 3.12 test jobs TRAIN_TESTING=1 TUNE_TESTING=1 DATA_PROCESSING_TESTING=1 \ INSTALL_HDFS=1 ./ci/env/install-dependencies.sh else diff --git a/ci/env/install-core-prerelease-dependencies.sh b/ci/env/install-core-prerelease-dependencies.sh index 55ba3b1e55f99..9f0c55afae57c 100755 --- a/ci/env/install-core-prerelease-dependencies.sh +++ b/ci/env/install-core-prerelease-dependencies.sh @@ -3,7 +3,7 @@ set -e # install all unbounded dependencies in setup.py for ray core -# TOOD(scv119) reenable grpcio once https://github.com/grpc/grpc/issues/31885 is fixed. -# TOOD(scv119) reenable jsonschema once https://github.com/ray-project/ray/issues/33411 is fixed. +# TODO(scv119) reenable grpcio once https://github.com/grpc/grpc/issues/31885 is fixed. +# TODO(scv119) reenable jsonschema once https://github.com/ray-project/ray/issues/33411 is fixed. DEPS=(aiosignal frozenlist requests protobuf) python -m pip install -U --pre --upgrade-strategy=eager "${DEPS[@]}" diff --git a/ci/lint/check-banned-words.sh b/ci/lint/check-banned-words.sh index 18131d9da3989..460635b5ac993 100755 --- a/ci/lint/check-banned-words.sh +++ b/ci/lint/check-banned-words.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -# Checks Python and doc files for common mispellings. +# Checks Python and doc files for common misspellings. BANNED_WORDS="RLLib Rllib Kuberay" diff --git a/ci/lint/check_import_order.py b/ci/lint/check_import_order.py index ce73f639e6f9c..2f1b5f84c1d8b 100644 --- a/ci/lint/check_import_order.py +++ b/ci/lint/check_import_order.py @@ -57,7 +57,7 @@ def check_import(file): parser.add_argument("path", help="File path to check. e.g. '.' or './src'") # TODO(simon): For the future, consider adding a feature to explicitly # white-list the path instead of skipping them. - parser.add_argument("-s", "--skip", action="append", help="Skip certian directory") + parser.add_argument("-s", "--skip", action="append", help="Skip certain directory") args = parser.parse_args() file_path = Path(args.path) diff --git a/cpp/include/ray/api.h b/cpp/include/ray/api.h index e7378ba9d0eec..a911813c7be69 100644 --- a/cpp/include/ray/api.h +++ b/cpp/include/ray/api.h @@ -79,7 +79,7 @@ std::vector> Get(const std::vector> &object /// This method will be blocked until the object is ready. /// /// \param[in] object The object reference which should be returned. -/// \param[in] timeout_ms The maximum amount of time in miliseconds to wait before +/// \param[in] timeout_ms The maximum amount of time in milliseconds to wait before /// returning. /// \return shared pointer of the result. template @@ -89,7 +89,7 @@ std::shared_ptr Get(const ray::ObjectRef &object, const int &timeout_ms); /// This method will be blocked until all the objects are ready. /// /// \param[in] objects The object array which should be got. -/// \param[in] timeout_ms The maximum amount of time in miliseconds to wait before +/// \param[in] timeout_ms The maximum amount of time in milliseconds to wait before /// returning. /// \return shared pointer array of the result. template diff --git a/cpp/include/ray/api/object_ref.h b/cpp/include/ray/api/object_ref.h index bd3c24fe32317..b23fedcf38aea 100644 --- a/cpp/include/ray/api/object_ref.h +++ b/cpp/include/ray/api/object_ref.h @@ -106,7 +106,7 @@ class ObjectRef { /// Get the object from the object store. /// This method will be blocked until the object is ready. /// - /// \param timeout_ms The maximum amount of time in miliseconds to wait before + /// \param timeout_ms The maximum amount of time in milliseconds to wait before /// returning. /// \return shared pointer of the result. std::shared_ptr Get(const int &timeout_ms) const; @@ -207,7 +207,7 @@ class ObjectRef { /// Get the object from the object store. /// This method will be blocked until the object is ready. /// - /// \param timeout_ms The maximum amount of time in miliseconds to wait before + /// \param timeout_ms The maximum amount of time in milliseconds to wait before /// returning. /// \return shared pointer of the result. void Get(const int &timeout_ms) const { diff --git a/cpp/src/ray/runtime/task/local_mode_task_submitter.cc b/cpp/src/ray/runtime/task/local_mode_task_submitter.cc index f1155dab1b4d4..ec628f1f3cacc 100644 --- a/cpp/src/ray/runtime/task/local_mode_task_submitter.cc +++ b/cpp/src/ray/runtime/task/local_mode_task_submitter.cc @@ -34,7 +34,7 @@ ObjectID LocalModeTaskSubmitter::Submit(InvocationSpec &invocation, const ActorCreationOptions &options) { /// TODO(SongGuyang): Make the information of TaskSpecification more reasonable /// We just reuse the TaskSpecification class and make the single process mode work. - /// Maybe some infomation of TaskSpecification are not reasonable or invalid. + /// Maybe some information of TaskSpecification are not reasonable or invalid. /// We will enhance this after implement the cluster mode. auto functionDescriptor = FunctionDescriptorBuilder::BuildCpp( invocation.remote_function_holder.function_name); diff --git a/cpp/src/ray/test/examples/metric_example.cc b/cpp/src/ray/test/examples/metric_example.cc index ffba2ac8b3fb0..f14938a33ed23 100644 --- a/cpp/src/ray/test/examples/metric_example.cc +++ b/cpp/src/ray/test/examples/metric_example.cc @@ -26,7 +26,7 @@ void test_metric(const std::string &exec_type, int total_time) { ray::Gauge gauge("ray_test_gauge", "test gauge", "unit", {"tag1", "tag2"}); ray::Counter counter("ray_test_counter", "test counter", "unit", {"tag1", "tag2"}); ray::Histogram histogram( - "ray_test_histogram", "test hitogram", "unit", {1, 10}, {"tag1", "tag2"}); + "ray_test_histogram", "test histogram", "unit", {1, 10}, {"tag1", "tag2"}); ray::Sum sum("ray_test_sum", "test sum", "unit", {"tag1", "tag2"}); std::unordered_map tag_1 = {{"tag1", "increasing"}, diff --git a/java/api/src/main/java/io/ray/api/ObjectRef.java b/java/api/src/main/java/io/ray/api/ObjectRef.java index 202b47cf706d0..9be2f50c32943 100644 --- a/java/api/src/main/java/io/ray/api/ObjectRef.java +++ b/java/api/src/main/java/io/ray/api/ObjectRef.java @@ -17,7 +17,7 @@ public interface ObjectRef { * Fetch the object from the object store, this method will block until the object is locally * available. * - * @param timeoutMs The maximum amount of time in miliseconds to wait before returning. + * @param timeoutMs The maximum amount of time in milliseconds to wait before returning. * @throws RayTimeoutException If it's timeout to get the object. */ T get(long timeoutMs); diff --git a/java/api/src/main/java/io/ray/api/Ray.java b/java/api/src/main/java/io/ray/api/Ray.java index a6be0cd0469f7..09c6a37de82b3 100644 --- a/java/api/src/main/java/io/ray/api/Ray.java +++ b/java/api/src/main/java/io/ray/api/Ray.java @@ -80,7 +80,7 @@ public static ObjectRef put(T obj, BaseActorHandle owner) { * Get an object by `ObjectRef` from the object store. * * @param objectRef The reference of the object to get. - * @param timeoutMs The maximum amount of time in miliseconds to wait before returning. + * @param timeoutMs The maximum amount of time in milliseconds to wait before returning. * @return The Java object. * @throws RayTimeoutException If it's timeout to get the object. */ @@ -102,7 +102,7 @@ public static T get(ObjectRef objectRef) { * Get a list of objects by `ObjectRef`s from the object store. * * @param objectList A list of object references. - * @param timeoutMs The maximum amount of time in miliseconds to wait before returning. + * @param timeoutMs The maximum amount of time in milliseconds to wait before returning. * @return A list of Java objects. * @throws RayTimeoutException If it's timeout to get the object. */