(
self,
module_data: list[tuple[str, str, str]],
manager: build.BuildManager,
blocker: bool,
step: int,
)
| 275 | check_test_output_files(testcase, incremental_step, strip_prefix="tmp/") |
| 276 | |
| 277 | def verify_cache( |
| 278 | self, |
| 279 | module_data: list[tuple[str, str, str]], |
| 280 | manager: build.BuildManager, |
| 281 | blocker: bool, |
| 282 | step: int, |
| 283 | ) -> None: |
| 284 | if not blocker: |
| 285 | # There should be valid cache metadata for each module except |
| 286 | # in case of a blocking error in themselves or one of their |
| 287 | # dependencies. |
| 288 | modules = self.find_module_files(manager) |
| 289 | modules.update({module_name: path for module_name, path, text in module_data}) |
| 290 | missing_paths = self.find_missing_cache_files(modules, manager) |
| 291 | if missing_paths: |
| 292 | raise AssertionError(f"cache data missing for {missing_paths} on run {step}") |
| 293 | assert os.path.isfile(os.path.join(manager.options.cache_dir, ".gitignore")) |
| 294 | cachedir_tag = os.path.join(manager.options.cache_dir, "CACHEDIR.TAG") |
| 295 | assert os.path.isfile(cachedir_tag) |
| 296 | with open(cachedir_tag) as f: |
| 297 | assert f.read().startswith("Signature: 8a477f597d28d172789f06886806bc55") |
| 298 | |
| 299 | def find_module_files(self, manager: build.BuildManager) -> dict[str, str]: |
| 300 | return {id: module.path for id, module in manager.modules.items()} |
no test coverage detected