From 17abc25b3a634d6fee571ef08077ef2dacf45f47 Mon Sep 17 00:00:00 2001 From: Seongho Bae Date: Wed, 2 Sep 2026 01:39:12 +0900 Subject: [PATCH] chore(fuzz): remove dead duplicate OpenCode fuzz target Fresh protected-main audit confirms the runnable ClusterFuzzLite target and Strix support path use fuzz/fuzz_opencode_review_normalize_output.py. The duplicate fuzz/fuzz_opencode_normalize_output.py has no live caller and still invokes removed NORMALIZER.extract_json_object(), so it would fail if executed. Remove only the dead duplicate from current main; synthetic removed-file-context fixtures may continue naming it as historical test data. --- fuzz/fuzz_opencode_normalize_output.py | 47 -------------------------- 1 file changed, 47 deletions(-) delete mode 100644 fuzz/fuzz_opencode_normalize_output.py diff --git a/fuzz/fuzz_opencode_normalize_output.py b/fuzz/fuzz_opencode_normalize_output.py deleted file mode 100644 index 0e034a2ee2..0000000000 --- a/fuzz/fuzz_opencode_normalize_output.py +++ /dev/null @@ -1,47 +0,0 @@ -"""Atheris fuzz harness for OpenCode review-output normalization.""" - -from __future__ import annotations - -import importlib.util -import pathlib -import sys - -import atheris - - -REPO_ROOT = pathlib.Path(__file__).resolve().parents[1] -NORMALIZER_PATH = REPO_ROOT / "scripts" / "ci" / "opencode_review_normalize_output.py" - - -def _load_normalizer(): - """Load the normalizer module without requiring package installation.""" - spec = importlib.util.spec_from_file_location( - "opencode_review_normalize_output", NORMALIZER_PATH - ) - if spec is None or spec.loader is None: - raise RuntimeError("Could not load OpenCode normalizer module") - module = importlib.util.module_from_spec(spec) - spec.loader.exec_module(module) - return module - - -NORMALIZER = _load_normalizer() - - -def TestOneInput(data: bytes) -> None: - """Feed arbitrary model text into the JSON extraction path.""" - try: - text = data.decode("utf-8", errors="ignore") - NORMALIZER.extract_json_object(text) - except (ValueError, UnicodeError): - return - - -def main() -> None: - """Run the Atheris entry point.""" - atheris.Setup(sys.argv, TestOneInput) - atheris.Fuzz() - - -if __name__ == "__main__": - main()