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

Redis Cluster maintenance policy and schedule addition #11574

Conversation

harshitpatel-github
Copy link
Member

@harshitpatel-github harshitpatel-github commented Aug 29, 2024

Release Note Template for Downstream PRs (will be copied)

redis: added the `maintenance_policy` field to the `google_redis_cluster` resource

Copy link

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

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

@github-actions github-actions bot requested a review from SarahFrench August 29, 2024 06:29
@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 ( 3 files changed, 634 insertions(+))
google-beta provider: Diff ( 4 files changed, 678 insertions(+), 11 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 163 insertions(+))
Open in Cloud Shell: Diff ( 2 files changed, 22 insertions(+))

Missing test report

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

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

resource "google_redis_cluster" "primary" {
  maintenance_policy {
    description = # value needed
  }
}

@modular-magician
Copy link
Collaborator

Tests analytics

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

Click here to see the affected service packages
  • redis

Action taken

Found 6 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccRedisCluster_createClusterWithNodeType
  • TestAccRedisCluster_redisClusterHaExample
  • TestAccRedisCluster_redisClusterHaSingleZoneExample
  • TestAccRedisCluster_updateRedisConfigs
  • TestAccRedisCluster_updateReplicaCount
  • TestAccRedisCluster_updateShardCount

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

$\textcolor{red}{\textsf{Tests failed during RECORDING mode:}}$
TestAccRedisCluster_createClusterWithNodeType[Error message] [Debug log]
TestAccRedisCluster_redisClusterHaExample[Error message] [Debug log]
TestAccRedisCluster_redisClusterHaSingleZoneExample[Error message] [Debug log]
TestAccRedisCluster_updateRedisConfigs[Error message] [Debug log]
TestAccRedisCluster_updateReplicaCount[Error message] [Debug log]
TestAccRedisCluster_updateShardCount[Error message] [Debug log]

$\textcolor{red}{\textsf{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 ( 3 files changed, 634 insertions(+))
google-beta provider: Diff ( 4 files changed, 678 insertions(+), 11 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 163 insertions(+))
Open in Cloud Shell: Diff ( 2 files changed, 22 insertions(+))

Missing test report

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

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

resource "google_redis_cluster" "primary" {
  maintenance_policy {
    description = # value needed
  }
}

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 21
Passed tests: 19
Skipped tests: 0
Affected tests: 2

Click here to see the affected service packages
  • redis

Action taken

Found 2 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccRedisCluster_redisClusterHaExample
  • TestAccRedisCluster_redisClusterHaSingleZoneExample

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

$\textcolor{red}{\textsf{Tests failed during RECORDING mode:}}$
TestAccRedisCluster_redisClusterHaExample[Error message] [Debug log]
TestAccRedisCluster_redisClusterHaSingleZoneExample[Error message] [Debug log]

$\textcolor{red}{\textsf{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 ( 3 files changed, 634 insertions(+))
google-beta provider: Diff ( 4 files changed, 678 insertions(+), 11 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 163 insertions(+))
Open in Cloud Shell: Diff ( 2 files changed, 22 insertions(+))

Missing test report

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

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

resource "google_redis_cluster" "primary" {
  maintenance_policy {
    description = # value needed
  }
}

@modular-magician
Copy link
Collaborator

Tests analytics

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

Click here to see the affected service packages
  • redis

Action taken

Found 6 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccRedisCluster_createClusterWithNodeType
  • TestAccRedisCluster_redisClusterHaExample
  • TestAccRedisCluster_redisClusterHaSingleZoneExample
  • TestAccRedisCluster_updateRedisConfigs
  • TestAccRedisCluster_updateReplicaCount
  • TestAccRedisCluster_updateShardCount

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

$\textcolor{green}{\textsf{Tests passed during RECORDING mode:}}$
TestAccRedisCluster_createClusterWithNodeType[Debug log]
TestAccRedisCluster_redisClusterHaSingleZoneExample[Debug log]
TestAccRedisCluster_updateRedisConfigs[Debug log]
TestAccRedisCluster_updateReplicaCount[Debug log]
TestAccRedisCluster_updateShardCount[Debug log]

$\textcolor{green}{\textsf{No issues found for passed tests after REPLAYING rerun.}}$


$\textcolor{red}{\textsf{Tests failed during RECORDING mode:}}$
TestAccRedisCluster_redisClusterHaExample[Error message] [Debug log]

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

View the build log or the debug log for each test

harshitpatel-github added 2 commits August 29, 2024 08:56
@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 ( 3 files changed, 638 insertions(+))
google-beta provider: Diff ( 4 files changed, 683 insertions(+), 11 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 163 insertions(+))
Open in Cloud Shell: Diff ( 2 files changed, 24 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

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

Click here to see the affected service packages
  • redis

Action taken

Found 6 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccRedisCluster_createClusterWithNodeType
  • TestAccRedisCluster_redisClusterHaExample
  • TestAccRedisCluster_redisClusterHaSingleZoneExample
  • TestAccRedisCluster_updateRedisConfigs
  • TestAccRedisCluster_updateReplicaCount
  • TestAccRedisCluster_updateShardCount

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

$\textcolor{red}{\textsf{Tests failed during RECORDING mode:}}$
TestAccRedisCluster_createClusterWithNodeType[Error message] [Debug log]
TestAccRedisCluster_redisClusterHaExample[Error message] [Debug log]
TestAccRedisCluster_redisClusterHaSingleZoneExample[Error message] [Debug log]
TestAccRedisCluster_updateRedisConfigs[Error message] [Debug log]
TestAccRedisCluster_updateReplicaCount[Error message] [Debug log]
TestAccRedisCluster_updateShardCount[Error message] [Debug log]

$\textcolor{red}{\textsf{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 ( 3 files changed, 638 insertions(+))
google-beta provider: Diff ( 4 files changed, 683 insertions(+), 11 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 163 insertions(+))
Open in Cloud Shell: Diff ( 2 files changed, 24 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

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

Click here to see the affected service packages
  • redis

Action taken

Found 6 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccRedisCluster_createClusterWithNodeType
  • TestAccRedisCluster_redisClusterHaExample
  • TestAccRedisCluster_redisClusterHaSingleZoneExample
  • TestAccRedisCluster_updateRedisConfigs
  • TestAccRedisCluster_updateReplicaCount
  • TestAccRedisCluster_updateShardCount

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

$\textcolor{red}{\textsf{Tests failed during RECORDING mode:}}$
TestAccRedisCluster_createClusterWithNodeType[Error message] [Debug log]
TestAccRedisCluster_redisClusterHaExample[Error message] [Debug log]
TestAccRedisCluster_redisClusterHaSingleZoneExample[Error message] [Debug log]
TestAccRedisCluster_updateRedisConfigs[Error message] [Debug log]
TestAccRedisCluster_updateReplicaCount[Error message] [Debug log]
TestAccRedisCluster_updateShardCount[Error message] [Debug log]

$\textcolor{red}{\textsf{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 ( 3 files changed, 604 insertions(+))
google-beta provider: Diff ( 4 files changed, 649 insertions(+), 11 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 152 insertions(+))
Open in Cloud Shell: Diff ( 2 files changed, 22 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 21
Passed tests: 16
Skipped tests: 0
Affected tests: 5

Click here to see the affected service packages
  • redis

Action taken

Found 5 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccRedisCluster_createClusterWithNodeType
  • TestAccRedisCluster_redisClusterHaExample
  • TestAccRedisCluster_updateRedisConfigs
  • TestAccRedisCluster_updateReplicaCount
  • TestAccRedisCluster_updateShardCount

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

$\textcolor{green}{\textsf{Tests passed during RECORDING mode:}}$
TestAccRedisCluster_redisClusterHaExample[Debug log]

$\textcolor{green}{\textsf{No issues found for passed tests after REPLAYING rerun.}}$


$\textcolor{red}{\textsf{Tests failed during RECORDING mode:}}$
TestAccRedisCluster_createClusterWithNodeType[Error message] [Debug log]
TestAccRedisCluster_updateRedisConfigs[Error message] [Debug log]
TestAccRedisCluster_updateReplicaCount[Error message] [Debug log]
TestAccRedisCluster_updateShardCount[Error message] [Debug log]

$\textcolor{red}{\textsf{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 ( 3 files changed, 604 insertions(+))
google-beta provider: Diff ( 4 files changed, 648 insertions(+), 11 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 152 insertions(+))
Open in Cloud Shell: Diff ( 2 files changed, 22 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

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

Click here to see the affected service packages
  • redis

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

View the build log

Copy link
Contributor

@SarahFrench SarahFrench left a comment

Choose a reason for hiding this comment

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

Hi, thanks for your PR!

It looks like this is adding support for a new feature that's about to be released, as the public docs don't include these fields. I've reviewed the PR the best I can given this, and there are only some minor comments. Happy to merge after they're addressed.

description: |
Required. The day of week that maintenance updates occur.

- DAY_OF_WEEK_UNSPECIFIED: The day of the week is unspecified.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
- DAY_OF_WEEK_UNSPECIFIED: The day of the week is unspecified.

We usually omit these values from enums, as they aren't valid for users to supply

Copy link
Member Author

Choose a reason for hiding this comment

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

We have taken reference from

- DAY_OF_WEEK_UNSPECIFIED: The day of the week is unspecified.

and want to keep the Cluster changes similar to Redis Instance.
Is this fine? or should I remove this from the Cluster.yaml

- SATURDAY: Saturday
- SUNDAY: Sunday
values:
- :DAY_OF_WEEK_UNSPECIFIED
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
- :DAY_OF_WEEK_UNSPECIFIED

See other comment!

@github-actions github-actions bot requested a review from SarahFrench September 2, 2024 11:43
@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 ( 3 files changed, 602 insertions(+))
google-beta provider: Diff ( 4 files changed, 646 insertions(+), 11 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 152 insertions(+))
Open in Cloud Shell: Diff ( 2 files changed, 22 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 21
Passed tests: 20
Skipped tests: 0
Affected tests: 1

Click here to see the affected service packages
  • redis

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

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

$\textcolor{green}{\textsf{Tests passed during RECORDING mode:}}$
TestAccRedisCluster_createClusterWithNodeType[Debug log]

$\textcolor{green}{\textsf{No issues found for passed tests after REPLAYING rerun.}}$


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

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 ( 3 files changed, 604 insertions(+))
google-beta provider: Diff ( 4 files changed, 648 insertions(+), 11 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 152 insertions(+))
Open in Cloud Shell: Diff ( 2 files changed, 22 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

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

Click here to see the affected service packages
  • redis

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

View the build log

Copy link
Contributor

@SarahFrench SarahFrench left a comment

Choose a reason for hiding this comment

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

Looks good to me - thanks for the updates!

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