Skip to content

Commit cc9e9ce

Browse files
bokelleyclaude
andcommitted
fix: update CI schema validation to import generated types directly
The validation step was importing through adcp.types which triggers the full package import chain. This fails when upstream schema changes introduce/remove types that types/__init__.py doesn't expect. Now imports directly from _generated to validate the generated code without requiring the manually-curated types/__init__.py to match. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 7521420 commit cc9e9ce

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,9 @@ jobs:
124124
- name: Validate generated code imports
125125
run: |
126126
echo "Validating generated code can be imported..."
127-
python -c "from adcp.types import _generated as generated; print(f'✓ Successfully imported {len(dir(generated))} symbols')"
127+
# Import _generated directly to avoid triggering full package imports
128+
# which may fail due to types/__init__.py expecting types that don't exist after regeneration
129+
python -c "from adcp.types._generated import *; print('✓ Generated types import successfully')"
128130
129131
- name: Run code generation tests
130132
run: |

0 commit comments

Comments
 (0)