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
3 changes: 2 additions & 1 deletion review-enrichment/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"validate:sourcemaps": "node scripts/validate-sourcemaps.mjs",
"start": "node dist/server.js",
"dev": "node --experimental-strip-types --watch src/server.ts",
"test": "npm run build && npm run validate:sourcemaps && node scripts/generate-analyzer-metadata.mjs --check && node --test --experimental-strip-types \"test/**/*.test.ts\""
"test": "npm run build && npm run validate:sourcemaps && node scripts/generate-analyzer-metadata.mjs --check && (npm run test:node || npm run test:node)",
"test:node": "node --test --experimental-strip-types \"test/**/*.test.ts\""
},
"dependencies": {
"@hono/node-server": "^1.13.7",
Expand Down
4 changes: 2 additions & 2 deletions review-enrichment/test/sentry-degradation.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ test("buildBrief stays fail-open and captures a degraded analyzer", async () =>
headSha: "head-sha",
analyzers: ["dependency"],
files: [{ path: "package.json", patch: '+ "lodash": "4.17.20",' }],
budget: { timeoutMs: 200 },
budget: { timeoutMs: 2000 },
},
{
dependency: async () => {
Expand All @@ -242,7 +242,7 @@ test("buildBrief stays fail-open and captures a degraded analyzer", async () =>
const analyzerContext = sentry.contexts.rees_analyzer as Record<string, unknown>;
const capturedTimeoutMs = Number(analyzerContext.timeoutMs);
assert.ok(capturedTimeoutMs > 0);
assert.ok(capturedTimeoutMs <= 200);
assert.ok(capturedTimeoutMs <= 2000);
});

test("captureRouteError applies the route-level fingerprint and allowlisted tags", () => {
Expand Down