-
Notifications
You must be signed in to change notification settings - Fork 843
RPC codegen #464
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+4,828
−1,207
Merged
RPC codegen #464
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
4dbe2e2
Initial codegen for TS and C#
SteveSandersonMS 5579d2c
Cleaned-up codegen
SteveSandersonMS 9b3c95a
Check codegen is up-to-date in CI
SteveSandersonMS 760b67a
Fix C# codegen
SteveSandersonMS 7b3a85b
Finish TS codegen
SteveSandersonMS 038c325
Go codegen
SteveSandersonMS 168d07e
Python codegen
SteveSandersonMS b692b08
Update codegen-check.yml
SteveSandersonMS 2122897
Update client.py
SteveSandersonMS 6088658
More fixes
SteveSandersonMS ac20283
Refresh codegen output
SteveSandersonMS 41e044f
Fix CR feedback
SteveSandersonMS 805b940
Regenerate
SteveSandersonMS 25f3589
More feedback
SteveSandersonMS f851fb2
Doc fixes
SteveSandersonMS 6ead90f
E2E tests for RPC methods
SteveSandersonMS ee69361
Formatting
SteveSandersonMS e260f28
Fixes
SteveSandersonMS 7a2df72
Update rpc_test.go
SteveSandersonMS 24b8b28
Update rpc_test.go
SteveSandersonMS 2e8bab9
Fixes
SteveSandersonMS File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| name: "Codegen Check" | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| pull_request: | ||
| paths: | ||
| - 'scripts/codegen/**' | ||
| - 'nodejs/src/generated/**' | ||
| - 'dotnet/src/Generated/**' | ||
| - 'python/copilot/generated/**' | ||
| - 'go/generated_*.go' | ||
| - 'go/rpc/**' | ||
| - '.github/workflows/codegen-check.yml' | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| check: | ||
| name: "Verify generated files are up-to-date" | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: 22 | ||
|
|
||
| - uses: actions/setup-go@v5 | ||
| with: | ||
| go-version: '1.22' | ||
|
|
||
| - name: Install nodejs SDK dependencies | ||
| working-directory: ./nodejs | ||
| run: npm ci | ||
|
|
||
| - name: Install codegen dependencies | ||
| working-directory: ./scripts/codegen | ||
| run: npm ci | ||
|
|
||
| - name: Run codegen | ||
| working-directory: ./scripts/codegen | ||
| run: npm run generate | ||
|
|
||
| - name: Check for uncommitted changes | ||
| run: | | ||
| if [ -n "$(git status --porcelain)" ]; then | ||
| echo "::error::Generated files are out of date. Run 'cd scripts/codegen && npm run generate' and commit the changes." | ||
| git diff --stat | ||
| git diff | ||
| exit 1 | ||
| fi | ||
| echo "✅ Generated files are up-to-date" | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.