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..f4843ea973 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. @@ -694,6 +696,16 @@ To bypass the check for a porting or removal pull request, a maintainer applies the `tmp:migrate` label; the check re-runs and passes. Run it locally with `python3 tasks/scripts/check_frozen_paths.py --base origin/main`. +The `merge_group` run does not inspect files; it passes because the check ran on +the pull request. A pull request that passed before a path was added to a freeze +therefore keeps that result, and updating its branch does not replace it. When a +change to `.github/frozen-paths.toml` adds paths, keep each still-open pull +request that touches them out of the merge queue until the new list is on +`main`. Then trigger a fresh run on that pull request by applying and removing +any label (the workflow runs on `labeled` and `unlabeled`), and confirm that the +check fails on the frozen files, or passes only with `tmp:migrate`, before +queueing it. + ## Commit signing Org members and collaborators sign their commits cryptographically. 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")) == []