From bac801c90edba09693495fab5ec44d105bee9e0d Mon Sep 17 00:00:00 2001 From: Abdessamad Derraz <3028866+Abdess@users.noreply.github.com> Date: Fri, 23 Oct 2026 20:04:12 +0200 Subject: [PATCH] chore: run node without its compile cache The deploy job sets NODE_DISABLE_COMPILE_CACHE for the build and the search gate, and lighthouse.py passes it to its children. The paths list gains generate_event_schema.py, which the site build imports. --- .github/workflows/deploy-site.yml | 5 +++++ website/tools/lighthouse.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-site.yml b/.github/workflows/deploy-site.yml index de650c89..36de3e44 100644 --- a/.github/workflows/deploy-site.yml +++ b/.github/workflows/deploy-site.yml @@ -22,6 +22,7 @@ on: - "scripts/exporter/baseline.py" - "scripts/exporter/candidates.py" - "scripts/gamedata.py" + - "scripts/generate_event_schema.py" - "scripts/generate_pack.py" - "scripts/generate_readme.py" - "scripts/generate_site.py" @@ -89,6 +90,10 @@ concurrency: jobs: build: runs-on: ubuntu-latest + # Node's compile cache writes under /tmp on every node run, the build + # and the search gate alike. + env: + NODE_DISABLE_COMPILE_CACHE: "1" steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 diff --git a/website/tools/lighthouse.py b/website/tools/lighthouse.py index e40ea638..b25f0836 100644 --- a/website/tools/lighthouse.py +++ b/website/tools/lighthouse.py @@ -31,7 +31,7 @@ def main() -> int: engines = dict(item.split("=", 1) for item in args[:split]) pages = args[split + 1:] out.mkdir(parents=True, exist_ok=True) - env = {**os.environ, "CHROME_PATH": "/usr/bin/google-chrome"} + env = {**os.environ, "CHROME_PATH": "/usr/bin/google-chrome", "NODE_DISABLE_COMPILE_CACHE": "1"} for name, base in engines.items(): for page in pages: slug = page.strip("/").replace("/", "_") or "home"