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

vertex-ai: add google_vertex_ai_models resource with create-via-copy #12074

Merged
merged 25 commits into from
Dec 4, 2024

Conversation

BBBmau
Copy link
Collaborator

@BBBmau BBBmau commented Oct 21, 2024

This initial PR will begin with supporting :COPY

replaces #10628

Will include PRs to support :UPLOAD in separate PRs.

Release Note Template for Downstream PRs (will be copied)

See Write release notes for guidance.

`google_vertex_ai_model`

@modular-magician

This comment was marked as outdated.

@modular-magician

This comment was marked as outdated.

@modular-magician

This comment was marked as outdated.

@modular-magician

This comment was marked as outdated.

@modular-magician

This comment was marked as outdated.

@modular-magician

This comment was marked as outdated.

@BBBmau BBBmau force-pushed the add-vertex-ai-model-COPY branch from f964094 to d9a7bde Compare October 21, 2024 22:58
@BBBmau BBBmau requested a review from SarahFrench October 21, 2024 23:09
@modular-magician

This comment was marked as duplicate.

@modular-magician

This comment was marked as outdated.

@modular-magician

This comment was marked as outdated.

@modular-magician

This comment was marked as outdated.

@modular-magician

This comment was marked as outdated.

@modular-magician

This comment was marked as duplicate.

@modular-magician

This comment was marked as duplicate.

@modular-magician

This comment was marked as outdated.

@modular-magician

This comment was marked as outdated.

@modular-magician

This comment was marked as outdated.

@modular-magician

This comment was marked as outdated.

@modular-magician

This comment was marked as outdated.

@modular-magician

This comment was marked as outdated.

@modular-magician

This comment was marked as outdated.

@modular-magician

This comment was marked as outdated.

@modular-magician

This comment was marked as outdated.

@modular-magician

This comment was marked as outdated.

@modular-magician

This comment was marked as outdated.

@modular-magician

This comment was marked as outdated.

@modular-magician
Copy link
Collaborator

🔴 Tests failed during RECORDING mode:
TestAccVertexAIModel_modelIdNotProvidedAtCreateTime [Error message] [Debug log]
TestAccVertexAIModel_modelIdProvidedAtCreateTime [Error message] [Debug log]
TestAccVertexAIModel_postCreationUpdates [Error message] [Debug log]

🔴 Errors occurred during RECORDING mode. Please fix them to complete your PR.

View the build log or the debug log for each test

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

google provider: Diff ( 6 files changed, 2947 insertions(+), 2 deletions(-))
google-beta provider: Diff ( 6 files changed, 2947 insertions(+), 2 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 776 insertions(+))

Missing test report

Your PR includes resource fields which are not covered by any test.

Resource: google_vertex_ai_model (4 total tests)
Please add an acceptance test which includes these fields. The test should include the following:

resource "google_vertex_ai_model" "primary" {
  artifact_uri = # value needed
  container_spec {
    args               = # value needed
    command            = # value needed
    deployment_timeout = # value needed
    env {
      name  = # value needed
      value = # value needed
    }
    grpc_ports {
      container_port = # value needed
    }
    health_probe {
      exec {
        command = # value needed
      }
      period_seconds  = # value needed
      timeout_seconds = # value needed
    }
    health_route = # value needed
    image_uri    = # value needed
    ports {
      container_port = # value needed
    }
    predict_route         = # value needed
    shared_memory_size_mb = # value needed
    startup_probe {
      exec {
        command = # value needed
      }
      period_seconds  = # value needed
      timeout_seconds = # value needed
    }
  }
  encryption_spec {
    kms_key_name = # value needed
  }
  metadata {
    config {
      algorithm_config {
        tree_ah_config {
          leaf_node_embedding_count    = # value needed
          leaf_nodes_to_search_percent = # value needed
        }
      }
      approximate_neighbors_count = # value needed
      dimensions                  = # value needed
      distance_measure_type       = # value needed
      feature_norm_type           = # value needed
      shard_size                  = # value needed
    }
  }
  metadata_schema_uri = # value needed
  model_name          = # value needed
  pipeline_job        = # value needed
  predict_schemata {
    instance_schema_uri   = # value needed
    parameters_schema_uri = # value needed
    prediction_schema_uri = # value needed
  }
  supported_export_formats {
    exportable_content = # value needed
  }
  version_aliases = # value needed
}

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 61
Passed tests: 55
Skipped tests: 3
Affected tests: 3

Click here to see the affected service packages
  • vertexai

Action taken

Found 3 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccVertexAIModel_modelIdNotProvidedAtCreateTime
  • TestAccVertexAIModel_modelIdProvidedAtCreateTime
  • TestAccVertexAIModel_postCreationUpdates

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

google provider: Diff ( 6 files changed, 2948 insertions(+), 2 deletions(-))
google-beta provider: Diff ( 6 files changed, 2948 insertions(+), 2 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 776 insertions(+))

Missing test report

Your PR includes resource fields which are not covered by any test.

Resource: google_vertex_ai_model (4 total tests)
Please add an acceptance test which includes these fields. The test should include the following:

resource "google_vertex_ai_model" "primary" {
  artifact_uri = # value needed
  container_spec {
    args               = # value needed
    command            = # value needed
    deployment_timeout = # value needed
    env {
      name  = # value needed
      value = # value needed
    }
    grpc_ports {
      container_port = # value needed
    }
    health_probe {
      exec {
        command = # value needed
      }
      period_seconds  = # value needed
      timeout_seconds = # value needed
    }
    health_route = # value needed
    image_uri    = # value needed
    ports {
      container_port = # value needed
    }
    predict_route         = # value needed
    shared_memory_size_mb = # value needed
    startup_probe {
      exec {
        command = # value needed
      }
      period_seconds  = # value needed
      timeout_seconds = # value needed
    }
  }
  encryption_spec {
    kms_key_name = # value needed
  }
  metadata {
    config {
      algorithm_config {
        tree_ah_config {
          leaf_node_embedding_count    = # value needed
          leaf_nodes_to_search_percent = # value needed
        }
      }
      approximate_neighbors_count = # value needed
      dimensions                  = # value needed
      distance_measure_type       = # value needed
      feature_norm_type           = # value needed
      shard_size                  = # value needed
    }
  }
  metadata_schema_uri = # value needed
  model_name          = # value needed
  pipeline_job        = # value needed
  predict_schemata {
    instance_schema_uri   = # value needed
    parameters_schema_uri = # value needed
    prediction_schema_uri = # value needed
  }
  supported_export_formats {
    exportable_content = # value needed
  }
  version_aliases = # value needed
}

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 61
Passed tests: 55
Skipped tests: 3
Affected tests: 3

Click here to see the affected service packages
  • vertexai

Action taken

Found 3 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccVertexAIModel_modelIdNotProvidedAtCreateTime
  • TestAccVertexAIModel_modelIdProvidedAtCreateTime
  • TestAccVertexAIModel_postCreationUpdates

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

🟢 Tests passed during RECORDING mode:
TestAccVertexAIModel_modelIdNotProvidedAtCreateTime [Debug log]
TestAccVertexAIModel_modelIdProvidedAtCreateTime [Debug log]

🟢 No issues found for passed tests after REPLAYING rerun.


🔴 Tests failed during RECORDING mode:
TestAccVertexAIModel_postCreationUpdates [Error message] [Debug log]

🔴 Errors occurred during RECORDING mode. Please fix them to complete your PR.

View the build log or the debug log for each test

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

google provider: Diff ( 6 files changed, 2948 insertions(+), 2 deletions(-))
google-beta provider: Diff ( 6 files changed, 2948 insertions(+), 2 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 776 insertions(+))

Missing test report

Your PR includes resource fields which are not covered by any test.

Resource: google_vertex_ai_model (4 total tests)
Please add an acceptance test which includes these fields. The test should include the following:

resource "google_vertex_ai_model" "primary" {
  artifact_uri = # value needed
  container_spec {
    args               = # value needed
    command            = # value needed
    deployment_timeout = # value needed
    env {
      name  = # value needed
      value = # value needed
    }
    grpc_ports {
      container_port = # value needed
    }
    health_probe {
      exec {
        command = # value needed
      }
      period_seconds  = # value needed
      timeout_seconds = # value needed
    }
    health_route = # value needed
    image_uri    = # value needed
    ports {
      container_port = # value needed
    }
    predict_route         = # value needed
    shared_memory_size_mb = # value needed
    startup_probe {
      exec {
        command = # value needed
      }
      period_seconds  = # value needed
      timeout_seconds = # value needed
    }
  }
  encryption_spec {
    kms_key_name = # value needed
  }
  metadata {
    config {
      algorithm_config {
        tree_ah_config {
          leaf_node_embedding_count    = # value needed
          leaf_nodes_to_search_percent = # value needed
        }
      }
      approximate_neighbors_count = # value needed
      dimensions                  = # value needed
      distance_measure_type       = # value needed
      feature_norm_type           = # value needed
      shard_size                  = # value needed
    }
  }
  metadata_schema_uri = # value needed
  pipeline_job        = # value needed
  predict_schemata {
    instance_schema_uri   = # value needed
    parameters_schema_uri = # value needed
    prediction_schema_uri = # value needed
  }
  supported_export_formats {
    exportable_content = # value needed
  }
  version_aliases = # value needed
}

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 61
Passed tests: 57
Skipped tests: 3
Affected tests: 1

Click here to see the affected service packages
  • vertexai

Action taken

Found 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccVertexAIModel_postCreationUpdates

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

🟢 Tests passed during RECORDING mode:
TestAccVertexAIModel_postCreationUpdates [Debug log]

🟢 No issues found for passed tests after REPLAYING rerun.


🟢 All tests passed!

View the build log or the debug log for each test

@BBBmau
Copy link
Collaborator Author

BBBmau commented Nov 22, 2024

Just so it doesn't get lost: #12074 (comment)

once this is approved I can merge it into UPLOAD and include UPLOAD as part of the copy tests for initial setup prior to actually testing the copy method by itself.

Copy link
Contributor

@SarahFrench SarahFrench left a comment

Choose a reason for hiding this comment

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

Some last comments to get this PR 100% about create via copy and to allow all code changes necessary for upload to be added in the separate upload PR

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

google provider: Diff ( 6 files changed, 2946 insertions(+), 2 deletions(-))
google-beta provider: Diff ( 6 files changed, 2946 insertions(+), 2 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 776 insertions(+))

Missing test report

Your PR includes resource fields which are not covered by any test.

Resource: google_vertex_ai_model (4 total tests)
Please add an acceptance test which includes these fields. The test should include the following:

resource "google_vertex_ai_model" "primary" {
  artifact_uri = # value needed
  container_spec {
    args               = # value needed
    command            = # value needed
    deployment_timeout = # value needed
    env {
      name  = # value needed
      value = # value needed
    }
    grpc_ports {
      container_port = # value needed
    }
    health_probe {
      exec {
        command = # value needed
      }
      period_seconds  = # value needed
      timeout_seconds = # value needed
    }
    health_route = # value needed
    image_uri    = # value needed
    ports {
      container_port = # value needed
    }
    predict_route         = # value needed
    shared_memory_size_mb = # value needed
    startup_probe {
      exec {
        command = # value needed
      }
      period_seconds  = # value needed
      timeout_seconds = # value needed
    }
  }
  encryption_spec {
    kms_key_name = # value needed
  }
  metadata {
    config {
      algorithm_config {
        tree_ah_config {
          leaf_node_embedding_count    = # value needed
          leaf_nodes_to_search_percent = # value needed
        }
      }
      approximate_neighbors_count = # value needed
      dimensions                  = # value needed
      distance_measure_type       = # value needed
      feature_norm_type           = # value needed
      shard_size                  = # value needed
    }
  }
  metadata_schema_uri = # value needed
  pipeline_job        = # value needed
  predict_schemata {
    instance_schema_uri   = # value needed
    parameters_schema_uri = # value needed
    prediction_schema_uri = # value needed
  }
  supported_export_formats {
    exportable_content = # value needed
  }
  version_aliases = # value needed
}

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 61
Passed tests: 58
Skipped tests: 3
Affected tests: 0

Click here to see the affected service packages
  • vertexai

🟢 All tests passed!

View the build log

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

google provider: Diff ( 6 files changed, 2943 insertions(+), 2 deletions(-))
google-beta provider: Diff ( 6 files changed, 2943 insertions(+), 2 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 776 insertions(+))

Missing test report

Your PR includes resource fields which are not covered by any test.

Resource: google_vertex_ai_model (4 total tests)
Please add an acceptance test which includes these fields. The test should include the following:

resource "google_vertex_ai_model" "primary" {
  artifact_uri = # value needed
  container_spec {
    args               = # value needed
    command            = # value needed
    deployment_timeout = # value needed
    env {
      name  = # value needed
      value = # value needed
    }
    grpc_ports {
      container_port = # value needed
    }
    health_probe {
      exec {
        command = # value needed
      }
      period_seconds  = # value needed
      timeout_seconds = # value needed
    }
    health_route = # value needed
    image_uri    = # value needed
    ports {
      container_port = # value needed
    }
    predict_route         = # value needed
    shared_memory_size_mb = # value needed
    startup_probe {
      exec {
        command = # value needed
      }
      period_seconds  = # value needed
      timeout_seconds = # value needed
    }
  }
  encryption_spec {
    kms_key_name = # value needed
  }
  metadata {
    config {
      algorithm_config {
        tree_ah_config {
          leaf_node_embedding_count    = # value needed
          leaf_nodes_to_search_percent = # value needed
        }
      }
      approximate_neighbors_count = # value needed
      dimensions                  = # value needed
      distance_measure_type       = # value needed
      feature_norm_type           = # value needed
      shard_size                  = # value needed
    }
  }
  metadata_schema_uri = # value needed
  pipeline_job        = # value needed
  predict_schemata {
    instance_schema_uri   = # value needed
    parameters_schema_uri = # value needed
    prediction_schema_uri = # value needed
  }
  supported_export_formats {
    exportable_content = # value needed
  }
  version_aliases = # value needed
}

@BBBmau BBBmau requested a review from SarahFrench December 4, 2024 00:52
@BBBmau
Copy link
Collaborator Author

BBBmau commented Dec 4, 2024

addressed the last couple changes, should be good for another review and then I could look into upload support. @SarahFrench

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 61
Passed tests: 58
Skipped tests: 3
Affected tests: 0

Click here to see the affected service packages
  • vertexai

🟢 All tests passed!

View the build log

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

google provider: Diff ( 6 files changed, 2938 insertions(+), 2 deletions(-))
google-beta provider: Diff ( 6 files changed, 2938 insertions(+), 2 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 771 insertions(+))

Missing test report

Your PR includes resource fields which are not covered by any test.

Resource: google_vertex_ai_model (4 total tests)
Please add an acceptance test which includes these fields. The test should include the following:

resource "google_vertex_ai_model" "primary" {
  artifact_uri = # value needed
  container_spec {
    args               = # value needed
    command            = # value needed
    deployment_timeout = # value needed
    env {
      name  = # value needed
      value = # value needed
    }
    grpc_ports {
      container_port = # value needed
    }
    health_probe {
      exec {
        command = # value needed
      }
      period_seconds  = # value needed
      timeout_seconds = # value needed
    }
    health_route = # value needed
    image_uri    = # value needed
    ports {
      container_port = # value needed
    }
    predict_route         = # value needed
    shared_memory_size_mb = # value needed
    startup_probe {
      exec {
        command = # value needed
      }
      period_seconds  = # value needed
      timeout_seconds = # value needed
    }
  }
  encryption_spec {
    kms_key_name = # value needed
  }
  metadata {
    config {
      algorithm_config {
        tree_ah_config {
          leaf_node_embedding_count    = # value needed
          leaf_nodes_to_search_percent = # value needed
        }
      }
      approximate_neighbors_count = # value needed
      dimensions                  = # value needed
      distance_measure_type       = # value needed
      feature_norm_type           = # value needed
      shard_size                  = # value needed
    }
  }
  metadata_schema_uri = # value needed
  pipeline_job        = # value needed
  predict_schemata {
    instance_schema_uri   = # value needed
    parameters_schema_uri = # value needed
    prediction_schema_uri = # value needed
  }
  supported_export_formats {
    exportable_content = # value needed
  }
  version_aliases = # value needed
}

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 61
Passed tests: 58
Skipped tests: 3
Affected tests: 0

Click here to see the affected service packages
  • vertexai

🟢 All tests passed!

View the build log

Copy link
Contributor

@SarahFrench SarahFrench left a comment

Choose a reason for hiding this comment

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

Approving, but just a heads up that this PR is currently due to go into main branch. If you merge it as-is then it'll be in the December 16th release, despite a lack of test coverage etc.

@BBBmau BBBmau changed the base branch from main to vertex-ai-model-resource December 4, 2024 18:55
@BBBmau
Copy link
Collaborator Author

BBBmau commented Dec 4, 2024

Approving, but just a heads up that this PR is currently due to go into main branch. If you merge it as-is then it'll be in the December 16th release, despite a lack of test coverage etc.

@SarahFrench changed base to vertex-ai-model-resource in order to include support of UPLOAD, the original idea was to merge this into the existing UPLOAD PR but would just introduce some complex git history. Creating a new branch that would have it's first commit be the support of :COPY is best and just makes the review process easier.

@BBBmau BBBmau merged commit 4472d64 into vertex-ai-model-resource Dec 4, 2024
15 of 16 checks passed
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.

3 participants