You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Review fixes on top of the RFC 0007/0008 CLI commit:
- Exceptions raised out of session actions (the RFC 0008 "at most one
wrap environment" RuntimeError, expression ValueErrors) now surface
as a clean error-status result instead of a raw traceback: guarded in
run_environment_enters (routed through LocalSessionFailed) with a
belt-and-suspenders catch in _run_local_session.
- The enter-failure rollback only drops the environment from the CLI's
entered list when the session did not register it — a post-
registration raise (e.g. a failing `variables` expression) keeps the
env tracked so cleanup exits it in LIFO order instead of masking the
original error with "Must exit Environment X first".
- Thread step_name into Session.enter_environment for step-environment
enters so Step.Name (RFC 0007 §7.3.1) resolves in step-level `let`
bindings and step-env actions — Rust CLI parity (openjd-rs
run/mod.rs threads the step's resolved symtab). Capability-gated on
the installed openjd-sessions accepting the kwarg.
- run_step's redundant pass-kwarg-only-when-truthy branch collapsed
(the compat guard lives in EnterEnvironmentAction.run); version-skew
getattr documented with its removal condition.
Tests: 294 passed under plain hatch and against the editable fixed
model/sessions trees (new: Step.Name end-to-end template, step_name
propagation, post-registration rollback, clean-error-result).
ruff/black/mypy clean.
Signed-off-by: David Leong <116610336+leongdl@users.noreply.github.com>
0 commit comments