From fdcf7684afc5c397065591ffd1b48ff07e5c0a36 Mon Sep 17 00:00:00 2001 From: Santiago Date: Sun, 24 May 2026 16:19:13 -0300 Subject: [PATCH 1/2] chore(ci): note codegen-check verified against fleet v0.12.0 Trivial doc-comment touch to trigger a fresh CI run now that: - The v0.12.0 release is published to the public registry (npm / PyPI / Go proxy / crates.io). - The codegen-v1beta0 tag was force-moved to the v0.12.0 HEAD so the rendered templates target the published SDK. Together this should clear the codegen job, which was structurally red before the release tags landed. Co-Authored-By: Claude Opus 4.7 (1M context) --- .github/scripts/codegen-check.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/scripts/codegen-check.sh b/.github/scripts/codegen-check.sh index 3f27ae3..5b2a5d5 100644 --- a/.github/scripts/codegen-check.sh +++ b/.github/scripts/codegen-check.sh @@ -8,6 +8,7 @@ # requirements.txt pins installed — no editable install of the SDK source tree. # # Requires `tx3c` and `python` on PATH. +# Last verified against fleet v0.12.0 (unified Tx3ClientBuilder). set -euo pipefail repo_root="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)" From 1a057a58ed91b3d1371b8040e6dacce489483a31 Mon Sep 17 00:00:00 2001 From: Santiago Date: Sun, 24 May 2026 16:22:52 -0300 Subject: [PATCH 2/2] fix(ci): align codegen-check greps + runtime assertion with new template MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The script still looked for `PROFILES` and asserted on `module.PROFILES`. After the unified-builder port, the template emits individual `_LOCAL_PROFILE` / `_PREPROD_PROFILE` named items plus a typed `Profile(str, Enum)` per sdks/sdk-spec/codegen/generated-surface.md — there is no aggregate. Replaces the stale greps and the `set(module.PROFILES)` runtime assertion with checks against the new shape (Profile enum, per-profile consts, Tx3ClientBuilder.from_parts seeding, with_party_unchecked routing). Co-Authored-By: Claude Opus 4.7 (1M context) --- .github/scripts/codegen-check.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/scripts/codegen-check.sh b/.github/scripts/codegen-check.sh index 5b2a5d5..6bf43e0 100644 --- a/.github/scripts/codegen-check.sh +++ b/.github/scripts/codegen-check.sh @@ -26,10 +26,14 @@ done for sym in \ 'TARGET_TII_VERSION' \ - 'PROFILES' \ 'TRANSFER_TIR' \ 'class TransferParams' \ - 'class Client'; do + 'class Client' \ + 'class Profile(str, Enum)' \ + '_LOCAL_PROFILE' \ + '_PREPROD_PROFILE' \ + 'Tx3ClientBuilder.from_parts' \ + 'with_party_unchecked'; do grep -qF "$sym" "$gen/__init__.py" || { echo "generated __init__.py missing: $sym"; exit 1; } done @@ -45,7 +49,7 @@ module = importlib.util.module_from_spec(spec) sys.modules[spec.name] = module spec.loader.exec_module(module) assert module.TARGET_TII_VERSION == 'v1beta0', module.TARGET_TII_VERSION -assert set(module.PROFILES) == {'local', 'preprod'}, module.PROFILES +assert {p.value for p in module.Profile} == {'local', 'preprod'}, list(module.Profile) assert module.TRANSFER_TIR.version == 'v1beta0' assert module.TransferParams(quantity=1).quantity == 1 print('generated module imported OK')