merge: integrate main after progress fence and cache merges

This commit is contained in:
Thomas Durieux committed 2026-11-03 08:25:43 +00:00
commit 97e5b50cf0
32 files changed
+2200 -53

No files matched your search

+11
View File
@@ -1,3 +1,5 @@
import { cacheMetricsReport } from "../../core/cache-observability";
import { sharedBlobCache, resultBlobCache } from "../../core/blob-cache";
import { AsyncCache } from "../../core/async-cache";
import * as os from "os";
import { execFile } from "child_process";
@@ -88,6 +90,15 @@ router.get("/performance", async (req, res) => {
catch { res.json({ available: false, instances: [], routes: [], stages: [] }); }
});
router.get("/cache", async (req, res) => {
res.set("Cache-Control", "no-store");
try {
res.json({ ...cacheMetricsReport(Number(req.query.minutes)), enabled: config.SHARED_CACHE_ENABLED,
filesystemSupported: config.STORAGE === "filesystem", source: sharedBlobCache()?.stats() || null,
results: resultBlobCache()?.stats() || null });
} catch { res.json({ available: false, reason: "The cache index is unavailable", rows: [] }); }
});
function dashboardCache(
_req: express.Request,
res: express.Response,
+2 -1
View File
@@ -146,7 +146,8 @@ router.get(
anonymizedPath,
repo.model.options
);
res.header("ETag", etag);
if (config.SHARED_CACHE_ENABLED) res.vary("Accept-Encoding");
res.header("ETag", config.SHARED_CACHE_ENABLED ? `W/${etag}` : etag);
// Force the browser to revalidate every time. The previous 210-day
// max-age was keyed only on the upstream sha, so editing the
// anonymization term list left old anonymizations cached under the