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

feat: added new field vm_tags to the workstation config #11015

Merged
merged 3 commits into from
Jun 27, 2024

Conversation

tejal29
Copy link
Contributor

@tejal29 tejal29 commented Jun 21, 2024

Change-Id: I82b45e660fcc4ce8cc6639651cc5d06806ca2ee4

feat: added new field vm_tags to the workstation config

Release Note Template for Downstream PRs (will be copied)

 Added new field vm_tags to the workstation config

Copy link

google-cla bot commented Jun 21, 2024

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@github-actions github-actions bot requested a review from BBBmau June 21, 2024 18:30
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.

@tejal29 tejal29 force-pushed the add_vm_tags branch 2 times, most recently from e37249c to 885d6c6 Compare June 21, 2024 18:36
@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, 8 insertions(+))
google-beta provider: Diff ( 2 files changed, 44 insertions(+), 1 deletion(-))
terraform-google-conversion: Diff ( 1 file changed, 18 insertions(+))

Missing test report

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

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

resource "google_workstations_workstation_config" "primary" {
  host {
    gce_instance {
      vm_tags = # value needed
    }
  }
}

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 66
Passed tests: 32
Skipped tests: 0
Affected tests: 2

Click here to see the affected service packages
  • workstations

Action taken

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

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

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

$\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

@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, 29 insertions(+))
google-beta provider: Diff ( 5 files changed, 277 insertions(+), 1 deletion(-))
terraform-google-conversion: Diff ( 1 file changed, 18 insertions(+))

1 similar comment
@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, 29 insertions(+))
google-beta provider: Diff ( 5 files changed, 277 insertions(+), 1 deletion(-))
terraform-google-conversion: Diff ( 1 file changed, 18 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 64
Passed tests: 29
Skipped tests: 0
Affected tests: 6

Click here to see the affected service packages
  • workstations

Action taken

Found 6 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccWorkstationsWorkstationConfigIamBindingGenerated
  • TestAccWorkstationsWorkstationConfigIamMemberGenerated
  • TestAccWorkstationsWorkstationConfigIamPolicyGenerated
  • TestAccWorkstationsWorkstationConfig_update
  • TestAccWorkstationsWorkstationConfig_vmTags
  • TestAccWorkstationsWorkstationConfig_workstationConfigBasicExample

Get to know how VCR tests work

1 similar comment
@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 64
Passed tests: 29
Skipped tests: 0
Affected tests: 6

Click here to see the affected service packages
  • workstations

Action taken

Found 6 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccWorkstationsWorkstationConfigIamBindingGenerated
  • TestAccWorkstationsWorkstationConfigIamMemberGenerated
  • TestAccWorkstationsWorkstationConfigIamPolicyGenerated
  • TestAccWorkstationsWorkstationConfig_update
  • TestAccWorkstationsWorkstationConfig_vmTags
  • TestAccWorkstationsWorkstationConfig_workstationConfigBasicExample

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

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

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


$\textcolor{red}{\textsf{Tests failed during RECORDING mode:}}$
TestAccWorkstationsWorkstationConfigIamBindingGenerated[Error message] [Debug log]
TestAccWorkstationsWorkstationConfigIamMemberGenerated[Error message] [Debug log]
TestAccWorkstationsWorkstationConfigIamPolicyGenerated[Error message] [Debug log]
TestAccWorkstationsWorkstationConfig_update[Error message] [Debug log]
TestAccWorkstationsWorkstationConfig_workstationConfigBasicExample[Error message] [Debug log]

$\textcolor{red}{\textsf{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

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

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


$\textcolor{red}{\textsf{Tests failed during RECORDING mode:}}$
TestAccWorkstationsWorkstationConfigIamBindingGenerated[Error message] [Debug log]
TestAccWorkstationsWorkstationConfigIamMemberGenerated[Error message] [Debug log]
TestAccWorkstationsWorkstationConfigIamPolicyGenerated[Error message] [Debug log]
TestAccWorkstationsWorkstationConfig_update[Error message] [Debug log]
TestAccWorkstationsWorkstationConfig_workstationConfigBasicExample[Error message] [Debug log]

$\textcolor{red}{\textsf{Errors occurred during RECORDING mode. Please fix them to complete your PR.}}$

View the build log or the debug log for each test

@tejal29
Copy link
Contributor Author

tejal29 commented Jun 25, 2024

Tests failed during RECORDING mode: TestAccWorkstationsWorkstationConfigIamBindingGenerated[Error message] [Debug log] TestAccWorkstationsWorkstationConfigIamMemberGenerated[Error message] [Debug log] TestAccWorkstationsWorkstationConfigIamPolicyGenerated[Error message] [Debug log] TestAccWorkstationsWorkstationConfig_update[Error message] [Debug log] TestAccWorkstationsWorkstationConfig_workstationConfigBasicExample[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

Not sure how to fix these. We have provider: google-beta added to all the resources.

@tejal29
Copy link
Contributor Author

tejal29 commented Jun 25, 2024

Tests failed during RECORDING mode: TestAccWorkstationsWorkstationConfigIamBindingGenerated[Error message] [Debug log] TestAccWorkstationsWorkstationConfigIamMemberGenerated[Error message] [Debug log] TestAccWorkstationsWorkstationConfigIamPolicyGenerated[Error message] [Debug log] TestAccWorkstationsWorkstationConfig_update[Error message] [Debug log] TestAccWorkstationsWorkstationConfig_workstationConfigBasicExample[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

Not sure how to fix these. We have provider: google-beta added to all the resources.

Looks like it is coming from here.

func TestAcc{{ $.ResourceName }}IamBindingGenerated(t *testing.T) {

Do we need to configure some external providers for workstationconfig resource?

@tejal29
Copy link
Contributor Author

tejal29 commented Jun 26, 2024

@BBBmau Let me know if you have seen this issue on other PRs. I haven't added touched the tests which failed in this PR.

Copy link

@BBBmau This PR has been waiting for review for 3 weekdays. Please take a look! Use the label disable-review-reminders to disable these notifications.

}
`, context)
}

Copy link
Collaborator

Choose a reason for hiding this comment

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

I noticed that the new test isn't added as part of magic-modules/mmv1/third_party/terraform/services/workstations/go/resource_workstations_workstation_config_test.go.tmpl

could you add this? this may be the reason for the unusual errors. I don't see anything that stands out that would cause the rest of the tests to fail.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok. Will do.

Copy link
Collaborator

Choose a reason for hiding this comment

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

got confirmation that the failing tests are unrelated. We can approve and merge this with the new info 🎊

@github-actions github-actions bot requested a review from BBBmau June 27, 2024 20:36
@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, 29 insertions(+))
google-beta provider: Diff ( 5 files changed, 277 insertions(+), 1 deletion(-))
terraform-google-conversion: Diff ( 1 file changed, 18 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

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

Click here to see the affected service packages
  • workstations

Action taken

Found 5 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccWorkstationsWorkstationConfigIamBindingGenerated
  • TestAccWorkstationsWorkstationConfigIamMemberGenerated
  • TestAccWorkstationsWorkstationConfigIamPolicyGenerated
  • TestAccWorkstationsWorkstationConfig_update
  • TestAccWorkstationsWorkstationConfig_workstationConfigBasicExample

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

$\textcolor{red}{\textsf{Tests failed during RECORDING mode:}}$
TestAccWorkstationsWorkstationConfigIamBindingGenerated[Error message] [Debug log]
TestAccWorkstationsWorkstationConfigIamMemberGenerated[Error message] [Debug log]
TestAccWorkstationsWorkstationConfigIamPolicyGenerated[Error message] [Debug log]
TestAccWorkstationsWorkstationConfig_update[Error message] [Debug log]
TestAccWorkstationsWorkstationConfig_workstationConfigBasicExample[Error message] [Debug log]

$\textcolor{red}{\textsf{Errors occurred during RECORDING mode. Please fix them to complete your PR.}}$

View the build log or the debug log for each test

Copy link
Collaborator

@BBBmau BBBmau left a comment

Choose a reason for hiding this comment

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

got confirmation that the failing tests are unrelated. We can approve and merge this with the new info 🎊

@tejal29
Copy link
Contributor Author

tejal29 commented Jun 28, 2024

Thanks!

@github-actions github-actions bot requested a review from BBBmau June 28, 2024 17:40
BBBmau pushed a commit to BBBmau/magic-modules that referenced this pull request Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants