Skip to content

Constant crashes when a lot of gh actions #49

Open

Description

@juris

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

Activity

  1. tobifroe commented on Oct 4, 2022

    @tobifroe

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

  2. papaslon commented on Nov 7, 2022

    @papaslon

    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

  3. moutonjeremy commented on Nov 7, 2023

    @moutonjeremy
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions