Repository navigation
fix(lifecycle): harden cross-OS state transitions, path normalization, and canonical CLI QA - #123
Conversation
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Rebased cleanly onto latest main (d6686fc), preserving engine::down() and runtime_stop checkpoint/hanzod coordination, and verified commands::lifecycle tests pass. |
0c1e2e3 to
5ee256d
Compare
|
Thanks for rebasing onto
|
5ee256d to
1374587
Compare
|
Thanks @zeekay for catching both host-safety issues! Resolved in
Verified on Linux (WSL2): |
9540787 to
4d0ef6a
Compare
…, and canonical CLI QA Signed-off-by: Trần Hoàng Tú <[email protected]>
…nonical QA hermetic
4d0ef6a to
b948fdb
Compare
|
Thanks @tranhoangtu-it for making |
Summary
Closes #112
/claim #112
src/commands/lifecycle/project.rs,src/commands/lifecycle/mod.rs): Addnormalize_project_dir()(canonicalizing paths and stripping Windows\\?\/\\?\UNC\verbatim prefixes) and use it indetect_project,resolve_registered_app(matching both incomingcwdand persistedproject_dir),env_up, andenv_down.down --all-workloadsandstop(src/commands/lifecycle/mod.rs): Clearstate.platform.engine_enabledand runengine::down().awaitalongside app cleanup whenhanzo down --all-workloadsexecutes (keepingk3s/VM warm), and callengine::down().awaitinsideruntime_stop().ps/statusreporting (src/commands/lifecycle/status.rs): Extract sharedapp_ps_row()sops,build_local_ps_rows, andbuild_local_ps_rows_with_hanzodusenode_portvscontainer_portconsistently and do not mark stopped host-process apps (image: Nonewith dead or absentlocal_pid) as"Running"simply becausek3sis active.tests/canonical_lifecycle_qa.rs): Verifystart,up,restart,down,stop,resetCLI help/command surfaces,ps --json,status --local,doctor --offline,down --all-workloadswarm-cache preservation vs Unixresetteardown, plus unit tests inproject.rsandstatus.rs. Keeps zero file overlap with open PRs#121and#122.Canonical CLI Command Timings (WSL2 Ubuntu Linux,
target/debug/hanzo)hanzo start --helphanzo up --helphanzo restart --helphanzo down --helphanzo stop --helphanzo reset --helphanzo ps --jsonStopped, container app port=31222hanzo status --local0hanzo doctor --offline0hanzo down --all-workloadscloud_enabled,engine_enabled,desired_running; preservedwarm-cache.sentinelhanzo stophanzo resetHANZO_LIFECYCLE_DIRand~/.hanzo/upVerification (WSL2 Linux x86_64)
rustfmt --edition 2021 --check tests/canonical_lifecycle_qa.rs(0 diff; new additions inlifecycle/{project,mod,status}.rsalso clean)cargo clippy --locked --all-targets -- -D warnings(passed, 0 warnings)cargo test --locked --bin hanzo(529 passed; 0 failed; 0 ignored)cargo test --locked --test canonical_lifecycle_qa -- --nocapture(1 passed; 0 failed)origin/main, Windowscargo testhits a pre-existingE0282type-inference error onlet mut shape = None;atsrc/commands/up/diagnose.rs:142; left untouched on this branch to avoid overlapping open PR#121.