Repository navigation
Functional-core gateway refactors & standalone Rust ucloud-noded - #70
Merged
Merged
Conversation
… max-complexity to 33
…ControlPlaneHandler
…s out of ControlPlaneHandler
…cloud-noded (Wave B2)
…and image routes to ucloud-noded (Wave B3)
…artbeat pusher to ucloud-noded (Wave B6)
…conciler (Wave B2/B4)
…nd skip zero-quota memory teardown
…estore before restore, and roll back failed restores
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
Gateway / shared-state functional-core & imperative-shell refactors
SandboxProxy,ImageBuilds,SandboxMigrations, and pure lifecycle/ranking/transition helpers out ofControlPlaneHandlerandvm_init.py(with unit/decision tests and reduced test-rule violations).direct_ram_memory_backingdefaulttrue, removeddirect_reflink_memory_restore) and addedregistry_disk_guard_enabledfor shared drives.Full standalone Rust
ucloud-noded(--standalone-config)runtime/noded(zero new Cargo crates,--locked):/environment(files_front.rs,upload_archive.rs,environment.rs)control_front.rs,node_pipeline.rs)/v1/imagesroutes (ed25519.rs,registry_client.rs,images_front.rs)journal.rs,warden.rs,node_lifecycle.rs,lifecycle_front.rs,commit_export.rs,storage.rs)storage-nativeruntime metrics,/healthz,/v1/heartbeat,/v1/drain, heartbeat pusher, and boot-time/TTL orphan reconciler (runtime_metrics.rs,heartbeat.rs,standalone.rs)sandboxes/builder_agent.py(zerodirect_*imports).sandbox.direct_node_standalone_rust(defaultsfalse;sandboxes/standalone_noded_config.py,sandboxes/vm_init.py,sandboxes/config.py).Line Count / Follow-up (Wave C3)
sandbox.direct_node_standalone_rustdefaults off for safe rollout and rollback.trueand delete ~16.7k lines of legacy Python node-daemon code (direct_service.py,direct_warden.py,direct_provisioner.py,direct_registry.py,direct_network.py,hibernation.py,heartbeat_sender.py,transition_admission.py,memory_backing.py,pause_tier.py, and the direct worker path innode_agent.py) plus their Python-only tests.Verification
bash scripts/check.sh(with local PostgreSQL 17 and SDK checkout,UCLOUD_CHECK_ALLOW_MISSING_SHELLCHECK=1):ruff check&scripts/check_test_rules.py: passeducloud-nodedsuite: 401/401 tests passed (plus static muslruntime/noded/build_pinned.shbuild verified)133/133tests): passedsandbox.direct_node_standalone_rust = true(zeroucloud-sandbox-node.service, ~8.9 MB RSSucloud-noded): verified create (parkable 288 ms, ephemeral 264 ms),/environment, streaming/exec, filePUT/GET, archive upload,park(224 ms) ->wake(353 ms) with persisted state,delete, livestorage-nativeheartbeat metrics, andPOST /v1/drain+ autoscaler scale-down to zero.