Add complete interpreter tests coverage for Helmchart #7101
Add complete interpreter tests coverage for Helmchart #7101karmada-bot merged 1 commit intokarmada-io:masterfrom
Conversation
Summary of ChangesHello @Abhay349, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request focuses on enhancing the testing framework for resource interpreter functionalities within the system. It introduces a broad range of new declarative test cases for both Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request significantly improves the test coverage for the HelmChart and GitRepository resource interpreters by adding a comprehensive set of declarative tests. The new tests cover various interpreter operations, including status aggregation, dependency interpretation, health checks, status interpretation, and retention logic. The test cases are well-structured and cover important edge cases.
I have a few minor suggestions, primarily related to file formatting consistency, such as adding missing newlines at the end of files and removing trailing whitespace. I also noticed a missing test case that was mentioned in a comment, and I've suggested adding it to complete the test coverage as intended.
Overall, this is a valuable contribution that enhances the robustness of the resource interpreters.
8356909 to
609b1ec
Compare
609b1ec to
24f4fa1
Compare
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #7101 +/- ##
=======================================
Coverage 46.56% 46.56%
=======================================
Files 700 700
Lines 48103 48103
=======================================
Hits 22397 22397
Misses 24026 24026
Partials 1680 1680
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Hi @FAUST-BENCHOU, I'm bothering you again to review this once more. :) |
no worries i will do that. |
|
/assign |
Sure, I will do it ASAP. |
Signed-off-by: Abhay349 <pandeyabhay967@gmail.com>
24f4fa1 to
509b7c0
Compare
Hi @FAUST-BENCHOU, I have adjusted the tests to unify. |
|
@Abhay349 e2e test are failing, please fix them |
Thanks for the reminder. This is an occasional CI error, and it should not be directly related to the current PR. Let's try it again. /retest |
|
lgtm.these lua scripts are almost the same except some specific fields which have not important business logic |
Thanks @FAUST-BENCHOU and I have already unified tests in my next PR #7108 for HelmRepo. |
XiShanYongYe-Chang
left a comment
There was a problem hiding this comment.
Thanks a lot.
/lgtm
/approve
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: XiShanYongYe-Chang The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This PR adds declarative test coverage for HelmChart.
Fixes- Subtask of issue #6952
Scope
-> Tests only
-> No changes to existing customization logic
Thanks to @FAUST-BENCHOU for reviews and feedback.