Skip to content

Commit 2d8f0c4

Browse files
scarmuegaclaude
andauthored
chore(ci): trigger codegen verification post v0.12 release (#15)
* 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) <noreply@anthropic.com> * fix(ci): align codegen-check greps + runtime assertion with new template 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) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 282c741 commit 2d8f0c4

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

.github/scripts/codegen-check.sh

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
# requirements.txt pins installed — no editable install of the SDK source tree.
99
#
1010
# Requires `tx3c` and `python` on PATH.
11+
# Last verified against fleet v0.12.0 (unified Tx3ClientBuilder).
1112
set -euo pipefail
1213

1314
repo_root="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
@@ -25,10 +26,14 @@ done
2526

2627
for sym in \
2728
'TARGET_TII_VERSION' \
28-
'PROFILES' \
2929
'TRANSFER_TIR' \
3030
'class TransferParams' \
31-
'class Client'; do
31+
'class Client' \
32+
'class Profile(str, Enum)' \
33+
'_LOCAL_PROFILE' \
34+
'_PREPROD_PROFILE' \
35+
'Tx3ClientBuilder.from_parts' \
36+
'with_party_unchecked'; do
3237
grep -qF "$sym" "$gen/__init__.py" || { echo "generated __init__.py missing: $sym"; exit 1; }
3338
done
3439

@@ -44,7 +49,7 @@ module = importlib.util.module_from_spec(spec)
4449
sys.modules[spec.name] = module
4550
spec.loader.exec_module(module)
4651
assert module.TARGET_TII_VERSION == 'v1beta0', module.TARGET_TII_VERSION
47-
assert set(module.PROFILES) == {'local', 'preprod'}, module.PROFILES
52+
assert {p.value for p in module.Profile} == {'local', 'preprod'}, list(module.Profile)
4853
assert module.TRANSFER_TIR.version == 'v1beta0'
4954
assert module.TransferParams(quantity=1).quantity == 1
5055
print('generated module imported OK')

0 commit comments

Comments
 (0)