Skip to content

build: Remove builtin "testing" package from non-testing files. #34069

@nathanjsweet

Description

@nathanjsweet

Cilium adds the golang builtin package "testing" to its production builds, because it is imported by the following non-testing files:

  • pkg/endpoint/endpoint.go
  • pkg/kvstore/dummy.go*
  • pkg/policy/l4.go
  • pkg/policy/mapstate.go

The "testing" package does not have any know security vulnerabilities, but it does add weight and surface area to production Cilium. It should be removed.

Metadata

Metadata

Assignees

Labels

good-first-issueGood starting point for new developers, which requires minimal understanding of Cilium.kind/featureThis introduces new functionality.

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions