From 794b976158d88b7e2fab757829a5fe26ca5776c9 Mon Sep 17 00:00:00 2001 From: gastonfoncea Date: Thu, 21 May 2026 20:30:05 -0300 Subject: [PATCH] =?UTF-8?q?fix(ci):=20pre-cache=20genvm=20v0.2.16=20to=20b?= =?UTF-8?q?ypass=20upstream=20asset=20rename=20=E2=80=94=20GHB-202?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit GenLayer Labs published genvm v0.3.0-rc0 on 2026-05-20 and dropped the `genvm-universal.tar.xz` asset in favor of per-platform builds. Since `genlayer-test` resolves the genvm version at runtime via a HEAD to `releases/latest`, every CI run since has hit 404 trying to download the old asset path from the new release. Pre-seeding `~/.cache/gltest-direct/` with v0.2.16 makes `list_cached_versions()` return it before the "latest" lookup, so the test runner uses the last known-good genvm. Remove this step once upstream restores a universal tarball or `gltest` gains support for platform-specific assets. Co-Authored-By: Claude Opus 4.7 (1M context) --- .github/workflows/ci.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 37ea01c..808cbfa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,4 +33,18 @@ jobs: python-version: "3.12" - run: pip install ruff pytest genlayer-test - run: ruff check bounty_judge/contracts + # GHB-202 workaround: genlayer-test resolves the genvm version at runtime + # via HEAD https://github.com/genlayerlabs/genvm/releases/latest. On + # 2026-05-20 GenLayer Labs marked v0.3.0-rc0 as "latest" and removed + # the `genvm-universal.tar.xz` asset, so every CI run hits 404. + # Pre-seeding the cache with v0.2.16 makes `list_cached_versions()` + # return it first and skips the "latest" lookup entirely. + # Remove this step once upstream restores a universal tarball or + # gltest learns to download platform-specific assets. + - name: Pre-cache genvm v0.2.16 (GHB-202) + run: | + mkdir -p ~/.cache/gltest-direct + curl -fL \ + "https://github.com/genlayerlabs/genvm/releases/download/v0.2.16/genvm-universal.tar.xz" \ + -o ~/.cache/gltest-direct/genvm-universal-v0.2.16.tar.xz - run: pytest bounty_judge/tests