-
Notifications
You must be signed in to change notification settings - Fork 285
ResolveMemoryLeakIssueByUsingDeepCopy #732
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
Conversation
…rts for each test.
Signed-off-by: ivan katliarchuk <[email protected]>
…rts for each test.
…ittest/helm-unittest into bugfix/LoadingMemoryLeak
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Resolves memory leak issues by implementing deep copy functionality for Helm charts instead of reloading them for each test, improving performance and memory efficiency.
- Replaces chart path-based loading with pre-loaded chart objects passed to test suites
- Introduces
FullCopyV3Chart
function for complete chart cloning including dependencies - Adds benchmark testing infrastructure to measure performance improvements
Reviewed Changes
Copilot reviewed 15 out of 17 changed files in this pull request and generated 1 comment.
Show a summary per file
File | Description |
---|---|
pkg/unittest/test_suite.go | Updates RunV3 method to accept chart objects instead of paths and implements deep copying |
pkg/unittest/test_runner.go | Modifies chart loading to pass chart objects rather than file paths |
pkg/unittest/deep_copy.go | Adds new FullCopyV3Chart function and makes CopySet function public |
pkg/unittest/test_suite_test.go | Updates all test cases to use pre-loaded chart objects |
pkg/unittest/benchmark_test.go | Adds new benchmark test for performance measurement |
pkg/unittest/deep_copy_test.go | Adds tests for the new full copy functionality |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Correct memory leak using a proper deepcopy, instead of reloading charts for each test.
Using tests already setup by @ivankatliarchuk (related to PR #686)
Still need some proper code cleanup.