Skip to content

Commit

Permalink
Merge pull request kubernetes#81547 from BenTheElder/typecheck-cleanup
Browse files Browse the repository at this point in the history
typecheck cleanup
  • Loading branch information
k8s-ci-robot authored Aug 17, 2019
2 parents 3f00331 + 6b038f3 commit f12a40d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 22 deletions.
2 changes: 1 addition & 1 deletion test/typecheck/OWNERS
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# See the OWNERS docs at https://go.k8s.io/owners

reviewers:
- BenTheElder
- cblecker
- rmmh
approvers:
- cblecker
- rmmh
20 changes: 0 additions & 20 deletions test/typecheck/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,26 +103,6 @@ func newAnalyzer(platform string) *analyzer {
}

func (a *analyzer) handleError(err error) {
if e, ok := err.(types.Error); ok {
// useful for some ignores:
// path := e.Fset.Position(e.Pos).String()
ignore := false
// TODO(rmmh): read ignores from a file, so this code can
// be Kubernetes-agnostic. Unused ignores should be treated as
// errors, to ensure coverage isn't overly broad.
if strings.Contains(e.Msg, "GetOpenAPIDefinitions") {
// TODO(rmmh): figure out why this happens.
// cmd/kube-apiserver/app/server.go:392:70
// test/integration/framework/master_utils.go:131:84
ignore = true
}
if ignore {
if *verbose {
fmt.Println("ignoring error:", err)
}
return
}
}
a.errors = append(a.errors, err.Error())
if *serial {
fmt.Fprintf(os.Stderr, "%sERROR(%s) %s\n", logPrefix, a.platform, err)
Expand Down
2 changes: 1 addition & 1 deletion third_party/go-srcimporter/OWNERS
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# See the OWNERS docs at https://go.k8s.io/owners

reviewers:
- BenTheElder
- cblecker
- rmmh
approvers:
- cblecker
- rmmh

0 comments on commit f12a40d

Please sign in to comment.