Address review: shared fixtures visible to CI test selection, checkout scoped prune, cancellable build lock

This commit is contained in:
J. Nick Koston
2026-09-03 10:54:05 +02:00
parent 736218e747
commit da5f43ce41
4 changed files with 54 additions and 16 deletions
+14
View File
@@ -2122,6 +2122,20 @@ def test_get_cpp_changed_components_independent_of_cwd(
) == ["time"]
def test_fixture_map_includes_shared_yaml_markers() -> None:
"""Fixtures named only by shared_yaml markers must map to their test file."""
helpers.get_fixture_to_test_files.cache_clear()
mapping = helpers.get_fixture_to_test_files()
for fixture in (
"uart_mock_modbus_loopback",
"uart_mock_modbus_mesh",
"uart_mock_modbus_server_injected",
):
assert mapping[fixture] == frozenset(
{"tests/integration/test_uart_mock_modbus.py"}
)
def test_lpt_partition_balances_skewed_weights() -> None:
"""Heavy items spread across groups instead of clustering."""
items = [f"i{n}" for n in range(6)]