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

Support V5P for type of accelerator_config in google_tpu_v2_vm #10333

Merged
merged 8 commits into from
May 15, 2024

Conversation

marblejenka
Copy link
Member

@marblejenka marblejenka commented Mar 31, 2024

This is PR for hashicorp/terraform-provider-google#17734 .

tpu: added `type` of `accelerator_config` to `google_tpu_v2_vm` resource

Copy link

Hello! I am a robot. Tests will require approval from a repository maintainer to run.

@BBBmau, a repository maintainer, has been assigned to review your changes. If you have not received review feedback within 2 business days, please leave a comment on this PR asking them to take a look.

You can help make sure that review is quick by doing a self-review and by running impacted tests locally.

@github-actions github-actions bot requested a review from BBBmau March 31, 2024 12:59
@BBBmau
Copy link
Collaborator

BBBmau commented Apr 1, 2024

/gcbrun

@BBBmau
Copy link
Collaborator

BBBmau commented Apr 3, 2024

@marblejenka we ran into some issues with CI, could you rebase to cover these issues? We can then run the tests before being able to approve.

@marblejenka
Copy link
Member Author

I found that the tests in the local environment were not running properly, so I will make some corrections. Please wait for a while.

@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 ( 1 file changed, 32 insertions(+), 1 deletion(-))
google-beta provider: Diff ( 3 files changed, 85 insertions(+), 3 deletions(-))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 6
Passed tests: 5
Skipped tests: 0
Affected tests: 1

Click here to see the affected service packages
  • tpuv2

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
TestAccTpuV2Vm_tpuV2VmV5pExample

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

$\textcolor{red}{\textsf{Tests failed during RECORDING mode:}}$
TestAccTpuV2Vm_tpuV2VmV5pExample[Error message] [Debug log]

$\textcolor{red}{\textsf{Please fix these 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 ( 1 file changed, 32 insertions(+), 1 deletion(-))
google-beta provider: Diff ( 3 files changed, 85 insertions(+), 3 deletions(-))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 6
Passed tests: 5
Skipped tests: 0
Affected tests: 1

Click here to see the affected service packages
  • tpuv2

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
TestAccTpuV2Vm_tpuV2VmV5pExample

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

$\textcolor{red}{\textsf{Tests failed during RECORDING mode:}}$
TestAccTpuV2Vm_tpuV2VmV5pExample[Error message] [Debug log]

$\textcolor{red}{\textsf{Please fix these to complete your PR.}}$
View the build log or the debug log for each test

provider = google-beta

name = "<%= ctx[:vars]["vm_name"] %>"
zone = "us-east5-a"
Copy link
Member Author

Choose a reason for hiding this comment

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

At this time, it appears that it is only available the zone for me due to quota restriction.

}

network_config {
enable_external_ips = true
Copy link
Member Author

Choose a reason for hiding this comment

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

This configuration is essentially unnecessary, but I added it to work around the constraints of the VPC network when running tests.

}

scheduling_config {
preemptible = true
Copy link
Member Author

Choose a reason for hiding this comment

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

This configuration is essentially unnecessary, but I added it to work around the quota restriction when running tests.

@marblejenka
Copy link
Member Author

@BBBmau The test is failing with Error 403: Location us-east5-a is not found or access is unauthorized.. From what I've tried, us-east5-a seems to be the only region where we can use TPU v5p with QIR. Can you change settings for the testing Google Cloud project?

The requirement is to increase TPUV5PPreemptiblePerProjectPerZoneForTPUAPI quota to 8 or higher (default value is 0) mabye in us-east5-a.

@bollenberger
Copy link

@BBBmau it looks like in general we've not added accelerator quota for each generation to this test project. The PR overall looks good and we can actually do without the additional test example for the time being, as we don't have access to long term Terraform testing quota.

I'd recommend removing the new example and approving the PR otherwise.

@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 ( 1 file changed, 1 insertion(+), 1 deletion(-))
google-beta provider: Diff ( 2 files changed, 3 insertions(+), 3 deletions(-))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 5
Passed tests: 5
Skipped tests: 0
Affected tests: 0

Click here to see the affected service packages
  • tpuv2
$\textcolor{green}{\textsf{All tests passed!}}$ View the [build log](https://storage.cloud.google.com/ci-vcr-logs/beta/refs/heads/auto-pr-10333/artifacts/964c3a65-6804-4cb2-9ea4-cec47b02a92f/build-log/replaying_test.log)

@marblejenka
Copy link
Member Author

@BBBmau @bollenberger Finally, I deleted all the codes except "V5P". This document suggests that this PR works well.

@marblejenka
Copy link
Member Author

@BBBmau Can you merge this one? I don't have the permission to merge.

@BBBmau BBBmau merged commit 2c73be8 into GoogleCloudPlatform:main May 15, 2024
13 checks passed
@BBBmau
Copy link
Collaborator

BBBmau commented May 15, 2024

thank you for the patience, I wasn't able to merge this right away due to some work being done on branches.

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