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

Prepared spot_instance_basic for inclusion in C.G.C. documentation #5950

Conversation

saqibkhanspeaks12
Copy link
Contributor

@saqibkhanspeaks12 saqibkhanspeaks12 commented Apr 18, 2022

Created sample for creating spot basic Spot VM for CGC
https://cloud.google.com/compute/docs/instances/create-use-spot#create

If this PR is for Terraform, I acknowledge that I have:

  • Searched through the issue tracker for an open issue that this either resolves or contributes to, commented on it to claim it, and written "fixes {url}" or "part of {url}" in this PR description. If there were no relevant open issues, I opened one and commented that I would like to work on it (not necessary for very small changes).
  • Generated Terraform, and ran make test and make lint to ensure it passes unit and linter tests.
  • Ensured that all new fields I added that can be set by a user appear in at least one example (for generated resources) or third_party test (for handwritten resources or update tests).
  • Ran relevant acceptance tests (If the acceptance tests do not yet pass or you are unable to run them, please let your reviewer know).
  • Read the Release Notes Guide before writing my release note below.

Release Note Template for Downstream PRs (will be copied)

@modular-magician
Copy link
Collaborator

Hello! I am a robot who works on Magic Modules PRs.

I have detected that you are a community contributor, so your PR will be assigned to someone with a commit-bit on this repo for initial review.

Thanks for your contribution! A human will be with you soon.

@shuyama1, please review this PR or find an appropriate assignee.

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform Beta: Diff ( 1 file changed, 54 insertions(+))
TF Cloud Doc Samples: Diff ( 1 file changed, 28 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 1987
Passed tests 1744
Skipped tests: 240
Failed tests: 3

Action taken

Triggering VCR tests in RECORDING mode for the following tests that failed during VCR: TestAccFirebaserulesRelease_BasicRelease|TestAccServiceNetworkingPeeredDNSDomain_basic|TestAccCGCSnippet_spotInstanceBasicExample

@modular-magician
Copy link
Collaborator

Tests passed during RECORDING mode:
TestAccCGCSnippet_spotInstanceBasicExample[view]
TestAccServiceNetworkingPeeredDNSDomain_basic[view]
TestAccFirebaserulesRelease_BasicRelease[view]

All tests passed
View the build log or the debug log for each test

@shuyama1
Copy link
Member

/gcbrun

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform Beta: Diff ( 1 file changed, 54 insertions(+))
TF Cloud Doc Samples: Diff ( 1 file changed, 28 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 1986
Passed tests 1743
Skipped tests: 240
Failed tests: 3

Action taken

Triggering VCR tests in RECORDING mode for the following tests that failed during VCR: TestAccComputeForwardingRule_update|TestAccServiceNetworkingPeeredDNSDomain_basic|TestAccDatasourceGoogleServiceNetworkingPeeredDnsDomain_basic

@modular-magician
Copy link
Collaborator

Tests passed during RECORDING mode:
TestAccServiceNetworkingPeeredDNSDomain_basic[view]
TestAccComputeForwardingRule_update[view]

Tests failed during RECORDING mode:
TestAccDatasourceGoogleServiceNetworkingPeeredDnsDomain_basic[view]

Please fix these to complete your PR
View the build log or the debug log for each test

@saqibkhanspeaks12
Copy link
Contributor Author

Fixed the conflict, please initiate test again

@shuyama1
Copy link
Member

shuyama1 commented Apr 25, 2022

Hey @saqibkhanspeaks12. Looks like the conflicts still exit. Would you mind taking a look? Sorry about that. Please let me if you have any questions. Also we just promoted Spot VMs to GA recently in #5960. But it's totally your call if you want to add this in GA as well :)

@saqibkhanspeaks12
Copy link
Contributor Author

@shuyama1 Thanks for letting me know. I wasn't aware of the update to GA. If it makes more sense, should I just close the beta PR and raise a new PR for GA provider itself? that way this remains more relevant. Looking for the best way to take this forward.

@shuyama1
Copy link
Member

Simply removing min_version: beta in the terramform.yaml and provider = google-beta in your sample should generate the GA documentation and tests for both providers I believe! Sorry about the extra work!

miticojo and others added 15 commits April 25, 2022 21:12
…stance_template` & `google_compute_instance` resource (GoogleCloudPlatform#5696)

* update instance template validatefunc values

Co-authored-by: upodroid <cy@borg.dev>

* add the change to instances as well

* fix docs again

* remove ValidateFunc
* Add new IGM.UpdatePolicy features - minimal_action=REFRESH and most_disruptive_allowed_action

* Fix documentation of most_disruptive_allowed_action

* Make most_disruptive_allowed_action an Optional field.

* Fix RMIG UpdatePolicy flattening.

* Fix most_disruptive_allowed_action documentation - new field is Optional.

* Fix most_disruptive_allowed_action documentation - and improve testing.

* Fix whitespaces in test.

Co-authored-by: Grzegorz Sancewicz <gsancewicz@google.com>
* Fixed database version

* Updated DB versions
* Added Cloud SQL flags and user examples

* Changed name to id to fix Reference to undeclared resource error

* fixed references

* fixed flags

* Removed the user part because it's causing errors
Co-authored-by: upodroid <cy@borg.dev>
Co-authored-by: Riley Karson <rileykarson@google.com>
@saqibkhanspeaks12 saqibkhanspeaks12 deleted the bug-216854681 branch April 25, 2022 21:19
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.