Skip to content

Commit ad8d415

Browse files
committed
merge
2 parents 248121a + 3303af5 commit ad8d415

File tree

3 files changed

+1
-11
lines changed

3 files changed

+1
-11
lines changed

src/forge/controller/provisioner.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
# This source code is licensed under the BSD-style license found in the
55
# LICENSE file in the root directory of this source tree.
66

7-
from forge.env import MONARCH_HOSTMESH_V1
8-
97
"""Remote and local resource manager for allocation and provisioning."""
108
import asyncio
119
import functools
@@ -22,7 +20,7 @@
2220

2321
from forge.controller.launcher import BaseLauncher, get_launcher
2422

25-
from forge.env import all_env_vars, FORGE_DISABLE_METRICS
23+
from forge.env import all_env_vars, FORGE_DISABLE_METRICS, MONARCH_HOSTMESH_V1
2624

2725
from forge.types import ProcessConfig, ProvisionerConfig
2826

src/forge/env.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
"""Centralized constants for environment variable names used in the project."""
88

9-
import functools
109
import os
1110
from dataclasses import dataclass
1211
from typing import Any
@@ -113,7 +112,6 @@ def get_value(self) -> Any:
113112
)
114113

115114

116-
@functools.cache
117115
def all_env_vars() -> list[EnvVar]:
118116
"""Retrieves all registered environment variable names."""
119117
env_vars = []

tests/unit_tests/test_env_constants.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,6 @@ def test_all_env_vars_contains_expected_constants(self):
109109
assert "FORGE_DISABLE_METRICS" in env_var_names
110110
assert "MONARCH_STDERR_LOG" in env_var_names
111111

112-
def test_all_env_vars_is_cached(self):
113-
"""Test that all_env_vars uses caching."""
114-
first_call = all_env_vars()
115-
second_call = all_env_vars()
116-
assert first_call is second_call
117-
118112
def test_all_env_vars_can_iterate_and_get_values(self):
119113
"""Test that all_env_vars can be used to iterate and get values."""
120114
for env_var in all_env_vars():

0 commit comments

Comments
 (0)