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

chore: upgrade GAPIC Metadata from v1beta1 to v1 and add experiment logging integration test #778

Merged
merged 9 commits into from
Oct 21, 2021

Conversation

sasha-gitg
Copy link
Member

closes #740

b/203427575
b/201659393

@product-auto-label product-auto-label bot added the api: aiplatform Issues related to the AI Platform API. label Oct 19, 2021
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Oct 19, 2021
@sasha-gitg sasha-gitg changed the title chore: upgrade to GAPIC Metadata from v1beta1 to v1 and add experiment logging integration test chore: upgrade GAPIC Metadata from v1beta1 to v1 and add experiment logging integration test Oct 19, 2021

def test_experiment_logging(self, shared_state):

experiment_name = self._make_display_name("experiment")[:56]
Copy link
Contributor

Choose a reason for hiding this comment

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

what is 56? can you add a comment, same below

Copy link
Member Author

Choose a reason for hiding this comment

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

I truncated the name because the service was throwing on resource id validation:

E           google.api_core.exceptions.InvalidArgument: 400 User-specified resource ID must match the regular expression '[a-z0-9][a-z0-9-]{0,127}'

Interestingly, that exception was only thrown when creating the run(execution) below but not the experiment(context).

I'll add a comment.

@@ -113,6 +122,8 @@
types.job_state = types.job_state_v1
types.machine_resources = types.machine_resources_v1
types.manual_batch_tuning_parameters = types.manual_batch_tuning_parameters_v1
types.metadata_service = types.metadata_service_v1
types.metadata_store = types.metadata_store_v1
Copy link
Contributor

Choose a reason for hiding this comment

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

do we need to add metadata_schema as well, or not because we don't use it?

Copy link
Member Author

Choose a reason for hiding this comment

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

It's currently being unused. We'll add it once it's used.

@nachocano
Copy link
Contributor

LGTM

@nachocano
Copy link
Contributor

LGTM

@nachocano
Copy link
Contributor

LGTM

@sasha-gitg sasha-gitg merged commit 6c7e1fa into googleapis:main Oct 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: aiplatform Issues related to the AI Platform API. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Switch Vertex SDK to v1 Gapic lib for Metadata service once the latest version is published
2 participants