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
4 changes: 2 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -403,8 +403,8 @@ REDIS_URL=redis://redis:6379 # REQUIRED for the self-host review
# # host can reasonably go to 8-12 before the loops' own CPU work
# # (JSON parsing, diff rendering, AI-response handling) starts
# # competing for the cycles the I/O awaits were supposed to free up.
# # Watch gittensory_queue_live_pending
# # / gittensory_queue_oldest_live_pending_age_seconds after raising it;
# # Watch loopover_queue_live_pending
# # / loopover_queue_oldest_live_pending_age_seconds after raising it;
# # if those stay high, the bottleneck is elsewhere (GitHub rate limit,
# # AI latency, Postgres pool -- see PGPOOL_MAX above), not concurrency.
# QUEUE_BACKGROUND_CONCURRENCY=1 # max low-priority/background jobs allowed to occupy QUEUE_CONCURRENCY slots
Expand Down
15 changes: 15 additions & 0 deletions test/unit/env-example-metric-names.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { readFileSync } from "node:fs";
import { join } from "node:path";
import { describe, expect, it } from "vitest";

describe(".env.example metric-name references (#5936)", () => {
it("references only the real loopover_ metric prefix, never the stale gittensory_ one, in queue tuning guidance", () => {
const env = readFileSync(join(process.cwd(), ".env.example"), "utf8");
// Prometheus metric names in this codebase are snake_case (src/selfhost/metrics.ts); a `gittensory_<word>`
// shape anywhere in this file is stale doc drift left over from the gittensory -> loopover rebrand -- the
// rebranded metric family only ever registers under the `loopover_` prefix.
expect(env).not.toMatch(/gittensory_[a-z_]+/);
expect(env).toContain("loopover_queue_live_pending");
expect(env).toContain("loopover_queue_oldest_live_pending_age_seconds");
});
});