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 go clients and swagger files #126

Merged
merged 2 commits into from
Jan 19, 2022

Conversation

Jeffwan
Copy link
Collaborator

@Jeffwan Jeffwan commented Jan 18, 2022

I just notice we don't have go clients and swagger generated in upstream and this leads to apiserver build failure in clean master.

Since we already give the guidance there, it's just one command to generate the codes.

Why are these changes needed?

Address #84
#85

Related issue number

#84
#85

Checks

  • I've made sure the tests are passing.
  • Testing Strategy
    • Unit tests
    • Manual tests
    • This PR is not tested :(

@Jeffwan
Copy link
Collaborator Author

Jeffwan commented Jan 18, 2022

To make the CI pass. I make minor changes to arguments of goimports. it doesn't support excluding folders.

@@ -74,7 +74,7 @@ jobs:
run: go get golang.org/x/tools/cmd/goimports

- name: Run goimports
run: test -z "$(set -o pipefail && $(go env GOPATH)/bin/goimports -l . | tee goimports.out)" || { cat goimports.out && exit 1; }
run: test -z "$(set -o pipefail && $(go env GOPATH)/bin/goimports -l apiserver/ ray-operator/ | tee goimports.out)" || { cat goimports.out && exit 1; }
Copy link
Collaborator

Choose a reason for hiding this comment

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

LGTM

@Jeffwan Jeffwan merged commit 4054f1b into ray-project:master Jan 19, 2022
@Jeffwan Jeffwan mentioned this pull request Jan 19, 2022
4 tasks
@Jeffwan Jeffwan deleted the proto_generation branch January 21, 2022 00:01
lowang-bh pushed a commit to lowang-bh/kuberay that referenced this pull request Sep 24, 2023
* Generate go clients and swagger files

* Apply goimports in specific folders
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants