Skip to content

Commit 395632c

Browse files
authored
Fix typos in code comments (#63612)
Tiny typo fixes in code comments across a few files: - `usefull` -> `useful` in [vsphere/cluster_operator_client.py](python/ray/autoscaler/_private/vsphere/cluster_operator_client.py) - `propogate` -> `propagate` in [test_client.py](python/ray/tests/test_client.py), [logsclient.py](python/ray/util/client/logsclient.py), [server.py](python/ray/util/client/server/server.py) - `persistance` -> `persistence` in [test_metrics_logger.py](rllib/utils/metrics/tests/test_metrics_logger.py) - `happend` -> `happened` in [test_actor_manager.py](rllib/utils/tests/test_actor_manager.py) Comments only, no behavior change. Signed-off-by: whoami <arseniy.kdev@gmail.com>
1 parent 0c5715f commit 395632c

6 files changed

Lines changed: 6 additions & 6 deletions

File tree

python/ray/autoscaler/_private/vsphere/cluster_operator_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def __init__(self, ca_cert: str, api_server: str):
5757
token = SERVICE_ACCOUNT_TOKEN
5858
# If SERVICE_ACCOUNT_TOKEN not present, use local
5959
# ~/.kube/config file. Active context will be used.
60-
# This is usefull when Ray CLI are used and local autoscaler needs
60+
# This is useful when Ray CLI are used and local autoscaler needs
6161
# communicate with the k8s API server
6262
# If the token is present then use that for communication.
6363
if not token:

python/ray/tests/test_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ def test_log(level, msg):
471471

472472
ray.worker.log_client.log = test_log
473473
ray.worker.log_client.set_logstream_level(logging.DEBUG)
474-
# Allow some time to propogate
474+
# Allow some time to propagate
475475
time.sleep(1)
476476
x = ray.put("Foo")
477477
assert ray.get(x) == "Foo"

python/ray/util/client/logsclient.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
logger = logging.getLogger(__name__)
2121
# TODO(barakmich): Running a logger in a logger causes loopback.
2222
# The client logger need its own root -- possibly this one.
23-
# For the moment, let's just not propogate beyond this point.
23+
# For the moment, let's just not propagate beyond this point.
2424
logger.propagate = False
2525

2626

python/ray/util/client/server/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def wrapper(self, request, context):
7878
cached_entry = response_cache.check_cache(thread_id, req_id)
7979
if cached_entry is not None:
8080
if isinstance(cached_entry, Exception):
81-
# Original call errored, propogate error
81+
# Original call errored, propagate error
8282
context.set_code(grpc.StatusCode.FAILED_PRECONDITION)
8383
context.set_details(str(cached_entry))
8484
raise cached_entry

rllib/utils/metrics/tests/test_metrics_logger.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ def test_edge_cases(root_logger):
511511
with pytest.raises(ValueError):
512512
root_logger.log_value("invalid_window_ema", 0.1, window=2, ema_coeff=0.1)
513513

514-
# Test value persistance after reduce
514+
# Test value persistence after reduce
515515
root_logger.log_value("clear_test", 0.1)
516516
root_logger.log_value("clear_test", 0.2)
517517
results = root_logger.reduce()

rllib/utils/tests/test_actor_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ def test_sync_call_fire_and_forget(self):
184184
).ignore_errors()
185185
]
186186

187-
# Results from blocking calls show the # of calls happend on
187+
# Results from blocking calls show the # of calls happened on
188188
# each remote actor. 11 calls to each actor in total.
189189
self.assertEqual(results2, [11, 11, 11, 11])
190190

0 commit comments

Comments
 (0)