Skip to content

Conversation

@skudasov
Copy link
Contributor

@skudasov skudasov commented Jan 14, 2026


Below is a summarization created by an LLM (gpt-4-0125-preview). Be mindful of hallucinations and verify accuracy.

Why

The changes introduce a comprehensive resource leak detection mechanism for long-running tests, specifically targeting the usage of Prometheus for monitoring resource utilization. This addition aims to automate the detection of resource leaks by comparing metrics at different points during tests, thereby ensuring the reliability and efficiency of the systems being tested.

What

  • framework/.changeset/v0.13.1.md
    • Adds a changelog entry for the addition of resource leak detector automation.
  • framework/leak/detector.go
    • Introduces a new package leak with a file for the resource leak detector.
    • Implements Prometheus-based resource leak detection logic designed for long-running tests.
    • Provides configuration structs and functions to customize the Prometheus query client and leak detection settings.
  • framework/leak/detector_cl_node.go
    • Adds a Chainlink node-specific resource leak detector.
    • Defines configuration and functions to check resource usage against thresholds for CPU and memory.
  • framework/leak/detector_fake.go
    • Implements a fake query client for testing purposes, simulating Prometheus responses.
  • framework/leak/detector_test.go
    • Provides test cases for the resource leak detection functionality, including tests for Prometheus query client and Chainlink node-specific checks.
  • framework/prometheus.go
    • Refactors the Prometheus query response structs for improved clarity and usability.
  • framework/prometheus_test.go
    • Updates tests to reflect changes in Prometheus query response struct.
  • justfile
    • Modifies the lint command to include automatic fixes with golangci-lint.

@skudasov skudasov marked this pull request as ready for review January 14, 2026 21:04
@skudasov skudasov requested a review from a team as a code owner January 14, 2026 21:04
@skudasov skudasov merged commit d67f1b1 into main Jan 14, 2026
75 of 79 checks passed
@skudasov skudasov deleted the resource-leak-detector branch January 14, 2026 21:18
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

Successfully merging this pull request may close these issues.

3 participants