|
19 | 19 | CompileCacheOutcome, |
20 | 20 | attachment_cache_counts, |
21 | 21 | compile_cache_outcome, |
22 | | - compile_json_payload, |
23 | 22 | compile_manifest_run_ids, |
| 23 | + fresh_compile_json_payload, |
24 | 24 | outcome_attachment_counts, |
25 | 25 | replace_project_text, |
26 | 26 | write_project_file, |
@@ -175,8 +175,8 @@ def test_given_attachment_diagnostics_when_compiling_warm_then_cache_hit_replays |
175 | 175 | write_project_files(project_dir, test_case.files) |
176 | 176 | env: dict[str, str] = {COMPILE_CACHE_REGION_ENV_VAR: "east"} |
177 | 177 |
|
178 | | - cold: dict[str, Any] = compile_json_payload(project_dir=project_dir, env=env) |
179 | | - warm: dict[str, Any] = compile_json_payload(project_dir=project_dir, env=env) |
| 178 | + cold: dict[str, Any] = fresh_compile_json_payload(project_dir=project_dir, env=env) |
| 179 | + warm: dict[str, Any] = fresh_compile_json_payload(project_dir=project_dir, env=env) |
180 | 180 | warm_outcome: CompileCacheOutcome = compile_cache_outcome(project_dir=project_dir, env=env) |
181 | 181 | reference: CompileCacheOutcome = compile_cache_outcome( |
182 | 182 | project_dir=project_dir, env=env, compile_args=("--no-cache",) |
@@ -230,21 +230,21 @@ def test_given_replayed_diagnostic_when_reference_policy_toggles_then_matches_un |
230 | 230 | project_dir: Path = cache_invalidation_project |
231 | 231 | write_project_files(project_dir, test_case.files) |
232 | 232 | env: dict[str, str] = {COMPILE_CACHE_REGION_ENV_VAR: "east"} |
233 | | - _ = compile_json_payload(project_dir=project_dir, env=env) |
234 | | - strict_warm: dict[str, Any] = compile_json_payload(project_dir=project_dir, env=env) |
| 233 | + _ = fresh_compile_json_payload(project_dir=project_dir, env=env) |
| 234 | + strict_warm: dict[str, Any] = fresh_compile_json_payload(project_dir=project_dir, env=env) |
235 | 235 |
|
236 | 236 | test_case.relax(project_dir) |
237 | 237 | relaxed: CompileCacheOutcome = compile_cache_outcome(project_dir=project_dir, env=env) |
238 | 238 | relaxed_reference: CompileCacheOutcome = compile_cache_outcome( |
239 | 239 | project_dir=project_dir, env=env, compile_args=("--no-cache",) |
240 | 240 | ) |
241 | | - relaxed_rewarm: dict[str, Any] = compile_json_payload(project_dir=project_dir, env=env) |
| 241 | + relaxed_rewarm: dict[str, Any] = fresh_compile_json_payload(project_dir=project_dir, env=env) |
242 | 242 | test_case.restore(project_dir) |
243 | 243 | restored: CompileCacheOutcome = compile_cache_outcome(project_dir=project_dir, env=env) |
244 | 244 | restored_reference: CompileCacheOutcome = compile_cache_outcome( |
245 | 245 | project_dir=project_dir, env=env, compile_args=("--no-cache",) |
246 | 246 | ) |
247 | | - restored_rewarm: dict[str, Any] = compile_json_payload(project_dir=project_dir, env=env) |
| 247 | + restored_rewarm: dict[str, Any] = fresh_compile_json_payload(project_dir=project_dir, env=env) |
248 | 248 |
|
249 | 249 | assert tuple(item["code"] for item in strict_warm["diagnostics"]) == ( |
250 | 250 | test_case.expected_strict_codes |
|
0 commit comments