Skip to content

Conversation

@rushmash91
Copy link
Member

@rushmash91 rushmash91 commented Feb 11, 2025

This PR modernizes the ElastiCache controller by updating all controller hooks for AWS SDK Go v2 compatibility and consolidating the testing infrastructure. The testing framework has been completely migrated from the separate ElastiCache testing framework to use the standard acktest framework exclusively, removing the mockery dependency and eliminating previously skipped flaky tests that were causing instability. These changes reduced test execution time from approximately 3 hours to 1 hour through framework consolidation while improving test reliability by standardizing on maintained testing infrastructure.

By consolidating on the acktest framework, this change eliminates the maintenance burden of supporting multiple testing approaches and leverages the actively maintained ACK testing infrastructure. The removal of flaky tests that were previously skipped means the test suite now provides more reliable feedback on code changes, while the significant reduction in test execution time improves developer productivity and reduces CI/CD infrastructure costs. This refactoring establishes a more maintainable and efficient foundation for ongoing ElastiCache controller development.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@ack-prow ack-prow bot requested review from a-hilaly and nmvk February 11, 2025 18:10
@rushmash91 rushmash91 force-pushed the test-revamp branch 6 times, most recently from a1f2e5b to 351b97d Compare February 12, 2025 03:35
@rushmash91
Copy link
Member Author

/test elasticache-kind-e2e

@rushmash91
Copy link
Member Author

/test elasticache-kind-e2e

@rushmash91 rushmash91 force-pushed the test-revamp branch 5 times, most recently from 8d031c9 to 36331ff Compare February 13, 2025 02:58
@rushmash91
Copy link
Member Author

/test elasticache-kind-e2e

@rushmash91 rushmash91 force-pushed the test-revamp branch 2 times, most recently from 4eb4f67 to 35f7847 Compare February 13, 2025 07:42
@rushmash91
Copy link
Member Author

/test elasticache-kind-e2e

1 similar comment
@rushmash91
Copy link
Member Author

/test elasticache-kind-e2e

@rushmash91 rushmash91 force-pushed the test-revamp branch 5 times, most recently from 511211a to 338514f Compare February 13, 2025 23:37
Copy link
Member

@michaelhtm michaelhtm 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 this @rushmash91 🚀🚀🚀
I left a few comments..
cc: @a-hilaly

Copy link
Member

@a-hilaly a-hilaly left a comment

Choose a reason for hiding this comment

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

This was a tough one, thank you @rushmash91 🫡

@ack-prow ack-prow bot added the approved label Feb 17, 2025
@ack-prow
Copy link

ack-prow bot commented Feb 17, 2025

@rushmash91: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
elasticache-verify-attribution 19994cf link false /test elasticache-verify-attribution

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@rushmash91
Copy link
Member Author

/test elasticache-kind-e2e

@rushmash91 rushmash91 changed the title Test revamp Update hooks for Go v2 support and Migrates tests to use acktest framework exclusively Feb 17, 2025
Copy link
Member

@michaelhtm michaelhtm left a comment

Choose a reason for hiding this comment

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

Nicee 💯
Left comments to be addressed in next PR
/lgtm

@ack-prow ack-prow bot added the lgtm Indicates that a PR is ready to be merged. label Feb 17, 2025
@ack-prow
Copy link

ack-prow bot commented Feb 17, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: a-hilaly, michaelhtm, rushmash91

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ack-prow ack-prow bot merged commit adca576 into aws-controllers-k8s:main Feb 17, 2025
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants