Skip to content

Adding in automated backup config to memorystore #13403

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

Merged
merged 15 commits into from
Apr 2, 2025

Conversation

NA2047
Copy link
Contributor

@NA2047 NA2047 commented Mar 19, 2025

Release Note Template for Downstream PRs (will be copied)

See Write release notes for guidance.

memorystore: added `automated_backup _conf` field to `google_memorystore_instance` resource,

@NA2047 NA2047 marked this pull request as draft March 19, 2025 22:51
@github-actions github-actions bot requested a review from BBBmau March 19, 2025 22:52
Copy link

Hello! I am a robot. Tests will require approval from a repository maintainer to run. Googlers: see go/terraform-auto-test-runs to set up automatic test runs.

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

@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 ( 4 files changed, 444 insertions(+))
google-beta provider: Diff ( 4 files changed, 444 insertions(+))
terraform-google-conversion: Diff ( 1 file changed, 122 insertions(+))

Missing test report

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

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

resource "google_memorystore_instance" "primary" {
  automated_backup_config {
    fixed_frequency_schedule {
      start_time {
        hours   = # value needed
        minutes = # value needed
        nanos   = # value needed
        seconds = # value needed
      }
    }
    retention = # value needed
  }
}

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 12
Passed tests: 11
Skipped tests: 0
Affected tests: 1

Click here to see the affected service packages
  • memorystore

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

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

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

@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 ( 4 files changed, 483 insertions(+))
google-beta provider: Diff ( 4 files changed, 483 insertions(+))
terraform-google-conversion: Diff ( 1 file changed, 122 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 12
Passed tests: 11
Skipped tests: 0
Affected tests: 1

Click here to see the affected service packages
  • memorystore

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

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

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

@NA2047 NA2047 force-pushed the MemorystoreManagedBackup branch from 1fd7669 to 3774ae7 Compare March 20, 2025 22:51
@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 ( 4 files changed, 483 insertions(+))
google-beta provider: Diff ( 4 files changed, 483 insertions(+))
terraform-google-conversion: Diff ( 1 file changed, 122 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 12
Passed tests: 11
Skipped tests: 0
Affected tests: 1

Click here to see the affected service packages
  • memorystore

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

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

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

@NA2047 NA2047 force-pushed the MemorystoreManagedBackup branch from 3774ae7 to 4ad341d Compare March 21, 2025 00:14
@NA2047 NA2047 force-pushed the MemorystoreManagedBackup branch from 4ad341d to eb1a253 Compare March 21, 2025 00:17
@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 ( 4 files changed, 483 insertions(+))
google-beta provider: Diff ( 4 files changed, 483 insertions(+))
terraform-google-conversion: Diff ( 1 file changed, 122 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 12
Passed tests: 11
Skipped tests: 0
Affected tests: 1

Click here to see the affected service packages
  • memorystore

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

Get to know how VCR tests work

@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 ( 4 files changed, 483 insertions(+))
google-beta provider: Diff ( 4 files changed, 483 insertions(+))
terraform-google-conversion: Diff ( 1 file changed, 122 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 12
Passed tests: 11
Skipped tests: 0
Affected tests: 1

Click here to see the affected service packages
  • memorystore

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

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

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

@modular-magician
Copy link
Collaborator

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

@NA2047 NA2047 force-pushed the MemorystoreManagedBackup branch from e8b1f45 to 1f3606d Compare March 21, 2025 18:58
@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 ( 4 files changed, 483 insertions(+))
google-beta provider: Diff ( 4 files changed, 483 insertions(+))
terraform-google-conversion: Diff ( 1 file changed, 122 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 12
Passed tests: 11
Skipped tests: 0
Affected tests: 1

Click here to see the affected service packages
  • memorystore

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

Get to know how VCR tests work

@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 ( 4 files changed, 483 insertions(+))
google-beta provider: Diff ( 4 files changed, 483 insertions(+))
terraform-google-conversion: Diff ( 1 file changed, 122 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 12
Passed tests: 11
Skipped tests: 0
Affected tests: 1

Click here to see the affected service packages
  • memorystore

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

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

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

@NA2047 NA2047 force-pushed the MemorystoreManagedBackup branch from 80322d8 to 37a5428 Compare March 27, 2025 20:19
@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 ( 4 files changed, 388 insertions(+))
google-beta provider: Diff ( 4 files changed, 388 insertions(+))
terraform-google-conversion: Diff ( 1 file changed, 93 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

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

Click here to see the affected service packages
  • memorystore

🟢 All tests passed!

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 ( 4 files changed, 389 insertions(+), 1 deletion(-))
google-beta provider: Diff ( 4 files changed, 389 insertions(+), 1 deletion(-))
terraform-google-conversion: Diff ( 1 file changed, 93 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 17
Passed tests: 7
Skipped tests: 0
Affected tests: 10

Click here to see the affected service packages
  • memorystore

Action taken

Found 10 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccMemorystoreInstance_memorystoreInstanceSecondaryInstanceExample
  • TestAccMemorystoreInstance_switchoverAndDetachSecondary
  • TestAccMemorystoreInstance_updateDeletionProtection
  • TestAccMemorystoreInstance_updateEngineVersion
  • TestAccMemorystoreInstance_updateInstanceEndpoints
  • TestAccMemorystoreInstance_updateNodeType
  • TestAccMemorystoreInstance_updatePersistence
  • TestAccMemorystoreInstance_updateRedisConfigs
  • TestAccMemorystoreInstance_updateReplicaCount
  • TestAccMemorystoreInstance_updateShardCount

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

🟢 Tests passed during RECORDING mode:
TestAccMemorystoreInstance_memorystoreInstanceSecondaryInstanceExample [Debug log]
TestAccMemorystoreInstance_switchoverAndDetachSecondary [Debug log]
TestAccMemorystoreInstance_updateDeletionProtection [Debug log]
TestAccMemorystoreInstance_updateEngineVersion [Debug log]
TestAccMemorystoreInstance_updateInstanceEndpoints [Debug log]
TestAccMemorystoreInstance_updateNodeType [Debug log]
TestAccMemorystoreInstance_updatePersistence [Debug log]
TestAccMemorystoreInstance_updateRedisConfigs [Debug log]
TestAccMemorystoreInstance_updateReplicaCount [Debug log]
TestAccMemorystoreInstance_updateShardCount [Debug log]

🟢 No issues found for passed tests after REPLAYING rerun.


🟢 All tests passed!

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.

great job on the tests, aside from the comments i left can you link me to the field reference? I was only able to find the redis documentation of memorystore

@NA2047
Copy link
Contributor Author

NA2047 commented Mar 28, 2025

great job on the tests, aside from the comments i left can you link me to the field reference? I was only able to find the redis documentation of memorystore

The API docs are still being worked on right now. but they the implmetation is the same as the ones I have provided :)

@github-actions github-actions bot requested review from BBBmau and rileykarson March 28, 2025 03:04
@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 ( 4 files changed, 389 insertions(+), 1 deletion(-))
google-beta provider: Diff ( 4 files changed, 389 insertions(+), 1 deletion(-))
terraform-google-conversion: Diff ( 1 file changed, 93 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

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

Click here to see the affected service packages
  • memorystore

🟢 All tests passed!

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 ( 4 files changed, 389 insertions(+), 1 deletion(-))
google-beta provider: Diff ( 4 files changed, 389 insertions(+), 1 deletion(-))
terraform-google-conversion: Diff ( 1 file changed, 93 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

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

Click here to see the affected service packages
  • memorystore

🟢 All tests passed!

View the build log

Copy link

github-actions bot commented Apr 1, 2025

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

@NA2047
Copy link
Contributor Author

NA2047 commented Apr 1, 2025

Hey @BBBmau Could you take a look today or tomorrow please :)

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