Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions framework/.changeset/v0.13.8.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Multi-don example by default, docs for generated env
4 changes: 2 additions & 2 deletions framework/leak/detector_hog_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func TestVerifyCyclicHog(t *testing.T) {
lc := leak.NewResourceLeakChecker()
// cpu
diff, err := lc.MeasureDelta(&leak.CheckConfig{
Query: `avg_over_time((sum(rate(container_cpu_usage_seconds_total{name="resource-hog"}[30m])))[30m:5m]) * 100`,
Query: `avg_over_time((sum(rate(container_cpu_usage_seconds_total{name="resource-hog"}[30m])))[30m:5m]) * 100`,
// set timestamps for the run you are analyzing
Start: mustTime("2026-01-19T10:30:00Z"),
End: mustTime("2026-01-19T12:29:15Z"),
Expand All @@ -52,7 +52,7 @@ func TestVerifyCyclicHog(t *testing.T) {

// mem
diff, err = lc.MeasureDelta(&leak.CheckConfig{
Query: `avg_over_time(container_memory_rss{name="resource-hog"}[30m]) / 1024 / 1024`,
Query: `avg_over_time(container_memory_rss{name="resource-hog"}[30m]) / 1024 / 1024`,
// set timestamps for the run you are analyzing
Start: mustTime("2026-01-19T10:30:00Z"),
End: mustTime("2026-01-19T12:29:15Z"),
Expand Down
4 changes: 2 additions & 2 deletions framework/leak/detector_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ func TestRealCLNodesLeakDetectionLocalDevenv(t *testing.T) {
cnd, err := leak.NewCLNodesLeakDetector(leak.NewResourceLeakChecker())
require.NoError(t, err)
errs := cnd.Check(&leak.CLNodesCheck{
NumNodes: 4,
NumNodes: 4,
// set timestamps for the run you are analyzing
Start: mustTime("2026-01-19T17:23:14Z"),
End: mustTime("2026-01-19T18:00:51Z"),
Expand All @@ -150,7 +150,7 @@ func TestRealPrometheusLowLevelAPI(t *testing.T) {
lc := leak.NewResourceLeakChecker()
for i := range donNodes {
diff, err := lc.MeasureDelta(&leak.CheckConfig{
Query: fmt.Sprintf(`quantile_over_time(0.5, container_memory_rss{name="don-node%d"}[1h]) / 1024 / 1024`, i),
Query: fmt.Sprintf(`quantile_over_time(0.5, container_memory_rss{name="don-node%d"}[1h]) / 1024 / 1024`, i),
// set timestamps for the run you are analyzing
Start: mustTime("2026-01-12T21:53:00Z"),
End: mustTime("2026-01-13T10:11:00Z"),
Expand Down
Loading
Loading