Skip to content
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

Generate a single swagger.json file for all frameworks #1437

Merged

Conversation

alembiewski
Copy link
Member

Update the tooling used for swagger spec generation to create a single swagger.json file for all API types instead of generating separate files for each API and combine them with swagger mixin utility.
Python SDK has been regenerated to update the package metadata in dockstrings.

@alembiewski
Copy link
Member Author

/cc @andreyvelich

Copy link
Member

@andreyvelich andreyvelich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you so much for this update @alembiewski!
Small question from me.

"${repo_root}"/pkg/apis/mxnet/v1/swagger.json "${repo_root}"/pkg/apis/xgboost/v1/swagger.json \
--output "${repo_root}"/hack/python-sdk/swagger.json --quiet || true
echo "Generating swagger file ..."
go run "${repo_root}"/hack/python-sdk/main.go ${VERSION} > "${SWAGGER_CODEGEN_FILE}"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You re-run this script to generate the new Swagger, right ?

Copy link
Member Author

@alembiewski alembiewski Oct 6, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that's correct. It has produced the file with the same contents as before, except now it has a proper title and description, so, effectively, no changes. And I also regenerated the SDK using the updated spec

@andreyvelich
Copy link
Member

Thank you for the update!
/lgtm
/assign @kubeflow/wg-training-leads

Copy link
Member

@gaocegege gaocegege left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution! 🎉 👍

/assign @Jeffwan

hack/python-sdk/gen-sdk.sh Outdated Show resolved Hide resolved
@gaocegege
Copy link
Member

/assign @Jeffwan

/lgtm

@Jeffwan
Copy link
Member

Jeffwan commented Oct 8, 2021

The changes looks stratforward. Let's hold this PR until the presubmit job is re-enabled. kubeflow/testing#967

@Jeffwan
Copy link
Member

Jeffwan commented Oct 8, 2021

/hold

@Jeffwan
Copy link
Member

Jeffwan commented Oct 8, 2021

/retest all

@aws-kf-ci-bot
Copy link
Contributor

@Jeffwan: The /retest command does not accept any targets.
The following commands are available to trigger jobs:

  • /test kubeflow-training-operator-presubmit

Use /test all to run all jobs.

In response to this:

/retest all

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@Jeffwan
Copy link
Member

Jeffwan commented Oct 8, 2021

/test kubeflow-training-operator-presubmit

@Jeffwan
Copy link
Member

Jeffwan commented Oct 8, 2021

@alembiewski since we rename the repo, there's a corresponding change in ci #1440. Please help rebase master change and it will make test behave correctlt.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 1322322934

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 8.161%

Totals Coverage Status
Change from base Build 1321445198: 0.0%
Covered Lines: 311
Relevant Lines: 3811

💛 - Coveralls

@alembiewski
Copy link
Member Author

/test kubeflow-training-operator-presubmit

@aws-kf-ci-bot
Copy link
Contributor

@alembiewski: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test message.

In response to this:

/test kubeflow-training-operator-presubmit

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@alembiewski
Copy link
Member Author

@Jeffwan, I updated the PR with the latest changes - could you please trigger the test again?

@andreyvelich
Copy link
Member

Thank you @alembiewski!
/ok-to-test

@Jeffwan
Copy link
Member

Jeffwan commented Oct 9, 2021

/lgtm
/approve

@google-oss-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: alembiewski, Jeffwan

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

1 similar comment
@google-oss-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: alembiewski, Jeffwan

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@Jeffwan
Copy link
Member

Jeffwan commented Oct 9, 2021

/unhold

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants