Skip to content

Add context to DataGatherer.Fetch #840

Add context to DataGatherer.Fetch

Add context to DataGatherer.Fetch #840

Triggered via pull request February 5, 2026 09:34
Status Failure
Total duration 1m 51s
Artifacts

tests.yaml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

11 errors
test
Process completed with exit code 2.
test: pkg/agent/run.go#L364
not enough arguments in call to dg.Fetch
test: pkg/agent/dummy_data_gatherer.go#L20
cannot use &dummyDataGatherer{…} (value of type *dummyDataGatherer) as datagatherer.DataGatherer value in return statement: *dummyDataGatherer does not implement datagatherer.DataGatherer (wrong type for method Fetch)
verify
Process completed with exit code 2.
verify: pkg/permissions/generate.go#L12
"github.com/jetstack/preflight/pkg/datagatherer/k8sdynamic" imported and not used (typecheck)
verify: pkg/agent/run.go#L364
not enough arguments in call to dg.Fetch
verify: pkg/agent/dummy_data_gatherer.go#L20
cannot use &dummyDataGatherer{…} (value of type *dummyDataGatherer) as datagatherer.DataGatherer value in return statement: *dummyDataGatherer does not implement datagatherer.DataGatherer (wrong type for method Fetch)
verify: pkg/permissions/generate.go#L11
could not import github.com/jetstack/preflight/pkg/agent (-: # github.com/jetstack/preflight/pkg/agent
ark-test-e2e
Process completed with exit code 2.
ark-test-e2e: pkg/agent/run.go#L364
not enough arguments in call to dg.Fetch
ark-test-e2e: pkg/agent/dummy_data_gatherer.go#L20
cannot use &dummyDataGatherer{…} (value of type *dummyDataGatherer) as datagatherer.DataGatherer value in return statement: *dummyDataGatherer does not implement datagatherer.DataGatherer (wrong type for method Fetch)