From 06acc510550c8046e17f899c509913ac9b926377 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Mon, 15 Jun 2026 11:13:40 -0400 Subject: [PATCH] ci fix --- .github/workflows/doctests.yml | 14 +++++++------- doctests/logos-execution-zone-runtime.test.yaml | 4 ++-- doctests/run.sh | 10 +++++++--- 3 files changed, 16 insertions(+), 12 deletions(-) diff --git a/.github/workflows/doctests.yml b/.github/workflows/doctests.yml index e394ffa..987398e 100644 --- a/.github/workflows/doctests.yml +++ b/.github/workflows/doctests.yml @@ -64,10 +64,10 @@ jobs: # of logos-execution-zone-module instead of the latest published flake. # # Fork PRs are the exception: their head commit lives in the fork, not in - # logos-co/logos-execution-zone-module, so nix could not fetch - # `github:logos-co/logos-execution-zone-module/`. We blank the SHA for - # forks (--release-for repo= → pins that repo to latest), so the doc-test - # still runs for fork PRs, just against master. + # logos-blockchain/logos-execution-zone-module, so nix could not fetch + # `github:logos-blockchain/logos-execution-zone-module/`. We blank the + # SHA for forks (--release-for repo= → pins that repo to latest), so the + # doc-test still runs for fork PRs, just against master. - name: Resolve commit under test id: commit shell: bash @@ -86,9 +86,9 @@ jobs: # # --release-for pins the {release} placeholder for logos-execution-zone-module # to the commit under test, so - # `github:logos-co/logos-execution-zone-module{release}` in the spec becomes - # `.../` — the doc-test packages and exercises this PR/push rather than - # master. Every other repo URL still resolves to latest. + # `github:logos-blockchain/logos-execution-zone-module{release}` in the spec + # becomes `.../` — the doc-test packages and exercises this PR/push + # rather than master. Every other repo URL still resolves to latest. - name: Run execution-zone-module runtime doc-test run: | # --continue-on-fail so the run walks every step and the published diff --git a/doctests/logos-execution-zone-runtime.test.yaml b/doctests/logos-execution-zone-runtime.test.yaml index 77b92f9..2b55e5b 100644 --- a/doctests/logos-execution-zone-runtime.test.yaml +++ b/doctests/logos-execution-zone-runtime.test.yaml @@ -107,10 +107,10 @@ sections: Build the `#lgx` output and link it as `./lez-lgx`. (This compiles the module and the `wallet_ffi` library it depends on through Nix, so the first build is slow.) - run: "nix build 'github:logos-co/logos-execution-zone-module{release}#lgx' -o lez-lgx" + run: "nix build 'github:logos-blockchain/logos-execution-zone-module{release}#lgx' -o lez-lgx" code_block: | # From inside the clone this is simply: nix build '.#lgx' - nix build 'github:logos-co/logos-execution-zone-module{release}#lgx' -o lez-lgx + nix build 'github:logos-blockchain/logos-execution-zone-module{release}#lgx' -o lez-lgx post_text: "The `.lgx` package is now under `./lez-lgx/`:" extra_run: run: "ls lez-lgx/*.lgx" diff --git a/doctests/run.sh b/doctests/run.sh index bc5b93c..9d90703 100755 --- a/doctests/run.sh +++ b/doctests/run.sh @@ -26,14 +26,18 @@ read -r -a DOCTEST <<< "${DOCTEST:-nix run github:logos-co/logos-doctest --}" OUTPUT_DIR="./outputs" # Build the doc-test against THIS repo's current commit rather than the latest -# published flake. The spec pins `github:logos-co/logos-execution-zone-module{release}` +# published flake. The spec pins `github:logos-blockchain/logos-execution-zone-module{release}` # to $COMMIT via --release-for, so it packages exactly what is checked out here. # Override by exporting COMMIT (e.g. a tag), or set COMMIT="" to fall back to # latest master. # # Note: nix fetches the commit from the GitHub remote, so $COMMIT must be pushed -# to logos-co/logos-execution-zone-module. A local-only / uncommitted HEAD won't -# resolve; export COMMIT="" (or push first) in that case. +# to logos-blockchain/logos-execution-zone-module. A local-only / uncommitted HEAD +# won't resolve; export COMMIT="" (or push first) in that case. +# +# This is a private repo, so nix must be able to authenticate to GitHub. If the +# build 404s on the commit even after pushing, add a token to ~/.config/nix/nix.conf: +# access-tokens = github.com=ghp_yourtoken COMMIT="${COMMIT-$(git rev-parse HEAD)}" RELEASE_FOR=() if [ -n "${COMMIT}" ]; then