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

[WIP] [TEST] Testing the behaviour when primary container name is different to the one in basePodSpec #6250

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

machichima
Copy link
Contributor

@machichima machichima commented Feb 16, 2025

Tracking issue

Why are the changes needed?

Add the test to validate the behaviour of MergePodSpec is as expected.

What changes were proposed in this pull request?

How was this patch tested?

Labels

Please add one or more of the following labels to categorize your PR:

  • added: For new features.
  • changed: For changes in existing functionality.
  • deprecated: For soon-to-be-removed features.
  • removed: For features being removed.
  • fixed: For any bug fixed.
  • security: In case of vulnerabilities

This is important to improve the readability of release notes.

Setup process

Screenshots

Check all the applicable boxes

  • I updated the documentation accordingly.
  • All new and existing tests passed.
  • All commits are signed-off.

Related PRs

Docs link

Summary by Bito

Implementation of test cases for MergePodSpec functionality, focusing on container name mismatch scenarios. Tests verify proper merging of container specifications, including volume mounts, environment variables, and tolerations. Changes include improvements in pod_helper_test.go with better formatting and consistent indentation for test assertions.

Unit tests added: True

Estimated effort to review (1-5, lower is better): 1

@flyte-bot
Copy link
Collaborator

flyte-bot commented Feb 16, 2025

Code Review Agent Run #e718a6

Actionable Suggestions - 0
Review Details
  • Files reviewed - 1 · Commit Range: 913700d..913700d
    • flyteplugins/go/tasks/pluginmachinery/flytek8s/pod_helper_test.go
  • Files skipped - 0
  • Tools
    • Golangci-lint (Linter) - ✖︎ Failed
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful

AI Code Review powered by Bito Logo

Signed-off-by: machichima <[email protected]>
@flyte-bot
Copy link
Collaborator

flyte-bot commented Feb 16, 2025

Changelist by Bito

This pull request implements the following key changes.

Key Change Files Impacted
Testing - Pod Spec Merging Test Enhancement

pod_helper_test.go - Added test case TestMergePodSpecsPrimaryContainerName to validate container name handling in MergePodSpecs

Copy link

codecov bot commented Feb 16, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 36.86%. Comparing base (ee919f8) to head (60653f7).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6250      +/-   ##
==========================================
- Coverage   36.86%   36.86%   -0.01%     
==========================================
  Files        1318     1318              
  Lines      134767   134767              
==========================================
- Hits        49684    49678       -6     
- Misses      80753    80759       +6     
  Partials     4330     4330              
Flag Coverage Δ
unittests-datacatalog 51.58% <ø> (ø)
unittests-flyteadmin 51.85% <ø> (-0.03%) ⬇️
unittests-flytecopilot 30.99% <ø> (ø)
unittests-flytectl 62.29% <ø> (ø)
unittests-flyteidl 7.22% <ø> (ø)
unittests-flyteplugins 54.03% <ø> (ø)
unittests-flytepropeller 42.78% <ø> (ø)
unittests-flytestdlib 55.33% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@flyte-bot
Copy link
Collaborator

flyte-bot commented Feb 16, 2025

Code Review Agent Run #9f2d67

Actionable Suggestions - 0
Review Details
  • Files reviewed - 1 · Commit Range: 913700d..60653f7
    • flyteplugins/go/tasks/pluginmachinery/flytek8s/pod_helper_test.go
  • Files skipped - 0
  • Tools
    • Golangci-lint (Linter) - ✖︎ Failed
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful

AI Code Review powered by Bito Logo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants