-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'GoogleCloudPlatform:main' into gcip_config
- Loading branch information
Showing
177 changed files
with
1,559 additions
and
853 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
--- | ||
title: "Review a PR" | ||
weight: 11 | ||
--- | ||
|
||
# Review a PR | ||
|
||
This page provides guidelines for reviewing Magic Modules pull requests | ||
|
||
1. Read the PR description to understand the context and ensure the PR either | ||
* is linked to a GitHub issue or an internal bug | ||
* if not, check the [issue tracker](https://github.com/hashicorp/terraform-provider-google/issues) to see whether the feature has already been requested and add the issues in the description, if any. | ||
* establishes clear context itself via title or description. | ||
2. If the PR adds any new resource, ensure that the resource does not already exists in the [GA provider](https://github.com/hashicorp/terraform-provider-google) or [beta provider](https://github.com/hashicorp/terraform-provider-google-beta) | ||
1. Read through all the changes in the PR, generated code in the downstreams and the API documentation to ensure that: | ||
1. the resource schema added in the PR matches the API structure. | ||
1. the features are added in the correct version | ||
* features only available in beta are not included in the GA google provider. | ||
* features added to the GA provider are also included in the beta provider -- beta should be a strict superset of GA. | ||
1. no [breaking changes]({{< ref "/develop/breaking-changes" >}}) are introduced without a valid justification. | ||
1. verify the change actually resolves the linked issues, if any. | ||
1. Check the tests added/modified to ensure that: | ||
1. all fields added/updated in the PR appear in at least one test. | ||
* It is advisable to test updating from a non-zero value to a zero value if feasible. | ||
1. all mutable fields are tested in at least one update test. | ||
1. all related tests pass in GA for features promoted from beta to GA. | ||
{{< hint info >}}Note: | ||
Presubmit VCR tests do not run in GA. Manual testing is required for promoted GA features. | ||
{{< /hint >}} | ||
1. newly added or modified diff suppress functions are tested in at least one unit test. | ||
1. the linked issue (if any) is covered by at least one test that reproduces the issue | ||
* for example - a bugfix should test the bug (or explain why it's not feasible to do so in the description) and an enhancement should test the new behaviour(s). | ||
1. all related PR presubmit tests have been completed successfully, including: | ||
* terraform-provider-breaking-change-test | ||
* presubmit-rake-tests | ||
* terraform-provider-google-build-and-unit-tests | ||
* terraform-provider-google-beta-build-and-unit-tests | ||
* VCR-test | ||
{{< hint info >}}Note: | ||
Some acceptance tests may be skipped in VCR and manual testing is required. | ||
{{< /hint >}} | ||
1. Check documentation to ensure | ||
1. resouce-level and field-level documentation are generated correctly for MMv1-based resource | ||
1. documentation is added manually for handwritten resources. | ||
1. Check if release notes capture all changes in the PR, and are correctly formatted following the guidance in [write release notes]({{< ref "release-notes" >}}) before merge the PR. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.