Skip to content

Commit b3b22cd

Browse files
committed
chore(ci): include py version in stack and cache lock
1 parent 8528a3e commit b3b22cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/e2e/utils/infrastructure.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class PythonVersion(Enum):
4141
class BaseInfrastructure(ABC):
4242
def __init__(self, feature_name: str, handlers_dir: Path, layer_arn: str = "") -> None:
4343
self.feature_name = feature_name
44-
self.stack_name = f"test-{feature_name}-{uuid4()}"
44+
self.stack_name = f"test{PYTHON_RUNTIME_VERSION}-{feature_name}-{uuid4()}"
4545
self.handlers_dir = handlers_dir
4646
self.layer_arn = layer_arn
4747
self.stack_outputs: Dict[str, str] = {}
@@ -249,7 +249,7 @@ def deploy_once(
249249
else:
250250
# tmp dir shared by all workers
251251
root_tmp_dir = tmp_path_factory.getbasetemp().parent
252-
cache = root_tmp_dir / "cache.json"
252+
cache = root_tmp_dir / f"{PYTHON_RUNTIME_VERSION}_cache.json"
253253

254254
with FileLock(f"{cache}.lock"):
255255
# If cache exists, return stack outputs back

0 commit comments

Comments
 (0)