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

Fix the test TestAccTpuV2Vm_tpuV2VmBasicExample #9391

Closed
wants to merge 1 commit into from

Conversation

zli82016
Copy link
Member

@zli82016 zli82016 commented Nov 1, 2023

Try to fix the test TestAccTpuV2Vm_tpuV2VmBasicExample, which failed with the error

------- Stdout: -------
=== RUN   TestAccTpuV2Vm_tpuV2VmBasicExample
=== PAUSE TestAccTpuV2Vm_tpuV2VmBasicExample
=== CONT  TestAccTpuV2Vm_tpuV2VmBasicExample
    vcr_utils.go:152: Step 1/2 error: Error running apply: exit status 1
        Error: Error waiting to create Vm: Error waiting for Creating Vm: Error code 8, message: There is no more capacity in the zone "us-central1-c"; you can try in another zone where Cloud TPU Nodes are offered (see https://cloud.google.com/tpu/docs/regions) [EID: 0x9171da80a38afc2]
          with google_tpu_v2_vm.tpu,
          on terraform_plugin_test.tf line 6, in resource "google_tpu_v2_vm" "tpu":
           6: resource "google_tpu_v2_vm" "tpu" {
--- FAIL: TestAccTpuV2Vm_tpuV2VmBasicExample (31.10s)
FAIL

If the test still fails with the same reason after this change is merged, we need to revert this change and consider other ways to address the capacity issue.

Release Note Template for Downstream PRs (will be copied)


@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.

Terraform GA: Diff ( 1 file changed, 5 deletions(-))
Terraform Beta: Diff ( 2 files changed, 7 insertions(+), 8 deletions(-))
TF OiCS: Diff ( 4 files changed, 117 insertions(+))

@zli82016 zli82016 closed this Nov 1, 2023
@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 3197
Passed tests 2871
Skipped tests: 325
Affected tests: 1

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_tpuV2VmBasicTestExample

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

$\textcolor{green}{\textsf{Tests passed during RECORDING mode:}}$
TestAccTpuV2Vm_tpuV2VmBasicTestExample[Debug log]

Rerun these tests in REPLAYING mode to catch issues

$\textcolor{green}{\textsf{No issues found for passed tests after REPLAYING rerun.}}$


$\textcolor{green}{\textsf{All tests passed!}}$
View the build log or the debug log for each test

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