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

Add deprecation message for skip_delete for Project resource #11263

Merged

Conversation

abd-goog
Copy link
Member

Add deprecation message for skip_delete for Project resource.
Part of b/330143705

Part of hashicorp/terraform-provider-google#18775

Release Note Template for Downstream PRs (will be copied)

'skip_delete' is being deprecated in favor of a new field 'deletion_policy' in the next major release

@abd-goog abd-goog marked this pull request as ready for review July 25, 2024 19:23
Copy link

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

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

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

Errors

google provider:

  • The diff processor failed to build. This is usually due to the downstream provider failing to compile.

google-beta provider:

  • The diff processor failed to build. This is usually due to the downstream provider failing to compile.

@abd-goog abd-goog marked this pull request as draft July 25, 2024 19:32
@modular-magician
Copy link
Collaborator

Tests analytics

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

Click here to see the affected service packages
  • resourcemanager

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

View the build log

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

Missing test report

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

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

resource "google_project" "primary" {
  skip_delete = # value needed
}

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 142
Passed tests: 111
Skipped tests: 31
Affected tests: 0

Click here to see the affected service packages
  • resourcemanager

$\textcolor{green}{\textsf{All tests passed!}}$

View the build log

@abd-goog abd-goog marked this pull request as ready for review July 25, 2024 20:09
@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 ( 2 files changed, 2 insertions(+), 1 deletion(-))
google-beta provider: Diff ( 2 files changed, 2 insertions(+), 1 deletion(-))

Missing test report

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

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

resource "google_project" "primary" {
  skip_delete = # value needed
}

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 142
Passed tests: 111
Skipped tests: 31
Affected tests: 0

Click here to see the affected service packages
  • resourcemanager

$\textcolor{green}{\textsf{All tests passed!}}$

View the build log

@@ -68,6 +68,7 @@ func ResourceGoogleProject() *schema.Resource {
},
"skip_delete": {
Type: schema.TypeBool,
Deprecated: `'skip_delete' is deprecated and will be removed in a future major release. The new release adds support for 'deletion_policy' instead.`,
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you can remove quotation marks in this message and it should fix the compilation error

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks, removed quotation marks. Doesn't seem to help though.

Copy link
Member Author

Choose a reason for hiding this comment

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

Locally the provider generation works fine. There's something wrong with the test, it's picking up older version perhaps.

@github-actions github-actions bot requested a review from slevenick July 25, 2024 20:50
@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 ( 2 files changed, 2 insertions(+), 1 deletion(-))
google-beta provider: Diff ( 2 files changed, 2 insertions(+), 1 deletion(-))

Missing test report

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

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

resource "google_project" "primary" {
  skip_delete = # value needed
}

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 142
Passed tests: 111
Skipped tests: 31
Affected tests: 0

Click here to see the affected service packages
  • resourcemanager

$\textcolor{green}{\textsf{All tests passed!}}$

View the build log

@slevenick
Copy link
Contributor

@melinath do you know why TGC would be failing for this change? It doesn't seem like it should be causing a failure

@melinath
Copy link
Member

This is caused by hashicorp/terraform-provider-google#17924 - rerunning the tests should resolve it. (#10671 will fix it more permanently.) /gcbrun

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

Missing test report

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

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

resource "google_project" "primary" {
  skip_delete = # value needed
}

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 142
Passed tests: 111
Skipped tests: 31
Affected tests: 0

Click here to see the affected service packages
  • resourcemanager

$\textcolor{green}{\textsf{All tests passed!}}$

View the build log

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

Successfully merging this pull request may close these issues.

4 participants