|
49 | 49 | "src/common/include/macros.fpp", |
50 | 50 | "src/common/include/case.fpp", |
51 | 51 | "toolchain/mfc/test/case.py", |
52 | | - "toolchain/mfc/test/cases.py", |
| 52 | + # TEMP: cases.py removed to test pruning on this PR — restore before merge |
| 53 | + # "toolchain/mfc/test/cases.py", |
53 | 54 | "toolchain/mfc/test/coverage.py", |
54 | 55 | "toolchain/mfc/params/definitions.py", |
55 | 56 | "toolchain/mfc/run/input.py", |
@@ -664,17 +665,17 @@ def load_coverage_cache(root_dir: str) -> Optional[dict]: |
664 | 665 | cons.print("[yellow]Warning: Coverage cache has unexpected format.[/yellow]") |
665 | 666 | return None |
666 | 667 |
|
667 | | - cases_py = Path(root_dir) / "toolchain/mfc/test/cases.py" |
668 | | - try: |
669 | | - current_hash = hashlib.sha256(cases_py.read_bytes()).hexdigest() |
670 | | - except OSError as exc: |
671 | | - cons.print(f"[yellow]Warning: Cannot read cases.py for cache staleness check: {exc}[/yellow]") |
672 | | - return None |
673 | | - stored_hash = cache.get("_meta", {}).get("cases_hash", "") |
674 | | - |
675 | | - if current_hash != stored_hash: |
676 | | - cons.print("[yellow]Warning: Coverage cache is stale (cases.py changed).[/yellow]") |
677 | | - return None |
| 668 | + # TEMP: staleness check disabled to test pruning on this PR — restore before merge |
| 669 | + # cases_py = Path(root_dir) / "toolchain/mfc/test/cases.py" |
| 670 | + # try: |
| 671 | + # current_hash = hashlib.sha256(cases_py.read_bytes()).hexdigest() |
| 672 | + # except OSError as exc: |
| 673 | + # cons.print(f"[yellow]Warning: Cannot read cases.py for cache staleness check: {exc}[/yellow]") |
| 674 | + # return None |
| 675 | + # stored_hash = cache.get("_meta", {}).get("cases_hash", "") |
| 676 | + # if current_hash != stored_hash: |
| 677 | + # cons.print("[yellow]Warning: Coverage cache is stale (cases.py changed).[/yellow]") |
| 678 | + # return None |
678 | 679 |
|
679 | 680 | cache = _normalize_cache(cache) |
680 | 681 |
|
|
0 commit comments