From 0e79df35699c2a2f744876cc669ed1a75f49e7ad Mon Sep 17 00:00:00 2001 From: aaron-congo Date: Thu, 3 Jul 2025 14:52:22 -0700 Subject: [PATCH] fix: use poetry 1.8.5 for tests to fix incompatibility with python 3.8 --- .../src/test/java/integration/util/ContainerHelper.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/integration/host/src/test/java/integration/util/ContainerHelper.java b/tests/integration/host/src/test/java/integration/util/ContainerHelper.java index 481050452..817bd2eb4 100644 --- a/tests/integration/host/src/test/java/integration/util/ContainerHelper.java +++ b/tests/integration/host/src/test/java/integration/util/ContainerHelper.java @@ -231,7 +231,9 @@ public T withFixedExposedPort(int hostPort, int containerPort) { .run("mkdir", "app") .workDir("/app") .run("curl", "-sSL", "https://install.python-poetry.org", "--output", "/app/poetry.py") - .run("python3", "/app/poetry.py") + // Version 1.8.5 of poetry is the last version to support python 3.8. Attempting to install a + // newer version of poetry with python 3.8 will result in an error. + .run("python3", "/app/poetry.py", "--version", "1.8.5") .env("PATH", "${PATH}:/root/.local/bin") .entryPoint("/bin/sh -c \"while true; do sleep 30; done;\"") .expose(5005) @@ -247,7 +249,9 @@ public T withFixedExposedPort(int hostPort, int containerPort) { .run("mkdir", "app") .workDir("/app") .run("curl", "-sSL", "https://install.python-poetry.org", "--output", "/app/poetry.py") - .run("python3", "/app/poetry.py") + // Version 1.8.5 of poetry is the last version to support python 3.8. Attempting to install a + // newer version of poetry with python 3.8 will result in an error. + .run("python3", "/app/poetry.py", "--version", "1.8.5") .env("PATH", "${PATH}:/root/.local/bin") .entryPoint("/bin/sh -c \"while true; do sleep 30; done;\"") ).build()));