From 55fbda511310c094675dca7ff45131006083df66 Mon Sep 17 00:00:00 2001 From: Al Date: Wed, 22 May 2024 05:38:39 +0200 Subject: [PATCH] fix: remove ConsensusProtocol = future; unpin algod (#505) --- src/algokit/core/sandbox.py | 3 +-- tests/localnet/conftest.py | 2 +- ...th_existing_sandbox_with_out_of_date_config.approved.txt | 6 +++--- ...ith_existing_sandbox_with_up_to_date_config.approved.txt | 4 ++-- ...est_localnet_reset_without_existing_sandbox.approved.txt | 2 +- tests/localnet/test_localnet_start.py | 2 +- ...net_start.test_localnet_img_check_cmd_error.approved.txt | 4 ++-- .../test_localnet_start.test_localnet_start.approved.txt | 6 +++--- ..._localnet_start.test_localnet_start_failure.approved.txt | 4 ++-- ...start.test_localnet_start_health_bad_status.approved.txt | 6 +++--- ...et_start.test_localnet_start_health_failure.approved.txt | 6 +++--- ...localnet_start.test_localnet_start_out_date.approved.txt | 4 ++-- ....test_localnet_start_out_of_date_definition.approved.txt | 4 ++-- ...t_out_of_date_definition_and_missing_config.approved.txt | 4 ++-- ...t.test_localnet_start_up_to_date_definition.approved.txt | 4 ++-- ...et_start_with_gitpod_docker_compose_version.approved.txt | 4 ++-- ...ocalnet_start.test_localnet_start_with_name.approved.txt | 6 +++--- ...art_with_unparseable_docker_compose_version.approved.txt | 4 ++-- ...st_sandbox.test_algod_network_template_json.approved.txt | 1 - .../test_sandbox.test_get_docker_compose_yml.approved.txt | 2 +- 20 files changed, 38 insertions(+), 40 deletions(-) diff --git a/src/algokit/core/sandbox.py b/src/algokit/core/sandbox.py index e7d27c2d..8c3d9db1 100644 --- a/src/algokit/core/sandbox.py +++ b/src/algokit/core/sandbox.py @@ -227,7 +227,7 @@ def check_docker_compose_for_new_image_versions(self) -> None: DEFAULT_HEALTH_TIMEOUT = 1 ALGOD_HEALTH_URL = f"{DEFAULT_ALGOD_SERVER}:{DEFAULT_ALGOD_PORT}/v2/status" INDEXER_IMAGE = "algorand/indexer:latest" -ALGORAND_IMAGE = "algorand/algod:3.23.1-stable" +ALGORAND_IMAGE = "algorand/algod:latest" CONDUIT_IMAGE = "algorand/conduit:latest" @@ -262,7 +262,6 @@ def get_config_json() -> str: def get_algod_network_template() -> str: return """{ "Genesis": { - "ConsensusProtocol": "future", "NetworkName": "followermodenet", "RewardsPoolBalance": 0, "FirstPartKeyRound": 0, diff --git a/tests/localnet/conftest.py b/tests/localnet/conftest.py index d5941544..bf03051a 100644 --- a/tests/localnet/conftest.py +++ b/tests/localnet/conftest.py @@ -40,7 +40,7 @@ def _localnet_up_to_date(proc_mock: ProcMock, httpx_mock: HTTPXMock) -> None: ) httpx_mock.add_response( - url="https://registry.hub.docker.com/v2/repositories/algorand/algod/tags/3.23.1-stable", + url="https://registry.hub.docker.com/v2/repositories/algorand/algod/tags/latest", json={ "digest": "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", }, diff --git a/tests/localnet/test_localnet_reset.test_localnet_reset_with_existing_sandbox_with_out_of_date_config.approved.txt b/tests/localnet/test_localnet_reset.test_localnet_reset_with_existing_sandbox_with_out_of_date_config.approved.txt index 12c121ff..06109624 100644 --- a/tests/localnet/test_localnet_reset.test_localnet_reset_with_existing_sandbox_with_out_of_date_config.approved.txt +++ b/tests/localnet/test_localnet_reset.test_localnet_reset_with_existing_sandbox_with_out_of_date_config.approved.txt @@ -13,9 +13,9 @@ LocalNet definition is out of date; updating it to latest DEBUG: Running 'docker image inspect algorand/indexer:latest --format {{index (split (index .RepoDigests 0) "@") 1}}' in '{app_config}/sandbox' DEBUG: docker: sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb DEBUG: HTTP Request: GET https://registry.hub.docker.com/v2/repositories/algorand/indexer/tags/latest "HTTP/1.1 200 OK" -DEBUG: Running 'docker image inspect algorand/algod:3.23.1-stable --format {{index (split (index .RepoDigests 0) "@") 1}}' in '{app_config}/sandbox' +DEBUG: Running 'docker image inspect algorand/algod:latest --format {{index (split (index .RepoDigests 0) "@") 1}}' in '{app_config}/sandbox' DEBUG: docker: sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa -DEBUG: HTTP Request: GET https://registry.hub.docker.com/v2/repositories/algorand/algod/tags/3.23.1-stable "HTTP/1.1 200 OK" +DEBUG: HTTP Request: GET https://registry.hub.docker.com/v2/repositories/algorand/algod/tags/latest "HTTP/1.1 200 OK" Starting AlgoKit LocalNet now... DEBUG: Running 'docker compose up --detach --quiet-pull --wait' in '{app_config}/sandbox' docker: STDOUT @@ -31,7 +31,7 @@ name: "algokit_sandbox" services: algod: container_name: "algokit_sandbox_algod" - image: algorand/algod:3.23.1-stable + image: algorand/algod:latest ports: - 4001:8080 - 4002:7833 diff --git a/tests/localnet/test_localnet_reset.test_localnet_reset_with_existing_sandbox_with_up_to_date_config.approved.txt b/tests/localnet/test_localnet_reset.test_localnet_reset_with_existing_sandbox_with_up_to_date_config.approved.txt index fbe8f333..71740e38 100644 --- a/tests/localnet/test_localnet_reset.test_localnet_reset_with_existing_sandbox_with_up_to_date_config.approved.txt +++ b/tests/localnet/test_localnet_reset.test_localnet_reset_with_existing_sandbox_with_up_to_date_config.approved.txt @@ -12,9 +12,9 @@ DEBUG: docker: STDERR DEBUG: Running 'docker image inspect algorand/indexer:latest --format {{index (split (index .RepoDigests 0) "@") 1}}' in '{app_config}/sandbox' DEBUG: docker: sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb DEBUG: HTTP Request: GET https://registry.hub.docker.com/v2/repositories/algorand/indexer/tags/latest "HTTP/1.1 200 OK" -DEBUG: Running 'docker image inspect algorand/algod:3.23.1-stable --format {{index (split (index .RepoDigests 0) "@") 1}}' in '{app_config}/sandbox' +DEBUG: Running 'docker image inspect algorand/algod:latest --format {{index (split (index .RepoDigests 0) "@") 1}}' in '{app_config}/sandbox' DEBUG: docker: sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa -DEBUG: HTTP Request: GET https://registry.hub.docker.com/v2/repositories/algorand/algod/tags/3.23.1-stable "HTTP/1.1 200 OK" +DEBUG: HTTP Request: GET https://registry.hub.docker.com/v2/repositories/algorand/algod/tags/latest "HTTP/1.1 200 OK" Starting AlgoKit LocalNet now... DEBUG: Running 'docker compose up --detach --quiet-pull --wait' in '{app_config}/sandbox' docker: STDOUT diff --git a/tests/localnet/test_localnet_reset.test_localnet_reset_without_existing_sandbox.approved.txt b/tests/localnet/test_localnet_reset.test_localnet_reset_without_existing_sandbox.approved.txt index 484a5ec2..3041bac9 100644 --- a/tests/localnet/test_localnet_reset.test_localnet_reset_without_existing_sandbox.approved.txt +++ b/tests/localnet/test_localnet_reset.test_localnet_reset_without_existing_sandbox.approved.txt @@ -23,7 +23,7 @@ name: "algokit_sandbox" services: algod: container_name: "algokit_sandbox_algod" - image: algorand/algod:3.23.1-stable + image: algorand/algod:latest ports: - 4001:8080 - 4002:7833 diff --git a/tests/localnet/test_localnet_start.py b/tests/localnet/test_localnet_start.py index 483bacf3..195df0b2 100644 --- a/tests/localnet/test_localnet_start.py +++ b/tests/localnet/test_localnet_start.py @@ -40,7 +40,7 @@ def _localnet_out_of_date(proc_mock: ProcMock, httpx_mock: HTTPXMock) -> None: ) httpx_mock.add_response( - url="https://registry.hub.docker.com/v2/repositories/algorand/algod/tags/3.23.1-stable", + url="https://registry.hub.docker.com/v2/repositories/algorand/algod/tags/latest", json={ "digest": "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", }, diff --git a/tests/localnet/test_localnet_start.test_localnet_img_check_cmd_error.approved.txt b/tests/localnet/test_localnet_start.test_localnet_img_check_cmd_error.approved.txt index 338d59ea..6da5fec3 100644 --- a/tests/localnet/test_localnet_start.test_localnet_img_check_cmd_error.approved.txt +++ b/tests/localnet/test_localnet_start.test_localnet_img_check_cmd_error.approved.txt @@ -9,8 +9,8 @@ DEBUG: The sandbox directory does not exist yet; creating it DEBUG: Running 'docker image inspect algorand/indexer:latest --format {{index (split (index .RepoDigests 0) "@") 1}}' in '{app_config}/sandbox' DEBUG: Error checking image status: No response can be found for GET request on https://registry.hub.docker.com/v2/repositories/algorand/indexer/tags/latest amongst: Match all requests on http://localhost:4001/v2/status -DEBUG: Running 'docker image inspect algorand/algod:3.23.1-stable --format {{index (split (index .RepoDigests 0) "@") 1}}' in '{app_config}/sandbox' -DEBUG: Error checking image status: No response can be found for GET request on https://registry.hub.docker.com/v2/repositories/algorand/algod/tags/3.23.1-stable amongst: +DEBUG: Running 'docker image inspect algorand/algod:latest --format {{index (split (index .RepoDigests 0) "@") 1}}' in '{app_config}/sandbox' +DEBUG: Error checking image status: No response can be found for GET request on https://registry.hub.docker.com/v2/repositories/algorand/algod/tags/latest amongst: Match all requests on http://localhost:4001/v2/status DEBUG: LocalNet compose file does not exist yet; writing it out for the first time Starting AlgoKit LocalNet now... diff --git a/tests/localnet/test_localnet_start.test_localnet_start.approved.txt b/tests/localnet/test_localnet_start.test_localnet_start.approved.txt index 73285551..5d07b203 100644 --- a/tests/localnet/test_localnet_start.test_localnet_start.approved.txt +++ b/tests/localnet/test_localnet_start.test_localnet_start.approved.txt @@ -9,9 +9,9 @@ DEBUG: The sandbox directory does not exist yet; creating it DEBUG: Running 'docker image inspect algorand/indexer:latest --format {{index (split (index .RepoDigests 0) "@") 1}}' in '{app_config}/sandbox' DEBUG: docker: sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb DEBUG: HTTP Request: GET https://registry.hub.docker.com/v2/repositories/algorand/indexer/tags/latest "HTTP/1.1 200 OK" -DEBUG: Running 'docker image inspect algorand/algod:3.23.1-stable --format {{index (split (index .RepoDigests 0) "@") 1}}' in '{app_config}/sandbox' +DEBUG: Running 'docker image inspect algorand/algod:latest --format {{index (split (index .RepoDigests 0) "@") 1}}' in '{app_config}/sandbox' DEBUG: docker: sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa -DEBUG: HTTP Request: GET https://registry.hub.docker.com/v2/repositories/algorand/algod/tags/3.23.1-stable "HTTP/1.1 200 OK" +DEBUG: HTTP Request: GET https://registry.hub.docker.com/v2/repositories/algorand/algod/tags/latest "HTTP/1.1 200 OK" DEBUG: LocalNet compose file does not exist yet; writing it out for the first time Starting AlgoKit LocalNet now... DEBUG: Running 'docker compose up --detach --quiet-pull --wait' in '{app_config}/sandbox' @@ -29,7 +29,7 @@ name: "algokit_sandbox" services: algod: container_name: "algokit_sandbox_algod" - image: algorand/algod:3.23.1-stable + image: algorand/algod:latest ports: - 4001:8080 - 4002:7833 diff --git a/tests/localnet/test_localnet_start.test_localnet_start_failure.approved.txt b/tests/localnet/test_localnet_start.test_localnet_start_failure.approved.txt index db671817..9734b649 100644 --- a/tests/localnet/test_localnet_start.test_localnet_start_failure.approved.txt +++ b/tests/localnet/test_localnet_start.test_localnet_start_failure.approved.txt @@ -9,9 +9,9 @@ DEBUG: The sandbox directory does not exist yet; creating it DEBUG: Running 'docker image inspect algorand/indexer:latest --format {{index (split (index .RepoDigests 0) "@") 1}}' in '{app_config}/sandbox' DEBUG: docker: sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb DEBUG: HTTP Request: GET https://registry.hub.docker.com/v2/repositories/algorand/indexer/tags/latest "HTTP/1.1 200 OK" -DEBUG: Running 'docker image inspect algorand/algod:3.23.1-stable --format {{index (split (index .RepoDigests 0) "@") 1}}' in '{app_config}/sandbox' +DEBUG: Running 'docker image inspect algorand/algod:latest --format {{index (split (index .RepoDigests 0) "@") 1}}' in '{app_config}/sandbox' DEBUG: docker: sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa -DEBUG: HTTP Request: GET https://registry.hub.docker.com/v2/repositories/algorand/algod/tags/3.23.1-stable "HTTP/1.1 200 OK" +DEBUG: HTTP Request: GET https://registry.hub.docker.com/v2/repositories/algorand/algod/tags/latest "HTTP/1.1 200 OK" DEBUG: LocalNet compose file does not exist yet; writing it out for the first time Starting AlgoKit LocalNet now... DEBUG: Running 'docker compose up --detach --quiet-pull --wait' in '{app_config}/sandbox' diff --git a/tests/localnet/test_localnet_start.test_localnet_start_health_bad_status.approved.txt b/tests/localnet/test_localnet_start.test_localnet_start_health_bad_status.approved.txt index 79a9e69c..4b23c02d 100644 --- a/tests/localnet/test_localnet_start.test_localnet_start_health_bad_status.approved.txt +++ b/tests/localnet/test_localnet_start.test_localnet_start_health_bad_status.approved.txt @@ -9,9 +9,9 @@ DEBUG: The sandbox directory does not exist yet; creating it DEBUG: Running 'docker image inspect algorand/indexer:latest --format {{index (split (index .RepoDigests 0) "@") 1}}' in '{app_config}/sandbox' DEBUG: docker: sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb DEBUG: HTTP Request: GET https://registry.hub.docker.com/v2/repositories/algorand/indexer/tags/latest "HTTP/1.1 200 OK" -DEBUG: Running 'docker image inspect algorand/algod:3.23.1-stable --format {{index (split (index .RepoDigests 0) "@") 1}}' in '{app_config}/sandbox' +DEBUG: Running 'docker image inspect algorand/algod:latest --format {{index (split (index .RepoDigests 0) "@") 1}}' in '{app_config}/sandbox' DEBUG: docker: sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa -DEBUG: HTTP Request: GET https://registry.hub.docker.com/v2/repositories/algorand/algod/tags/3.23.1-stable "HTTP/1.1 200 OK" +DEBUG: HTTP Request: GET https://registry.hub.docker.com/v2/repositories/algorand/algod/tags/latest "HTTP/1.1 200 OK" DEBUG: LocalNet compose file does not exist yet; writing it out for the first time Starting AlgoKit LocalNet now... DEBUG: Running 'docker compose up --detach --quiet-pull --wait' in '{app_config}/sandbox' @@ -29,7 +29,7 @@ name: "algokit_sandbox" services: algod: container_name: "algokit_sandbox_algod" - image: algorand/algod:3.23.1-stable + image: algorand/algod:latest ports: - 4001:8080 - 4002:7833 diff --git a/tests/localnet/test_localnet_start.test_localnet_start_health_failure.approved.txt b/tests/localnet/test_localnet_start.test_localnet_start_health_failure.approved.txt index b184a447..f1ae3054 100644 --- a/tests/localnet/test_localnet_start.test_localnet_start_health_failure.approved.txt +++ b/tests/localnet/test_localnet_start.test_localnet_start_health_failure.approved.txt @@ -9,9 +9,9 @@ DEBUG: The sandbox directory does not exist yet; creating it DEBUG: Running 'docker image inspect algorand/indexer:latest --format {{index (split (index .RepoDigests 0) "@") 1}}' in '{app_config}/sandbox' DEBUG: docker: sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb DEBUG: HTTP Request: GET https://registry.hub.docker.com/v2/repositories/algorand/indexer/tags/latest "HTTP/1.1 200 OK" -DEBUG: Running 'docker image inspect algorand/algod:3.23.1-stable --format {{index (split (index .RepoDigests 0) "@") 1}}' in '{app_config}/sandbox' +DEBUG: Running 'docker image inspect algorand/algod:latest --format {{index (split (index .RepoDigests 0) "@") 1}}' in '{app_config}/sandbox' DEBUG: docker: sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa -DEBUG: HTTP Request: GET https://registry.hub.docker.com/v2/repositories/algorand/algod/tags/3.23.1-stable "HTTP/1.1 200 OK" +DEBUG: HTTP Request: GET https://registry.hub.docker.com/v2/repositories/algorand/algod/tags/latest "HTTP/1.1 200 OK" DEBUG: LocalNet compose file does not exist yet; writing it out for the first time Starting AlgoKit LocalNet now... DEBUG: Running 'docker compose up --detach --quiet-pull --wait' in '{app_config}/sandbox' @@ -28,7 +28,7 @@ name: "algokit_sandbox" services: algod: container_name: "algokit_sandbox_algod" - image: algorand/algod:3.23.1-stable + image: algorand/algod:latest ports: - 4001:8080 - 4002:7833 diff --git a/tests/localnet/test_localnet_start.test_localnet_start_out_date.approved.txt b/tests/localnet/test_localnet_start.test_localnet_start_out_date.approved.txt index 14720aa4..38b49778 100644 --- a/tests/localnet/test_localnet_start.test_localnet_start_out_date.approved.txt +++ b/tests/localnet/test_localnet_start.test_localnet_start_out_date.approved.txt @@ -10,9 +10,9 @@ DEBUG: Running 'docker image inspect algorand/indexer:latest --format {{index (s DEBUG: docker: sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa DEBUG: HTTP Request: GET https://registry.hub.docker.com/v2/repositories/algorand/indexer/tags/latest "HTTP/1.1 200 OK" WARNING: indexer has a new version available, run `algokit localnet reset --update` to get the latest version -DEBUG: Running 'docker image inspect algorand/algod:3.23.1-stable --format {{index (split (index .RepoDigests 0) "@") 1}}' in '{app_config}/sandbox' +DEBUG: Running 'docker image inspect algorand/algod:latest --format {{index (split (index .RepoDigests 0) "@") 1}}' in '{app_config}/sandbox' DEBUG: docker: sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb -DEBUG: HTTP Request: GET https://registry.hub.docker.com/v2/repositories/algorand/algod/tags/3.23.1-stable "HTTP/1.1 200 OK" +DEBUG: HTTP Request: GET https://registry.hub.docker.com/v2/repositories/algorand/algod/tags/latest "HTTP/1.1 200 OK" WARNING: algod has a new version available, run `algokit localnet reset --update` to get the latest version DEBUG: LocalNet compose file does not exist yet; writing it out for the first time Starting AlgoKit LocalNet now... diff --git a/tests/localnet/test_localnet_start.test_localnet_start_out_of_date_definition.approved.txt b/tests/localnet/test_localnet_start.test_localnet_start_out_of_date_definition.approved.txt index 6b3f2b37..38cc4bb9 100644 --- a/tests/localnet/test_localnet_start.test_localnet_start_out_of_date_definition.approved.txt +++ b/tests/localnet/test_localnet_start.test_localnet_start_out_of_date_definition.approved.txt @@ -8,9 +8,9 @@ DEBUG: docker: [{"Name": "algokit_sandbox", "Status": "running", "ConfigFiles": DEBUG: Running 'docker image inspect algorand/indexer:latest --format {{index (split (index .RepoDigests 0) "@") 1}}' in '{app_config}/sandbox' DEBUG: docker: sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb DEBUG: HTTP Request: GET https://registry.hub.docker.com/v2/repositories/algorand/indexer/tags/latest "HTTP/1.1 200 OK" -DEBUG: Running 'docker image inspect algorand/algod:3.23.1-stable --format {{index (split (index .RepoDigests 0) "@") 1}}' in '{app_config}/sandbox' +DEBUG: Running 'docker image inspect algorand/algod:latest --format {{index (split (index .RepoDigests 0) "@") 1}}' in '{app_config}/sandbox' DEBUG: docker: sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa -DEBUG: HTTP Request: GET https://registry.hub.docker.com/v2/repositories/algorand/algod/tags/3.23.1-stable "HTTP/1.1 200 OK" +DEBUG: HTTP Request: GET https://registry.hub.docker.com/v2/repositories/algorand/algod/tags/latest "HTTP/1.1 200 OK" WARNING: LocalNet definition is out of date; please run `algokit localnet reset` Starting AlgoKit LocalNet now... DEBUG: Running 'docker compose up --detach --quiet-pull --wait' in '{app_config}/sandbox' diff --git a/tests/localnet/test_localnet_start.test_localnet_start_out_of_date_definition_and_missing_config.approved.txt b/tests/localnet/test_localnet_start.test_localnet_start_out_of_date_definition_and_missing_config.approved.txt index 23fbdc11..75689fe0 100644 --- a/tests/localnet/test_localnet_start.test_localnet_start_out_of_date_definition_and_missing_config.approved.txt +++ b/tests/localnet/test_localnet_start.test_localnet_start_out_of_date_definition_and_missing_config.approved.txt @@ -8,9 +8,9 @@ DEBUG: docker: [{"Name": "algokit_sandbox", "Status": "running", "ConfigFiles": DEBUG: Running 'docker image inspect algorand/indexer:latest --format {{index (split (index .RepoDigests 0) "@") 1}}' in '{app_config}/sandbox' DEBUG: docker: sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb DEBUG: HTTP Request: GET https://registry.hub.docker.com/v2/repositories/algorand/indexer/tags/latest "HTTP/1.1 200 OK" -DEBUG: Running 'docker image inspect algorand/algod:3.23.1-stable --format {{index (split (index .RepoDigests 0) "@") 1}}' in '{app_config}/sandbox' +DEBUG: Running 'docker image inspect algorand/algod:latest --format {{index (split (index .RepoDigests 0) "@") 1}}' in '{app_config}/sandbox' DEBUG: docker: sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa -DEBUG: HTTP Request: GET https://registry.hub.docker.com/v2/repositories/algorand/algod/tags/3.23.1-stable "HTTP/1.1 200 OK" +DEBUG: HTTP Request: GET https://registry.hub.docker.com/v2/repositories/algorand/algod/tags/latest "HTTP/1.1 200 OK" WARNING: LocalNet definition is out of date; please run `algokit localnet reset` Starting AlgoKit LocalNet now... DEBUG: Running 'docker compose up --detach --quiet-pull --wait' in '{app_config}/sandbox' diff --git a/tests/localnet/test_localnet_start.test_localnet_start_up_to_date_definition.approved.txt b/tests/localnet/test_localnet_start.test_localnet_start_up_to_date_definition.approved.txt index 4b18f469..1f36a02f 100644 --- a/tests/localnet/test_localnet_start.test_localnet_start_up_to_date_definition.approved.txt +++ b/tests/localnet/test_localnet_start.test_localnet_start_up_to_date_definition.approved.txt @@ -8,9 +8,9 @@ DEBUG: docker: [{"Name": "algokit_sandbox", "Status": "running", "ConfigFiles": DEBUG: Running 'docker image inspect algorand/indexer:latest --format {{index (split (index .RepoDigests 0) "@") 1}}' in '{app_config}/sandbox' DEBUG: docker: sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb DEBUG: HTTP Request: GET https://registry.hub.docker.com/v2/repositories/algorand/indexer/tags/latest "HTTP/1.1 200 OK" -DEBUG: Running 'docker image inspect algorand/algod:3.23.1-stable --format {{index (split (index .RepoDigests 0) "@") 1}}' in '{app_config}/sandbox' +DEBUG: Running 'docker image inspect algorand/algod:latest --format {{index (split (index .RepoDigests 0) "@") 1}}' in '{app_config}/sandbox' DEBUG: docker: sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa -DEBUG: HTTP Request: GET https://registry.hub.docker.com/v2/repositories/algorand/algod/tags/3.23.1-stable "HTTP/1.1 200 OK" +DEBUG: HTTP Request: GET https://registry.hub.docker.com/v2/repositories/algorand/algod/tags/latest "HTTP/1.1 200 OK" DEBUG: LocalNet compose file does not require updating Starting AlgoKit LocalNet now... DEBUG: Running 'docker compose up --detach --quiet-pull --wait' in '{app_config}/sandbox' diff --git a/tests/localnet/test_localnet_start.test_localnet_start_with_gitpod_docker_compose_version.approved.txt b/tests/localnet/test_localnet_start.test_localnet_start_with_gitpod_docker_compose_version.approved.txt index e7ed1d44..a7f08159 100644 --- a/tests/localnet/test_localnet_start.test_localnet_start_with_gitpod_docker_compose_version.approved.txt +++ b/tests/localnet/test_localnet_start.test_localnet_start_with_gitpod_docker_compose_version.approved.txt @@ -9,9 +9,9 @@ DEBUG: The sandbox directory does not exist yet; creating it DEBUG: Running 'docker image inspect algorand/indexer:latest --format {{index (split (index .RepoDigests 0) "@") 1}}' in '{app_config}/sandbox' DEBUG: docker: sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb DEBUG: HTTP Request: GET https://registry.hub.docker.com/v2/repositories/algorand/indexer/tags/latest "HTTP/1.1 200 OK" -DEBUG: Running 'docker image inspect algorand/algod:3.23.1-stable --format {{index (split (index .RepoDigests 0) "@") 1}}' in '{app_config}/sandbox' +DEBUG: Running 'docker image inspect algorand/algod:latest --format {{index (split (index .RepoDigests 0) "@") 1}}' in '{app_config}/sandbox' DEBUG: docker: sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa -DEBUG: HTTP Request: GET https://registry.hub.docker.com/v2/repositories/algorand/algod/tags/3.23.1-stable "HTTP/1.1 200 OK" +DEBUG: HTTP Request: GET https://registry.hub.docker.com/v2/repositories/algorand/algod/tags/latest "HTTP/1.1 200 OK" DEBUG: LocalNet compose file does not exist yet; writing it out for the first time Starting AlgoKit LocalNet now... DEBUG: Running 'docker compose up --detach --quiet-pull --wait' in '{app_config}/sandbox' diff --git a/tests/localnet/test_localnet_start.test_localnet_start_with_name.approved.txt b/tests/localnet/test_localnet_start.test_localnet_start_with_name.approved.txt index 9d0efb3a..0b798fdb 100644 --- a/tests/localnet/test_localnet_start.test_localnet_start_with_name.approved.txt +++ b/tests/localnet/test_localnet_start.test_localnet_start_with_name.approved.txt @@ -9,9 +9,9 @@ DEBUG: The sandbox_test directory does not exist yet; creating it DEBUG: Running 'docker image inspect algorand/indexer:latest --format {{index (split (index .RepoDigests 0) "@") 1}}' in '{app_config}/sandbox_test' DEBUG: docker: sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb DEBUG: HTTP Request: GET https://registry.hub.docker.com/v2/repositories/algorand/indexer/tags/latest "HTTP/1.1 200 OK" -DEBUG: Running 'docker image inspect algorand/algod:3.23.1-stable --format {{index (split (index .RepoDigests 0) "@") 1}}' in '{app_config}/sandbox_test' +DEBUG: Running 'docker image inspect algorand/algod:latest --format {{index (split (index .RepoDigests 0) "@") 1}}' in '{app_config}/sandbox_test' DEBUG: docker: sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa -DEBUG: HTTP Request: GET https://registry.hub.docker.com/v2/repositories/algorand/algod/tags/3.23.1-stable "HTTP/1.1 200 OK" +DEBUG: HTTP Request: GET https://registry.hub.docker.com/v2/repositories/algorand/algod/tags/latest "HTTP/1.1 200 OK" DEBUG: LocalNet compose file does not exist yet; writing it out for the first time The named LocalNet configuration has been created in {app_config}/sandbox_test. You can edit the configuration by changing those files. Running `algokit localnet reset` will ensure the configuration is applied @@ -32,7 +32,7 @@ name: "algokit_sandbox_test" services: algod: container_name: "algokit_sandbox_test_algod" - image: algorand/algod:3.23.1-stable + image: algorand/algod:latest ports: - 4001:8080 - 4002:7833 diff --git a/tests/localnet/test_localnet_start.test_localnet_start_with_unparseable_docker_compose_version.approved.txt b/tests/localnet/test_localnet_start.test_localnet_start_with_unparseable_docker_compose_version.approved.txt index 92c16ffc..db14b7d9 100644 --- a/tests/localnet/test_localnet_start.test_localnet_start_with_unparseable_docker_compose_version.approved.txt +++ b/tests/localnet/test_localnet_start.test_localnet_start_with_unparseable_docker_compose_version.approved.txt @@ -12,9 +12,9 @@ DEBUG: The sandbox directory does not exist yet; creating it DEBUG: Running 'docker image inspect algorand/indexer:latest --format {{index (split (index .RepoDigests 0) "@") 1}}' in '{app_config}/sandbox' DEBUG: docker: sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb DEBUG: HTTP Request: GET https://registry.hub.docker.com/v2/repositories/algorand/indexer/tags/latest "HTTP/1.1 200 OK" -DEBUG: Running 'docker image inspect algorand/algod:3.23.1-stable --format {{index (split (index .RepoDigests 0) "@") 1}}' in '{app_config}/sandbox' +DEBUG: Running 'docker image inspect algorand/algod:latest --format {{index (split (index .RepoDigests 0) "@") 1}}' in '{app_config}/sandbox' DEBUG: docker: sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa -DEBUG: HTTP Request: GET https://registry.hub.docker.com/v2/repositories/algorand/algod/tags/3.23.1-stable "HTTP/1.1 200 OK" +DEBUG: HTTP Request: GET https://registry.hub.docker.com/v2/repositories/algorand/algod/tags/latest "HTTP/1.1 200 OK" DEBUG: LocalNet compose file does not exist yet; writing it out for the first time Starting AlgoKit LocalNet now... DEBUG: Running 'docker compose up --detach --quiet-pull --wait' in '{app_config}/sandbox' diff --git a/tests/localnet/test_sandbox.test_algod_network_template_json.approved.txt b/tests/localnet/test_sandbox.test_algod_network_template_json.approved.txt index ae54dc6b..c134442f 100644 --- a/tests/localnet/test_sandbox.test_algod_network_template_json.approved.txt +++ b/tests/localnet/test_sandbox.test_algod_network_template_json.approved.txt @@ -1,6 +1,5 @@ { "Genesis": { - "ConsensusProtocol": "future", "NetworkName": "followermodenet", "RewardsPoolBalance": 0, "FirstPartKeyRound": 0, diff --git a/tests/localnet/test_sandbox.test_get_docker_compose_yml.approved.txt b/tests/localnet/test_sandbox.test_get_docker_compose_yml.approved.txt index c17ee047..6f22f0bd 100644 --- a/tests/localnet/test_sandbox.test_get_docker_compose_yml.approved.txt +++ b/tests/localnet/test_sandbox.test_get_docker_compose_yml.approved.txt @@ -3,7 +3,7 @@ name: "algokit_sandbox" services: algod: container_name: "algokit_sandbox_algod" - image: algorand/algod:3.23.1-stable + image: algorand/algod:latest ports: - 4001:8080 - 4002:7833