mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-10-27 22:27:21 -05:00
fix: run pipeline children without node's cache
The render step's npm build wrote Node's compile cache to /tmp, a 4 GB tmpfs on this host, and a day of pipeline runs filled it to 3.4 GB. Every child the pipeline starts now carries NODE_DISABLE_COMPILE_CACHE=1.
This commit is contained in:
1 parent
b714d9628c
commit
6a13eda370
2 files changed
+13
-1
No files matched your search
+4
-1
@@ -182,7 +182,10 @@ def run(cmd: list[str], label: str) -> tuple[bool, str]:
|
||||
lines: list[str] = []
|
||||
with subprocess.Popen(
|
||||
cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True,
|
||||
cwd=repo_root, env={**os.environ, "PYTHONUNBUFFERED": "1"},
|
||||
# Node's compile cache lands in /tmp, a 4 GB tmpfs here: the site
|
||||
# build filled it to 3.4 GB across a day of pipeline runs.
|
||||
cwd=repo_root,
|
||||
env={**os.environ, "PYTHONUNBUFFERED": "1", "NODE_DISABLE_COMPILE_CACHE": "1"},
|
||||
) as proc:
|
||||
for line in proc.stdout:
|
||||
lines.append(line)
|
||||
|
||||
Reference in new issue
Block a user