Skip to content

TestCronVulnerabilitiesCreatesDatabasePath is flakey #23258

@lucasmrod

Description

@lucasmrod

TestCronVulnerabilities* tests are flaky on CI PR checks (which slows down development).

See https://github.com/fleetdm/fleet/actions/runs/11522937945/job/32079864819.

This started happening after we enabled panics on cron jobs on CI (#21292).

{"cron":"vulnerabilities","err":"lstat /tmp/TestCronVulnerabilitiesCreatesDatabasesPath1788788500/001/something: no such file or directory","level":"error","msg":"analyzing mac office products for vulnerabilities"}
{"cron":"vulnerabilities","instanceID":"test_instance","level":"debug","msg":"close schedule","schedule":"vulnerabilities"}
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x136576a]

goroutine 65 [running]:
github.com/fleetdm/fleet/v4/server/mock.(*DataStore).ListSoftwareForVulnDetection(0xc00b83ef08, {0x1cd9a40, 0xc00b80ab40}, {0x0, {0x18d62e4, 0xd}, {0x18ce0c8, 0x8}})
	/home/runner/work/fleet/fleet/server/mock/datastore_mock.go:4099 +0x10a
github.com/fleetdm/fleet/v4/server/

Metadata

Metadata

Assignees

Labels

#g-endpoint-opsEndpoint ops product group:releaseReady to write code. Scheduled in a release. See "Making changes" in handbook.bugSomething isn't working as documented~engineering-initiatedEngineering-initiated story, such as a bug, refactor, or contributor experience improvement.~released bugThis bug was found in a stable release.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions