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

Increase code coverage to 70% #591

Closed
6 of 19 tasks
vaikas opened this issue Nov 8, 2018 · 10 comments
Closed
6 of 19 tasks

Increase code coverage to 70% #591

vaikas opened this issue Nov 8, 2018 · 10 comments
Assignees
Labels
Epic Epics to group issues priority/awaiting-more-evidence Lowest priority. Possibly useful, but not yet enough support to actually get it done.

Comments

@vaikas
Copy link
Contributor

vaikas commented Nov 8, 2018

Expected Behavior

Stated goal for the V0.2 release is >70% test coverage.

Actual Behavior

Some packages do not meet this goal.
I used this to create the list:
https://testgrid.knative.dev/knative-eventing#coverage&sort-by-failures=

This is a list of those packages. We are using the checklist here to keep track of which ones are being worked on. So, if you take one, check the box and comment on who's taking it so we don't duplicate the work.

  • github.com/knative/eventing/pkg/apis/eventing/v1alpha1/register.go
  • github.com/knative/eventing/pkg/buses/message_receiver.go
  • github.com/knative/eventing/pkg/controller/eventing/inmemory/channel/controller.go
  • github.com/knative/eventing/pkg/controller/eventing/inmemory/controller/main.go
  • github.com/knative/eventing/pkg/controller/eventing/subscription/provider.go
  • github.com/knative/eventing/pkg/controller/eventing/subscription/reconcile.go
  • github.com/knative/eventing/pkg/controller/names.go
  • github.com/knative/eventing/pkg/controller/owner_references.go
  • github.com/knative/eventing/pkg/controller/testing/mock_client.go
  • github.com/knative/eventing/pkg/controller/testing/table.go
  • github.com/knative/eventing/pkg/sidecar/configmap/filesystem/filesystem_watcher.go
  • github.com/knative/eventing/pkg/apis/eventing/v1alpha1/subscribable_channelable_validation.go
  • github.com/knative/eventing/pkg/controller/eventing/inmemory/clusterchannelprovisioner/controller.go
  • github.com/knative/eventing/cmd/controller/controller-runtime-main.go
  • github.com/knative/eventing/cmd/controller/main.go
  • github.com/knative/eventing/cmd/fanoutsidecar/main.go
  • github.com/knative/eventing/cmd/sendevent/main.go
  • github.com/knative/eventing/cmd/webhook/main.go
  • github.com/knative/eventing/pkg/apis/duck/v1alpha1/subscribable_types.go
@grantr
Copy link
Contributor

grantr commented Nov 8, 2018

#592 fixes a few.

@vaikas
Copy link
Contributor Author

vaikas commented Nov 8, 2018

should /pkg/controller/testing/* be included in the coverage?

@vaikas
Copy link
Contributor Author

vaikas commented Nov 8, 2018

I'll takle pkg/controller/eventing/subscription/reconcile.go

@srvaroa
Copy link
Contributor

srvaroa commented Nov 8, 2018

Just posted #597 for github.com/knative/eventing/pkg/apis/eventing/v1alpha1/subscribable_channelable_validation.go

@srvaroa
Copy link
Contributor

srvaroa commented Nov 9, 2018

@vaikas-google I suspect I misused the Fixes label in #597 and prow closed this as a side effect, it should be reopened I guess?

@Harwayne
Copy link
Contributor

For what it's worth, as a non-editor on the repo, I can't check any of the boxes.

@grantr
Copy link
Contributor

grantr commented Nov 27, 2018

Good to know @Harwayne. That probably kills collaborative use of checkboxes since ultimately we want very few users having write access to the repo.

@mikehelmick
Copy link
Contributor

/assign @akashrv

@n3wscott
Copy link
Contributor

the project is now overall at 81% with a few low spots, we can open issues to track those individually.
/close

@knative-prow-robot
Copy link
Contributor

@n3wscott: Closing this issue.

In response to this:

the project is now overall at 81% with a few low spots, we can open issues to track those individually.
/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Epic Epics to group issues priority/awaiting-more-evidence Lowest priority. Possibly useful, but not yet enough support to actually get it done.
Projects
No open projects
Eventing 0.2.1 Release
  
In progress
Development

No branches or pull requests

9 participants