diff --git a/.github/frozen-paths.toml b/.github/frozen-paths.toml index 594b6f2fa5..45580fbf05 100644 --- a/.github/frozen-paths.toml +++ b/.github/frozen-paths.toml @@ -9,7 +9,10 @@ # The desktop compute drivers move to ai-openshell/desktop with their history. # Keep this list equal to what that repository imports. These paths are # identical at v0.1.11 and on main, which is the import reference. -# Add tests/suites/drivers/podman once it is imported (#6041). +# The Docker and Podman driver suites (#6041) are frozen by source and manifest +# only. Their Cargo.lock files stay editable: core keeps them aligned with the +# root lockfile (tasks/scripts/check_cargo_lockfile_alignment.py), so dependency +# updates here still need to regenerate them until the suites are removed. [[freeze]] name = "desktop-drivers" message = "Driver changes now go to https://github.com/ai-openshell/desktop. See https://github.com/ai-openshell/openshell/issues/5200. Maintainers can skip this check with the tmp:migrate label." @@ -23,6 +26,10 @@ paths = [ "tasks/vm.toml", "tasks/scripts/vm", ".github/workflows/release-vm-kernel.yml", + "tests/suites/drivers/docker/Cargo.toml", + "tests/suites/drivers/docker/tests", + "tests/suites/drivers/podman/Cargo.toml", + "tests/suites/drivers/podman/tests", ] # The Python SDK moved to ai-openshell/sdk-python, which imported it at v0.1.7. diff --git a/CI.md b/CI.md index 8eaf6b1787..fd2c378250 100644 --- a/CI.md +++ b/CI.md @@ -672,8 +672,10 @@ operating-system CVEs remain the responsibility of the standalone scan. `Frozen Paths` (`.github/workflows/frozen-paths.yml`) fails a pull request that adds or modifies a file under the `desktop-drivers` paths in `.github/frozen-paths.toml`. Those -paths are the desktop compute drivers (Docker, Podman, VM) and their support -files, which are moving to `ai-openshell/desktop` with their git history +paths are the desktop compute drivers (Docker, Podman, VM), their support +files and the sources of the Docker and Podman driver suites +(`tests/suites/drivers/{docker,podman}`, without their lockfiles, which core keeps +aligned with the root lockfile), which are moving to `ai-openshell/desktop` with their git history ([ai-openshell/openshell#5200](https://github.com/ai-openshell/openshell/issues/5200)). Changes landing here after the import would be lost, so driver work goes to `ai-openshell/desktop` instead. diff --git a/tasks/scripts/check_frozen_paths_test.py b/tasks/scripts/check_frozen_paths_test.py index 698e20432c..6955e9bec5 100644 --- a/tasks/scripts/check_frozen_paths_test.py +++ b/tasks/scripts/check_frozen_paths_test.py @@ -36,6 +36,15 @@ def test_rename_out_passes_and_in_fails(): assert v(("crates/openshell-container-runtime/x.rs", "renamed")) +def test_driver_suite_sources_are_frozen_but_lockfiles_are_not(): + assert v(("tests/suites/drivers/podman/tests/userns.rs", "modified")) + assert v(("tests/suites/drivers/docker/tests/new.rs", "added")) + assert v(("tests/suites/drivers/podman/Cargo.toml", "modified")) + assert v(("tests/suites/drivers/docker/Cargo.lock", "modified")) == [] + assert v(("tests/suites/drivers/podman/Cargo.lock", "modified")) == [] + assert v(("tests/suites/drivers/kubernetes/tests/x.rs", "added")) == [] + + def test_outside_and_prefix_lookalikes_pass(): assert v(("crates/openshell-driver-docker-extra/lib.rs", "modified")) == [] assert v(("crates/openshell-core/src/lib.rs", "modified")) == []