Getting Github Actions Workflow Statuses causes kernel panic and shutdown
Opened this issue · 8 comments
Every time I set a repository in the configuration to scrape for workflow statuses, I get varying kernel panics and the exporter shuts down.
It doesn't matter which repository I try to point it to, in which org. I've tested four repositories in two orgs.
might be related to this #28
Hi what's the update with this? I am seeing the same issue. I can only set 1 repo in the GITHUB_REPOS variable. Otherwise I see the kernel panic and shut down error.
Same here
Having the same issues. I was able to exclude the workflow
field from being exported which stops the issue but now I don't get that field attached to the metrics. Makes it a bit hard to identify which workflow since there is only ID left.\
Seems it faults here from the stacktrace: https://github.com/Spendesk/github-actions-exporter/blob/develop/pkg/metrics/get_workflow_runs_from_github.go#L32
To include the stacktrace:
2021/11/23 22:56:10 authenticating with Github App
2021/11/23 22:56:10 exporter listening on 0.0.0.0:9999
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x99451b]
goroutine 30 [running]:
github-actions-exporter/pkg/metrics.getFieldValue(0xc0000220ad, 0x24, 0xc0004ae090, 0xc000138ad0, 0xc000138ae0, 0xc000138af0, 0xc000138b00, 0xc0004ae0c0, 0xc000138b10, 0xc000138b20, ...)
/app/pkg/metrics/get_workflow_runs_from_github.go:32 +0x27b
github-actions-exporter/pkg/metrics.getRelevantFields(0xc0000220ad, 0x24, 0xc0002dbb20, 0xa, 0xb7c9e0, 0xc00045b280)
/app/pkg/metrics/get_workflow_runs_from_github.go:46 +0x18e
github-actions-exporter/pkg/metrics.getWorkflowRunsFromGithub()
/app/pkg/metrics/get_workflow_runs_from_github.go:72 +0xea
created by github-actions-exporter/pkg/metrics.InitMetrics
/app/pkg/metrics/metrics.go:64 +0x52f
Also, I just tried building DerTiedemann:fix/workflow-pagination and seeing the same errors. Digging in more to see if I can fix and submit a PR.
Also, I just tried building DerTiedemann:fix/workflow-pagination and seeing the same errors. Digging in more to see if I can fix and submit a PR.
Hi tristanwl, any luck or time with this problem, I have the same problem but not the skills to fix this.
I haven't had any time yet to work on this yet but thankfully my plate is clearing up and I'm going to try and get back on this in April. To be honest was hoping to find someone fixed this since I last checked into it ;) Will comment if I'm able to make progress on this in the coming weeks.
Any update?