-
Notifications
You must be signed in to change notification settings - Fork 885
Make test-go.yaml CI check fail when cron jobs panic+recover #21292
Copy link
Copy link
Closed
Labels
#g-endpoint-opsEndpoint ops product groupEndpoint ops product group:releaseReady to write code. Scheduled in a release. See "Making changes" in handbook.Ready to write code. Scheduled in a release. See "Making changes" in handbook.P2Urgent: Supported workflow not functioning as intended, newly drafted feature with urgent Fleet needUrgent: Supported workflow not functioning as intended, newly drafted feature with urgent Fleet needstoryA user story defining an entire featureA user story defining an entire feature~eng-priorityEngineering-initiated story that was prioritized.Engineering-initiated story that was prioritized.~engineering-initiatedEngineering-initiated story, such as a bug, refactor, or contributor experience improvement.Engineering-initiated story, such as a bug, refactor, or contributor experience improvement.
Metadata
Metadata
Assignees
Labels
#g-endpoint-opsEndpoint ops product groupEndpoint ops product group:releaseReady to write code. Scheduled in a release. See "Making changes" in handbook.Ready to write code. Scheduled in a release. See "Making changes" in handbook.P2Urgent: Supported workflow not functioning as intended, newly drafted feature with urgent Fleet needUrgent: Supported workflow not functioning as intended, newly drafted feature with urgent Fleet needstoryA user story defining an entire featureA user story defining an entire feature~eng-priorityEngineering-initiated story that was prioritized.Engineering-initiated story that was prioritized.~engineering-initiatedEngineering-initiated story, such as a bug, refactor, or contributor experience improvement.Engineering-initiated story, such as a bug, refactor, or contributor experience improvement.
Goal
Currently this is not the case because Fleet executes a
recoveronpanicin cron jobs (which we want to keep as is) and CI is not parsing the output to detect this:fleet/.github/workflows/test-go.yaml
Line 150 in e9b2217
fleet/server/service/schedule/schedule.go
Line 437 in e9b2217
Sample of a green CI run with a "hidden" panic:
https://github.com/fleetdm/fleet/actions/runs/10313407643/job/28550120568
which has the following log in Fleet's cron logger output:
{ "cron": "vulnerabilities", "details": "runtime error: invalid memory address or nil pointer dereference", "err": "running job", "instanceID": "test_instance", "jobID": "cron_vulnerabilities", "level": "error", "schedule": "vulnerabilities" }