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",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gator-agent

Warning · GATOR-6552f27e-01

Summary
When a maintainer queues an already-open PR that edits either suite, its passing Frozen Paths result can predate the freeze. Updating the base branch alone leaves that result in place, and the merge-group job reports success without inspecting the paths. Suite edits can land in core without a migration exception and be lost when core removes the suites.

Fix
Document the rollout in CI.md. Keep affected PRs out of the queue until the new list is on main, then trigger a fresh Frozen Paths run with a label event on each still-open affected PR and verify the result before queueing it.

Verify
Start with a suite-changing PR that passed Frozen Paths before rollout. After the new list lands on main, confirm the prior result remains on the unchanged head, then trigger a fresh check and confirm that it rejects the frozen changes when the migration exception is absent.

Agent context

.github/frozen-paths.toml:30. Both suite manifests and test directories are affected. The workflow loads the path list from the default branch on pull_request_target and takes its success-only path on merge_group. The expanded list makes an earlier passing result stale for the newly frozen paths.

"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
6 changes: 4 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 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