Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Constant crashes when a lot of gh actions #49

Open
juris opened this issue Aug 8, 2022 · 3 comments
Open

Constant crashes when a lot of gh actions #49

juris opened this issue Aug 8, 2022 · 3 comments

Comments

@juris
Copy link

juris commented Aug 8, 2022

With too many (20+) gh actions in place, exporter started to crash with the following error:

2022/08/08 12:03:47 authenticating with Github Token
2022/08/08 12:03:48 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 45 [running]:
github-actions-exporter/pkg/metrics.getFieldValue(0xc00002600d, 0x12, 0xc0001c8520, 0xc000253200, 0xc000253210, 0xc000253220, 0xc000253230, 0xc0001c8528, 0xc000253240, 0xc000253250, ...)
	/app/pkg/metrics/get_workflow_runs_from_github.go:32 +0x27b
github-actions-exporter/pkg/metrics.getRelevantFields(0xc00002600d, 0x12, 0xc0006b3180, 0x5, 0xb7c9e0, 0xc000234a40)
	/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
@tobifroe
Copy link

tobifroe commented Oct 4, 2022

I'm running into the same error when scraping lots of repositories. Any update on this?

@papaslon
Copy link

papaslon commented Nov 7, 2022

It will be fixed in upcoming release. To be specific in this commit. In the meantime you can use image.tag: v1.9.0-beta1

@moutonjeremy
Copy link
Member

Hello,
Thank you @papaslon for the fix.
@juris @tobifroe it's merged in the main branch and release in v1.9.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants