diff --git a/Dockerfile b/Dockerfile index 8134f99..91f3fe8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -38,7 +38,7 @@ ARG NODE_HOME=/opt/$NODE_PACKAGE ENV NODE_PATH $NODE_HOME/lib/node_modules ENV PATH $NODE_HOME/bin:$PATH RUN --mount=type=cache,target=/cache/downloads \ - curl https://nodejs.org/dist/v$NODE_VERSION/$NODE_PACKAGE.tar.gz -o /cache/downloads/$NODE_PACKAGE.tar.gz \ + curl --retry 3 https://nodejs.org/dist/v$NODE_VERSION/$NODE_PACKAGE.tar.gz -o /cache/downloads/$NODE_PACKAGE.tar.gz \ && tar -xzC /opt/ -f /cache/downloads/$NODE_PACKAGE.tar.gz RUN --mount=type=cache,target=/root/.cache/uv \ diff --git a/tests/kuberay/conftest.py b/tests/kuberay/conftest.py index 9fe7d0e..9ee0be3 100644 --- a/tests/kuberay/conftest.py +++ b/tests/kuberay/conftest.py @@ -10,6 +10,7 @@ import pytest_cases from pytest_kubernetes.options import ClusterOptions from pytest_kubernetes.providers import AClusterManager, select_provider_manager +from tenacity import retry, stop_after_attempt, wait_random_exponential from tests import ROOT_DIR @@ -30,6 +31,10 @@ def kuberay_helm_repo(): @pytest.fixture(scope="session") +@retry( + stop=stop_after_attempt(3), + wait=wait_random_exponential(multiplier=1, max=10), +) def dagster_ray_image(): """ Either returns the image name from the environment variable PYTEST_DAGSTER_RAY_IMAGE