From bf20d19bf46a60513a3b4eef16648a2998b87fc3 Mon Sep 17 00:00:00 2001 From: Seungpyo Hong Date: Fri, 18 Sep 2026 06:54:58 +0900 Subject: [PATCH 1/2] fix(ci): stop pruning /v1/games from the published site MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The step existed because ~1M game pages blew the Pages deployment window. Games now live in game-catalog and the path holds a 357-byte pointer to it, which this step was deleting — the URL 404s instead of redirecting. Refs #1 --- .github/workflows/deploy-pages.yml | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/.github/workflows/deploy-pages.yml b/.github/workflows/deploy-pages.yml index c258e4bad8989..fd5b05cb34708 100644 --- a/.github/workflows/deploy-pages.yml +++ b/.github/workflows/deploy-pages.yml @@ -48,18 +48,6 @@ jobs: run: | mkdir -p _site cp -r site/dist/. _site/ - # Games remain versioned static source data in this repository, but - # publishing nearly one million per-record files exceeds the fixed - # GitHub Pages deployment window. Keep the public homepage artifact - # to the collections it can serve reliably. - rm -rf _site/v1/games - node <<'NODE' - const fs = require("fs"); - const path = "_site/v1/index.json"; - const manifest = JSON.parse(fs.readFileSync(path, "utf8")); - delete manifest.collections?.games; - fs.writeFileSync(path, JSON.stringify(manifest, null, 2) + "\n"); - NODE touch _site/.nojekyll - uses: actions/upload-pages-artifact@v3 From fe7e2174dcae93b407159d58536b1834fb864285 Mon Sep 17 00:00:00 2001 From: Seungpyo Hong Date: Fri, 18 Sep 2026 08:20:06 +0900 Subject: [PATCH 2/2] fix(ci): treat a timed-out PR file list like a refused one #181 caught 422 ("diff is taking too long to generate"); PR #184 got a plain 504 instead and triage died again. Both mean the same thing: no file list for an oversized PR. Refs #1 --- .github/workflows/pr-metadata.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pr-metadata.yml b/.github/workflows/pr-metadata.yml index 38830a729707b..9b7a795120a08 100644 --- a/.github/workflows/pr-metadata.yml +++ b/.github/workflows/pr-metadata.yml @@ -40,15 +40,17 @@ jobs: pull_number: issue_number, per_page: 100, }); - // GitHub refuses the file list for very large PRs (dump refreshes: - // 422 "diff is taking too long to generate"); label from what we got. + // GitHub cannot produce the file list for very large PRs (dump + // refreshes): 422 "diff is taking too long to generate", or a plain + // 504 when it gives up later. Label from whatever arrived. + const NO_FILE_LIST = new Set([422, 502, 503, 504]); try { for await (const { data } of fileIterator) { files.push(...data); if (files.length >= FILE_SCAN_LIMIT) break; } } catch (error) { - if (error.status !== 422) throw error; + if (!NO_FILE_LIST.has(error.status)) throw error; core.warning(`PR file list unavailable (${error.message}); path labels skipped`); } const filesWereCapped = (pr.changed_files || files.length) > files.length;