Skip to content

Commit f057db7

Browse files
committed
fix(codeql): remove unused preview exe cache
1 parent 6283fb1 commit f057db7

2 files changed

Lines changed: 2 additions & 8 deletions

File tree

.agents/skills/autoreview/scripts/autoreview

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,8 @@ def sample_process_metrics(repo: Path, pid: int) -> tuple[float, float, int, str
338338
try:
339339
rss_kb += int(fields[1])
340340
except ValueError:
341-
pass
341+
# Some ps variants can emit non-numeric RSS for transient child rows.
342+
continue
342343
cpu_seconds += parse_ps_time(fields[2])
343344
if not states:
344345
return None

tools/v2_visual_diff.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -152,14 +152,8 @@ def output_dir(page: PageSpec) -> Path:
152152
# ---------------------------------------------------------------------------
153153

154154

155-
_PREVIEW_EXE_CACHE: Optional[Path] = None
156-
157-
158155
def ensure_preview_exe() -> Path:
159156
"""Always run an incremental dotnet build (once per invocation) to pick up code changes, then locate the exe."""
160-
global _PREVIEW_EXE_CACHE
161-
if _PREVIEW_EXE_CACHE is not None:
162-
return _PREVIEW_EXE_CACHE
163157
proj = repo_root() / "src" / "OpenClaw.SetupPreview" / "OpenClaw.SetupPreview.csproj"
164158
print("[vv] building OpenClaw.SetupPreview (incremental)...", flush=True)
165159
result = subprocess.run(
@@ -175,7 +169,6 @@ def ensure_preview_exe() -> Path:
175169
exe = preview_exe()
176170
if not exe or not exe.exists():
177171
raise RuntimeError("dotnet build succeeded but no exe was produced")
178-
_PREVIEW_EXE_CACHE = exe
179172
return exe
180173

181174

0 commit comments

Comments
 (0)