Uh oh!
There was an error while loading. Please reload this page.
test(doctor,helm): coverage wave 2 (doctor -> 95.6%, helm -> 91.2%) - #270
Merged
Conversation
- doctor -> 95.6% (over 95): Status.String (was 0%); nodeReady no-condition arm; getDeployment empty-candidate/missing; jobsManagerEnv valueFrom-skip; findDeployment ambiguous-unknown-release nil. - helm -> 91.2% (honest ceiling): supportsResetThenReuse probe (flag-present + probe-error), repoPresent match/absent, ensureRepo add+update fatal errors, and Upgrade's ensureRepo-failure abort. Remaining uncovered = Upgrade's temp-file defensive I/O (CreateTemp/WriteString/Close errors) + the production exec Runner var — by-construction-uncoverable, left per the ceiling policy. (nodeboot was already 97.8% — untouched.) make ci green. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
LukasWodka
commented
Jul 14, 2026
ContributorAuthor
bugbot run |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit fc051ac. Configure here.
saadqbal
approved these changes
Jul 14, 2026
saadqbal
left a comment
Collaborator
There was a problem hiding this comment.
LGTM 👍 Verified the non-obvious ones — findDeployment returning nil on an ambiguous suffix match (don't guess across releases), jobsManagerEnv skipping valueFrom entries, and Status(99)→"unknown". helm probe/repo error arms driven cleanly via the fake runner. Clean.
Uh oh!
There was an error while loading. Please reload this page.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Wave-2 coverage for
doctor+helm(real tests viafake.NewClientset+ thefakeRunnerseam):doctor: 92.1% → 95.6% ✅ —Status.String(was 0%),nodeReadyno-condition arm,getDeploymentempty-candidate/missing,jobsManagerEnvvalueFrom-skip,findDeploymentambiguous-unknown-release → nil.helm: 86.4% → 91.2% (honest ceiling) —supportsResetThenReuseprobe (flag-present + probe-error),repoPresentmatch/absent,ensureRepoadd+update fatal errors, andUpgrade's ensureRepo-failure abort. The remaining uncovered isUpgrade's temp-file defensive I/O (CreateTemp/WriteString/Closeerrors on a fresh file) + the production execRunnervar — by-construction-uncoverable, left per the ceiling policy.(
nodebootwas already 97.8% — untouched.)Test plan
make cigreen. Behavior-asserting; no production changes.🤖 Generated with Claude Code
Note
Low Risk
Only new unit tests; no runtime or behavioral changes to doctor or helm logic.
Overview
Adds test-only coverage for
internal/doctorandinternal/helm; production code is unchanged.Doctor (
helpers_coverage_test.go): exercisesStatus.String,nodeReady(including missing Ready condition),getDeployment(empty candidates and lookup),jobsManagerEnv(literal env vs skippedvalueFrom), andfindDeploymentreturning nil when release is unknown and multiple suffix matches exist.Helm (
upgrade_coverage_test.go): uses the existingfakeRunnerseam to coversupportsResetThenReuse(flag in help vs probe failure),repoPresent, fatalensureRepoon add/update failures, andUpgradeaborting when the chart repo cannot be ensured.Reviewed by Cursor Bugbot for commit fc051ac. Bugbot is set up for automated code reviews on this repo. Configure here.