Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .github/frozen-paths.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand All @@ -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",
Comment thread
gator-review-bot[bot] marked this conversation as resolved.
Resolved
"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.
Expand Down
16 changes: 14 additions & 2 deletions CI.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
Expand Down
9 changes: 9 additions & 0 deletions tasks/scripts/check_frozen_paths_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")) == []
Expand Down
Loading