You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
area/APIAPI objects and controllersarea/buildBuild topics specifically related to Knativekind/featureWell-understood/specified features, ready for coding.
Move these to a helpers.go, and coverage in helpers_test.go:
getDeploymentProgressCondition could use focused unit testing,
getRevisionLastTransitionTime could use focused unit testing,
getBuildDoneCondition could use focused unit testing,
isBuildDone could use focused unit testing
addDeploymentProgressEvent needs coverage for most of its body.
removeFinalizers needs coverage for most of its body.
The logger.Errorf before many return err amplifies the lack of coverage along error paths. The runtime.HandleError pattern is similar, but less pronounced (probably not worth a helper).
This path seems easy to cover in addEndpointsEvent:
if revisionAge < serviceTimeoutDuration {
return
}
changed the title [-]Improve pkg/controller/revision/revision.go converage[/-][+]Improve pkg/controller/revision/revision.go coverage[/+]on Jun 12, 2018
area/APIAPI objects and controllersarea/buildBuild topics specifically related to Knativekind/featureWell-understood/specified features, ready for coding.
Activity
[-]Improve pkg/controller/revision/revision.go converage[/-][+]Improve pkg/controller/revision/revision.go coverage[/+]Add unit testing for our revision controller helpers. (#1160)
mattmoor commentedon Jun 12, 2018
Once #1166 lands, I think the biggest coverage gap is
removeFinalizers, at which point it is likely safe to resolve this.mattmoor commentedon Jun 12, 2018
removeFinalizerslooks unused, so I'm just removing it: #1173Fix ProgressDeadlineExceeded handling. (#1166)
mattmoor commentedon Jun 12, 2018
We should be in reasonable shape here.
inject images, generate manifests (knative#1150)
inject images, generate manifests (knative#1150)
[RELEASE-1.4] Inject images, generate manifests (knative#1169)
inject images, generate manifests (knative#1150)
[RELEASE-1.4] Inject images, generate manifests (knative#1169)
[RELEASE-1.4] Inject images, generate manifests (knative#1169)
[RELEASE-1.4] Inject images, generate manifests (knative#1169)
[RELEASE-1.5] Image injection (knative#1189)
[MAIN] Image injection (knative#1191)
[RELEASE-1.6] Image injection (knative#1190)