Skip to content

Commit d50650c

Browse files
committed
fix(cloud-build): correct misspelled TEMPORAL_CONSTRAINTS constant
Rename the module-level constant TEMPORAL_CONSTAINTS to TEMPORAL_CONSTRAINTS in tools/cloud-build/provision/list_tests.py (its definition and single use). No behavior change.
1 parent cc7c883 commit d50650c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tools/cloud-build/provision/list_tests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050

5151

5252
# Test that shouldn't be scheduled too close to each other
53-
TEMPORAL_CONSTAINTS = [
53+
TEMPORAL_CONSTRAINTS = [
5454
# (set_of_tests, min_distance)
5555
((
5656
"ml-a4-highgpu-onspot-slurm",
@@ -98,7 +98,7 @@ def schedule_evenly(builds: list[str], start: int, end: int) -> dict[str, int]:
9898

9999

100100
def check_resource_constraints(schedule: dict[str, int]) -> bool:
101-
for tests, min_distance in TEMPORAL_CONSTAINTS:
101+
for tests, min_distance in TEMPORAL_CONSTRAINTS:
102102
for a, b in itertools.combinations(tests, 2):
103103
if abs(schedule[a] - schedule[b]) < min_distance:
104104
return False

0 commit comments

Comments
 (0)