fix: handle production source failures and reduce ZIP work

This commit is contained in:
Thomas Durieux committed 2026-10-09 09:40:54 +00:00
1 parent bd7d6f0bef
commit 705f7c428a
16 files changed
+612 -86

No files matched your search

+1
View File
@@ -72,6 +72,7 @@ describe("production failure fixes", function () {
now = 30; expect(cache.get("b")).to.equal(undefined); expect(cache.get("c")).to.equal(undefined);
});
it("caches confirmed file misses by credential and commit, without caching permission failures", async () => {
stub(require("../src/core/source/github-content-miss"), "classifyContentMiss", async () => "file_not_found");
let token = "credential-a", attempts = 0, now = Date.now();
stub(Date, "now", () => now);
stub(storage, "fileInfo", async () => { throw Object.assign(Error("missing"), { code: "ENOENT" }); });