mvisonneau / gitlab-ci-pipelines-exporter

Prometheus / OpenMetrics exporter for GitLab CI pipelines insights
Apache License 2.0
1.21k stars 238 forks source link

fix: garbage collection of merge-request refs when webhook mode #859

Closed xNok closed 3 weeks ago

xNok commented 3 weeks ago

When using the webhook mode we noticed that a bunch of refs were never garage-collected and kept accumulating in the memory/redis.

The solution uses the Merge Request Hook to delete those refs when the MR is closed or merged

mvisonneau commented 3 weeks ago

thanks for this fix @xNok!

coveralls commented 3 weeks ago

Coverage Status

coverage: 65.187% (-0.2%) from 65.401% when pulling 966b9b483f234c6ebd217f52a6c7f5ca90eca33c on ESLFACEITGROUP:fix-garbage-collection-for-ref-when-webhook-mode into d2c4e8156dcfcb68485a9491269c3640317e834d on mvisonneau:main.