Skip to content

adding source_instance_deletion_time#15239

Merged
melinath merged 7 commits intoGoogleCloudPlatform:mainfrom
tambalo-lgtm:iipitr
Oct 2, 2025
Merged

adding source_instance_deletion_time#15239
melinath merged 7 commits intoGoogleCloudPlatform:mainfrom
tambalo-lgtm:iipitr

Conversation

@tambalo-lgtm
Copy link
Copy Markdown
Contributor

Release Note Template for Downstream PRs (will be copied)

See Write release notes for guidance.

sql: added `source_instance_deletion_time` field to `google_sql_database_instance` resource
sql: added `source_instance_deletion_time` field to `google_sql_database_instance_latest_recovery_time` data source

@modular-magician

This comment was marked as outdated.

@modular-magician

This comment was marked as outdated.

@modular-magician

This comment was marked as outdated.

@modular-magician

This comment was marked as outdated.

@modular-magician

This comment was marked as outdated.

@modular-magician

This comment was marked as outdated.

@modular-magician

This comment was marked as outdated.

@tambalo-lgtm tambalo-lgtm marked this pull request as ready for review September 26, 2025 09:25
@github-actions github-actions bot requested a review from melinath September 26, 2025 09:26
@github-actions
Copy link
Copy Markdown

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

Googlers: For automatic test runs see go/terraform-auto-test-runs.

@melinath, 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

This comment was marked as outdated.

@modular-magician

This comment was marked as outdated.

@modular-magician

This comment was marked as outdated.

@modular-magician

This comment was marked as outdated.

@modular-magician

This comment was marked as outdated.

@modular-magician

This comment was marked as outdated.

@modular-magician

This comment was marked as outdated.

@modular-magician

This comment was marked as outdated.

@modular-magician

This comment was marked as outdated.

@modular-magician

This comment was marked as outdated.

@modular-magician

This comment was marked as outdated.

@modular-magician

This comment was marked as outdated.

@modular-magician

This comment was marked as outdated.

@modular-magician

This comment was marked as outdated.

@melinath
Copy link
Copy Markdown
Member

melinath commented Oct 2, 2025

@tambalo-lgtm tambalo-lgtm requested a review from melinath October 2, 2025 22:04
@modular-magician

This comment was marked as outdated.

@modular-magician
Copy link
Copy Markdown
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 ( 4 files changed, 44 insertions(+), 10 deletions(-))
google-beta provider: Diff ( 4 files changed, 44 insertions(+), 10 deletions(-))

Missing test report

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

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

resource "google_sql_database_instance" "primary" {
  clone {
    source_instance_deletion_time = # value needed
  }
}

Missing doc report (experimental)

The following resources have fields missing in documents.

  • google_sql_database_instance
    • Expected Document Path: /website/docs/r/sql_database_instance.html.markdown
    • Fields: [clone.source_instance_deletion_time]

@modular-magician
Copy link
Copy Markdown
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 ( 4 files changed, 44 insertions(+), 10 deletions(-))
google-beta provider: Diff ( 4 files changed, 44 insertions(+), 10 deletions(-))

Missing test report

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

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

resource "google_sql_database_instance" "primary" {
  clone {
    source_instance_deletion_time = # value needed
  }
}

Missing doc report (experimental)

The following resources have fields missing in documents.

  • google_sql_database_instance
    • Expected Document Path: /website/docs/r/sql_database_instance.html.markdown
    • Fields: [clone.source_instance_deletion_time]

@tambalo-lgtm
Copy link
Copy Markdown
Contributor Author

Recapping that the plan is to write a follow-up pr with the happy case integration tested, and to increase the helpfulness of the customer visible error logs which are currently opaque

Manual testing done to ensure feature works:
https://paste.googleplex.com/6008867393765376

@modular-magician

This comment was marked as outdated.

1 similar comment
@modular-magician
Copy link
Copy Markdown
Collaborator

Tests analytics

Total tests: 129
Passed tests: 102
Skipped tests: 26
Affected tests: 1

Click here to see the affected service packages
  • sql

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
  • TestAccSqlDatabaseInstance_MysqlReadPoolEnableDisableSuccess

Get to know how VCR tests work

@modular-magician
Copy link
Copy Markdown
Collaborator

🔴 Tests failed during RECORDING mode:
TestAccSqlDatabaseInstance_MysqlReadPoolEnableDisableSuccess [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

@melinath
Copy link
Copy Markdown
Member

melinath commented Oct 2, 2025

The failure for TestAccSqlDatabaseInstance_MysqlReadPoolEnableDisableSuccess happens in nightlies as well - unrelated to these changes.

@modular-magician
Copy link
Copy Markdown
Collaborator

🔴 Tests failed during RECORDING mode:
TestAccSqlDatabaseInstance_MysqlReadPoolEnableDisableSuccess [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

Copy link
Copy Markdown
Member

@melinath melinath left a comment

Choose a reason for hiding this comment

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

LGTM. This feature is a little tricky to write an automated test for, so I'm approving it based on the manual tests linked above. The previous tests for error message were removed because they were testing API behavior, not provider behavior (and the API message doesn't have the level of detail we'd need anyway).

@melinath melinath added this pull request to the merge queue Oct 2, 2025
Merged via the queue into GoogleCloudPlatform:main with commit bd6209a Oct 2, 2025
24 of 25 checks passed
vishakhamodi-google pushed a commit to vishakhamodi-google/magic-modules that referenced this pull request Oct 3, 2025
jkrish-c pushed a commit to jkrish-c/magic-modules that referenced this pull request Oct 14, 2025
g-dreva pushed a commit to g-dreva/magic-modules that referenced this pull request Oct 15, 2025
BBBmau pushed a commit to BBBmau/magic-modules that referenced this pull request Oct 20, 2025
JianweiQ pushed a commit to JianweiQ/magic-modules that referenced this pull request Feb 20, 2026
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.

3 participants