Repository navigation
Delete legacy Python sandbox node daemon; make standalone Rust ucloud-noded the sole worker daemon (Wave C3) - #71
Merged
Merged
Conversation
…fecycle edge cases
Retire sandbox.direct_node_standalone_rust as true-only, make standalone Rust ucloud-noded (--standalone-config) the sole sandbox worker daemon in vm_init.py, remove serve-direct-node-agent from cli.py, and delete the 23 legacy Python sandbox node-daemon modules (-20.4k net source lines) along with their Python-only unit/parity tests (-18.1k net test lines). Keep sandboxes/memory_filesystem.py (invoked during VM bootstrap) with XfsMemoryQuota.validate_root inlined. Update docs and lower tests/test_rules_baseline.json.
…ind race 1. Remove the stale tests/test_relay_network_linux.py step from .github/workflows/test.yml (that test exercised the deleted Python DirectNetworkManager). 2. In tests/harness/fleet.py, bind _ObserverProxyServer on port 0 before spawning ucloud-noded so the kernel assigns and holds the port atomically instead of closing a _free_port() probe socket first, and retry ucloud-noded startup on ephemeral bind collision under parallel test runs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Completes the migration to standalone Rust
ucloud-noded(--standalone-config) as the sole sandbox worker daemon and removes the legacy Python sandbox node daemon (152 files changed, +1,978 / -40,943 — net -38,965 lines):sandboxes/(+304 / -20,711, net -20,407 lines):sandbox.direct_node_standalone_rustas true-only insandboxes/config.py(omitted ortrueaccepted for existing deployment configs;falserejected).sandboxes/vm_init.pysorole == "sandbox"always renders standalone Rustucloud-noded --standalone-configand disables any legacyucloud-sandbox-node.service(builder nodes continue usingsandboxes/builder_agent.py).serve-direct-node-agentfromsandboxes/cli.py.node_agent.py,direct_service.py,direct_warden.py,direct_provisioner.py,direct_registry.py,direct_network.py,direct_oci.py,direct_runtime.py,memory_backing.py,pause_tier.py,pause_handoff.py,create_handoff.py,admission_backend.py,admission_decision.py,transition_admission.py,noded_client.py,node_commit.py,resident_memory.py,environment_rootfs.py,disk_claims.py,sandbox_exec.py,exec_fence.py,phase_timings.py), keepingsandboxes/memory_filesystem.py(still invoked on VM bootstrap) withXfsMemoryQuota.validate_rootinlined.runtime/noded/(+758 / -1,233, net -475 lines):reconcile_startup) before HTTP serve and heartbeat pushing (settles deleting, expired TTL, incomplete create phases, dead-sentry quarantine, and interrupted park/wake journals).LocalFleet:journal.rs:rollback_restorenow restores"authority": "parked"instead of"artifact"and spells"recovery-required"with a hyphen.oci.rs: added missing"toolkits"toSPEC_FIELDSso toolkit sandboxes are accepted.node_pipeline.rs: fixeddelete_sandboxdisk claim sizing for non-split parkable volumes; wired startup registration replay.node_lifecycle.rs,control_front.rs,heartbeat.rs: read overlaylowerdiron wake, persist/expose parkedmanaged_processsnapshots, enforce pause/thaw/lock checks incommit_export, and reportactive_sandbox_creates.exec_front.rs,files_front.rs: handle unknown sessions/sandboxes, dead-sentry quarantine, drain-closed (503 node_admission_closed), and memory-floor deferral (503 node_active_exec_deferred) directly in standalone mode.exec_fence_python.rs,registry_python_compat.rs,resident_python_parity.rs).Cargo.lockuntouched.tests/&docs/(+888 / -18,941, net -18,053 lines):LocalFleet(tests/harness/) from the Python node agent to real standalone Rustucloud-noded, passing all 17LocalFleetscenario suites.tests/test_rules_baseline.json(148 baseline violations removed).AGENTS.md,docs/architecture.md,docs/operations.md, anddocs/roadmap.md.Verification
scripts/check.sh(with PostgreSQL): PASSED —ruff,check_test_rules.py, all 201 Python test modules (including PostgreSQL and all 17LocalFleetsuites running real standalone Rustucloud-noded), all Rustucloud-nodedtests (0 warnings), wheel build/verification, and all 133 SDK tests.bash runtime/noded/build_pinned.sh: PASSED — static musl release binary built cleanly with pinned toolchain and passed linkage/symbol checks.