Skip to content

agent: add tcp connection disruptor #1087

agent: add tcp connection disruptor

agent: add tcp connection disruptor #1087

Triggered via pull request October 23, 2023 18:04
Status Failure
Total duration 3m 24s
Artifacts

ci.yml

on: pull_request
Matrix: build-with-xk6
Matrix: run-unit-tests
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 8 warnings
run-linter: pkg/agent/tcpconn/disruptor.go#L42
Error return value of `iptables.Remove` is not checked (errcheck)
run-linter: pkg/agent/tcpconn/queue.go#L86
Error return value of `queue.Close` is not checked (errcheck)
run-linter: pkg/agent/tcpconn/queue.go#L90
Error return value of `queue.RegisterWithErrorFunc` is not checked (errcheck)
run-linter: pkg/agent/tcpconn/queue.go#L123
Error return value of `n.queue.SetVerdict` is not checked (errcheck)
run-linter: pkg/agent/tcpconn/queue.go#L127
Error return value of `n.queue.SetVerdictWithMark` is not checked (errcheck)
run-linter: pkg/agent/tcpconn/dropper.go#L45
G104: Errors unhandled. (gosec)
run-linter: pkg/agent/tcpconn/queue.go#L23
DefaultNFQConfig is a global variable (gochecknoglobals)
run-linter: pkg/agent/tcpconn/dropper.go#L1
ST1000: at least one file in a package should have a package comment (stylecheck)
run-linter: pkg/agent/tcpconn/queue.go#L1
ST1000: at least one file in a package should have a package comment (stylecheck)
run-linter: cmd/agent/commands/tcpdrop.go#L15
directive `//nolint:funlen` is unused for linter "funlen" (nolintlint)
run-linter: pkg/agent/tcpconn/disruptor.go#L1
package-comments: should have a package comment (revive)
run-linter: pkg/agent/tcpconn/queue.go#L12
exported: comment on exported type NFQConfig should be of the form "NFQConfig ..." (with optional leading article) (revive)
run-linter: pkg/agent/tcpconn/queue.go#L72
exported: comment on exported method NFQueue.Start should be of the form "Start ..." (revive)
run-linter: pkg/agent/tcpconn/queue.go#L118
exported: exported method NFPacket.Bytes should have comment or be unexported (revive)
run-linter: pkg/agent/tcpconn/disruptor.go#L33
exported: exported var ErrDurationTooShort should have comment or be unexported (revive)
run-linter: pkg/agent/tcpconn/queue.go#L122
exported: exported method NFPacket.Accept should have comment or be unexported (revive)
run-linter: pkg/agent/tcpconn/queue.go#L126
exported: exported method NFPacket.Reject should have comment or be unexported (revive)
run-linter: cmd/agent/commands/tcpdrop.go#L13
exported: comment on exported function BuildTCPDropCmd should be of the form "BuildTCPDropCmd ..." (revive)