-
Notifications
You must be signed in to change notification settings - Fork 9
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
Refactor /codegen/build-clients.sh
to support new apis
structure, regenerate for 2024-10
#76
Merged
austin-denoble
merged 4 commits into
release-candidate/2024-10
from
adenoble/refactor-code-generation-regenerate-2024-10
Sep 16, 2024
Merged
Refactor /codegen/build-clients.sh
to support new apis
structure, regenerate for 2024-10
#76
austin-denoble
merged 4 commits into
release-candidate/2024-10
from
adenoble/refactor-code-generation-regenerate-2024-10
Sep 16, 2024
Conversation
This file contains 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
…re for the upcoming API version, specifically inference is its own module, and db_control/db_data split control and data plane, rename and update exports and imports
austin-denoble
commented
Sep 14, 2024
pull_request: | ||
branches: | ||
- main | ||
pull_request: {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ci workflow wasn't running because we only run against main
and I'm working againrelease-candidate/2024-10
here.
haruska
approved these changes
Sep 16, 2024
austin-denoble
deleted the
adenoble/refactor-code-generation-regenerate-2024-10
branch
September 16, 2024 17:48
austin-denoble
added a commit
that referenced
this pull request
Sep 19, 2024
… regenerate for `2024-10` (#76) ## Problem The upstream `/apis` submodule has undergone some changes since we last regenerated the client core. Our `/codegen/build-clients.sh` script no longer handles the new module naming or structure properly. Additionally, we want to regenerate off the upcoming API version so we can pull in changes for things like Rerank. This PR is **merging to a release candidate (RC) branch: `release-candidate/2024-10`**. We will track upcoming major version changes in this branch and use it for releasing dev builds. ## Solution - Refactor `codegen/build-clients.sh` script to support the newer structure for the upcoming API version, specifically `inference` is its own module, and `db_control`/`db_data` as separate modules. - Update imports and exports for `control` -> `db_control`, and `control` -> `inference` for the `Embed()` method on `InferenceService`. We made the decision to have `InferenceService` as its own module inside `Client` because of the split in the API spec, so this was fairly easy to refactor around here. ## Type of Change - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] This change requires a documentation update - [X] Infrastructure change (CI configs, etc) - [ ] Non-code change (docs, etc) - [ ] None of the above: (explain here) ## Test Plan The code changes under `/internal/gen/*` are all from running the new `/codegen/build-clients.sh` script. I changed files in the submodule for `apis` manually for generating, but it aligns with this PR: pinecone-io/apis#138 Make sure CI build + tests pass for the new core stuff here.
austin-denoble
added a commit
that referenced
this pull request
Sep 20, 2024
… regenerate for `2024-10` (#76) ## Problem The upstream `/apis` submodule has undergone some changes since we last regenerated the client core. Our `/codegen/build-clients.sh` script no longer handles the new module naming or structure properly. Additionally, we want to regenerate off the upcoming API version so we can pull in changes for things like Rerank. This PR is **merging to a release candidate (RC) branch: `release-candidate/2024-10`**. We will track upcoming major version changes in this branch and use it for releasing dev builds. ## Solution - Refactor `codegen/build-clients.sh` script to support the newer structure for the upcoming API version, specifically `inference` is its own module, and `db_control`/`db_data` as separate modules. - Update imports and exports for `control` -> `db_control`, and `control` -> `inference` for the `Embed()` method on `InferenceService`. We made the decision to have `InferenceService` as its own module inside `Client` because of the split in the API spec, so this was fairly easy to refactor around here. ## Type of Change - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] This change requires a documentation update - [X] Infrastructure change (CI configs, etc) - [ ] Non-code change (docs, etc) - [ ] None of the above: (explain here) ## Test Plan The code changes under `/internal/gen/*` are all from running the new `/codegen/build-clients.sh` script. I changed files in the submodule for `apis` manually for generating, but it aligns with this PR: pinecone-io/apis#138 Make sure CI build + tests pass for the new core stuff here.
7 tasks
austin-denoble
added a commit
that referenced
this pull request
Oct 23, 2024
… regenerate for `2024-10` (#76) ## Problem The upstream `/apis` submodule has undergone some changes since we last regenerated the client core. Our `/codegen/build-clients.sh` script no longer handles the new module naming or structure properly. Additionally, we want to regenerate off the upcoming API version so we can pull in changes for things like Rerank. This PR is **merging to a release candidate (RC) branch: `release-candidate/2024-10`**. We will track upcoming major version changes in this branch and use it for releasing dev builds. ## Solution - Refactor `codegen/build-clients.sh` script to support the newer structure for the upcoming API version, specifically `inference` is its own module, and `db_control`/`db_data` as separate modules. - Update imports and exports for `control` -> `db_control`, and `control` -> `inference` for the `Embed()` method on `InferenceService`. We made the decision to have `InferenceService` as its own module inside `Client` because of the split in the API spec, so this was fairly easy to refactor around here. ## Type of Change - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] This change requires a documentation update - [X] Infrastructure change (CI configs, etc) - [ ] Non-code change (docs, etc) - [ ] None of the above: (explain here) ## Test Plan The code changes under `/internal/gen/*` are all from running the new `/codegen/build-clients.sh` script. I changed files in the submodule for `apis` manually for generating, but it aligns with this PR: pinecone-io/apis#138 Make sure CI build + tests pass for the new core stuff here.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Problem
The upstream
/apis
submodule has undergone some changes since we last regenerated the client core. Our/codegen/build-clients.sh
script no longer handles the new module naming or structure properly.Additionally, we want to regenerate off the upcoming API version so we can pull in changes for things like Rerank.
This PR is merging to a release candidate (RC) branch:
release-candidate/2024-10
. We will track upcoming major version changes in this branch and use it for releasing dev builds.Solution
codegen/build-clients.sh
script to support the newer structure for the upcoming API version, specificallyinference
is its own module, anddb_control
/db_data
as separate modules.control
->db_control
, andcontrol
->inference
for theEmbed()
method onInferenceService
.We made the decision to have
InferenceService
as its own module insideClient
because of the split in the API spec, so this was fairly easy to refactor around here.Type of Change
Test Plan
The code changes under
/internal/gen/*
are all from running the new/codegen/build-clients.sh
script. I changed files in the submodule forapis
manually for generating, but it aligns with this PR: https://github.com/pinecone-io/apis/pull/138Make sure CI build + tests pass for the new core stuff here.