diff --git a/.github/workflows/e2e-subtensor-tests.yaml b/.github/workflows/e2e-subtensor-tests.yaml index c656186a1b..13c6bbe2f8 100644 --- a/.github/workflows/e2e-subtensor-tests.yaml +++ b/.github/workflows/e2e-subtensor-tests.yaml @@ -49,10 +49,10 @@ jobs: run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin - name: Pull Docker Image - run: docker pull ghcr.io/opentensor/subtensor-localnet:latest + run: docker pull ghcr.io/opentensor/subtensor-localnet:devnet-ready - name: Save Docker Image to Cache - run: docker save -o subtensor-localnet.tar ghcr.io/opentensor/subtensor-localnet:latest + run: docker save -o subtensor-localnet.tar ghcr.io/opentensor/subtensor-localnet:devnet-ready - name: Upload Docker Image as Artifact uses: actions/upload-artifact@v4 diff --git a/tests/e2e_tests/conftest.py b/tests/e2e_tests/conftest.py index f552a57a4e..d1c6813147 100644 --- a/tests/e2e_tests/conftest.py +++ b/tests/e2e_tests/conftest.py @@ -19,6 +19,8 @@ setup_wallet, ) +LOCALNET_IMAGE_NAME = "ghcr.io/opentensor/subtensor-localnet:devnet-ready" + def wait_for_node_start(process, timestamp=None): """Waits for node to start in the docker.""" @@ -132,6 +134,7 @@ def is_docker_running(): stderr=subprocess.DEVNULL, check=True, ) + subprocess.run(["docker", "pull", LOCALNET_IMAGE_NAME], check=True) return True except subprocess.CalledProcessError: return False @@ -162,7 +165,6 @@ def try_start_docker(): return False container_name = f"test_local_chain_{str(time.time()).replace(".", "_")}" - image_name = "ghcr.io/opentensor/subtensor-localnet:devnet-ready" # Command to start container cmds = [ @@ -175,7 +177,7 @@ def try_start_docker(): "9944:9944", "-p", "9945:9945", - image_name, + LOCALNET_IMAGE_NAME, params, ]