|
12 | 12 | dense_test_path, |
13 | 13 | write_dense_compile_project, |
14 | 14 | ) |
15 | | -from scripts.cold_compile_performance.main.assert_required_cgroup_memory_limit import ( |
16 | | - assert_required_cgroup_memory_limit, |
| 15 | +from scripts.cold_compile_performance.main.require_compile_memory_scope import ( |
| 16 | + require_compile_memory_scope, |
17 | 17 | ) |
18 | 18 | from sqlbuild._native import ( |
19 | 19 | Rule, |
@@ -85,7 +85,7 @@ def test_given_dense_project_when_compiling_cold_then_preserves_rules_semantics_ |
85 | 85 | test_case: DenseCompileGuardTestCase, |
86 | 86 | tmp_path: Path, |
87 | 87 | ) -> None: |
88 | | - assert_required_cgroup_memory_limit() |
| 88 | + require_compile_memory_scope() |
89 | 89 | project_dir: Path = tmp_path / "dense_orders" |
90 | 90 | write_dense_compile_project(project_dir=project_dir, model_count=test_case.model_count) |
91 | 91 | config: RulesConfig = load_rules_config(project_dir=project_dir) |
@@ -179,7 +179,7 @@ def test_given_dense_project_when_compiling_warm_and_after_one_edit_then_matches |
179 | 179 | test_case: DenseWarmEditCompileGuardTestCase, |
180 | 180 | tmp_path: Path, |
181 | 181 | ) -> None: |
182 | | - assert_required_cgroup_memory_limit() |
| 182 | + require_compile_memory_scope() |
183 | 183 | project_dir: Path = tmp_path / "dense_orders" |
184 | 184 | write_dense_compile_project(project_dir=project_dir, model_count=test_case.model_count) |
185 | 185 | edited_model_path: Path = dense_model_path( |
@@ -264,7 +264,7 @@ def test_given_dense_project_when_editing_one_file_then_delta_compiles_stay_chea |
264 | 264 | test_case: DenseDeltaEditLoopGuardTestCase, |
265 | 265 | tmp_path: Path, |
266 | 266 | ) -> None: |
267 | | - assert_required_cgroup_memory_limit() |
| 267 | + require_compile_memory_scope() |
268 | 268 | project_dir: Path = tmp_path / "dense_orders" |
269 | 269 | write_dense_compile_project(project_dir=project_dir, model_count=test_case.model_count) |
270 | 270 | index: int = test_case.edited_model_index |
|
0 commit comments