Uh oh!
There was an error while loading. Please reload this page.
[Python] Add codegen - #2507
Conversation
20b87ec to
5891b08CompareThere was a problem hiding this comment.
The file is called openapi.py, but it looks like this exclusively depends on the JSON schema.
Is that correct?
There was a problem hiding this comment.
Initially, it was implementing OpenAPI until we introduced JSON schema into CLI, let me rename it.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
5891b08 to
977df62Comparekanterov
commented
Apr 10, 2025
@pietern addressed your comments, please take a look again |
pietern
left a comment
There was a problem hiding this comment.
Please TAL at the comments.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| # | ||
| # We can't load all types because of errors while loading some of them. | ||
| LOADED_NAMESPACES = [ | ||
| "compute", |
There was a problem hiding this comment.
The compute namespace is for job clusters, right?
There was a problem hiding this comment.
It's for job clusters and pipeline cluster configuration
| # TODO block PR if this fails once diffs are fixed | ||
| # exit 1 | ||
| fi |
There was a problem hiding this comment.
There is a little bit of a problem, if codegen itself crashed CI job will pass now, let me fix it
An authorized user can trigger integration tests manually by following the instructions below: Trigger: Inputs:
Checks will be approved automatically on success. |
pietern
commented
Apr 15, 2025
@kanterov Is this ready? |
## Changes Add the code generator from the bundle schema to the Python code. Currently, it's only enabled for the "jobs" package. There is a new GitHub action to verify that codegen is always up-to-date whenever we update bundle schema. Depends on #2508 ## Tests - A few unit tests - Primarily tested by diffing output
Changes
Add the code generator from the bundle schema to the Python code. Currently, it's only enabled for the "jobs" package.
There is a new GitHub action to verify that codegen is always up-to-date whenever we update bundle schema.
Depends on #2508
Tests