close: pure path fallback tests
This commit is contained in:
parent
7851fc0aac
commit
813ff7e199
|
|
@ -2,12 +2,12 @@
|
|||
id: 20260531-104614-pure-path-fallback-tests
|
||||
slug: pure-path-fallback-tests
|
||||
title: Tests: make path fallback tests independent from process env
|
||||
status: open
|
||||
status: closed
|
||||
kind: task
|
||||
priority: P2
|
||||
labels: [test, env, manifest, cleanup]
|
||||
created_at: 2026-05-31T10:46:14Z
|
||||
updated_at: 2026-05-31T10:54:18Z
|
||||
updated_at: 2026-05-31T10:54:49Z
|
||||
assignee: null
|
||||
legacy_ticket: null
|
||||
---
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
Made `manifest::paths` fallback tests independent from process-global environment mutation.
|
||||
|
||||
Implementation:
|
||||
- Added narrow private per-key fallback helpers for config/data/runtime path resolution.
|
||||
- Public path functions still read the same env vars and pass them in the same precedence order.
|
||||
- Empty path env values still resolve as unset.
|
||||
- Fallback-order tests now pass direct `Option<PathBuf>` inputs instead of using `std::env::set_var` / `remove_var`.
|
||||
- No `PathEnv`, `EnvSnapshot`, env trait, test-support crate, or new env var surface was introduced.
|
||||
- Credential env behavior and Pod runtime/process behavior were not changed.
|
||||
|
||||
Review:
|
||||
- External reviewer `pure-path-fallback-reviewer-20260531` approved implementation commit `e232f54`.
|
||||
|
||||
Validation after merge:
|
||||
- `cargo fmt --check`
|
||||
- `cargo test -p manifest paths`
|
||||
- `cargo test -p manifest`
|
||||
- `cargo check -p manifest` (passed with unrelated existing `llm-worker` dead_code warning)
|
||||
- `./tickets.sh doctor`
|
||||
- `git diff --check`
|
||||
- `git grep -n -E 'set_var\(|remove_var\(' -- crates/manifest/src/paths.rs || true` produced no matches.
|
||||
|
|
@ -99,4 +99,33 @@ Validation adequacy:
|
|||
- Reviewer performed read-only diff/source/docs consistency review and grep/diff-check spot checks; no additional Cargo tests were rerun by reviewer.
|
||||
|
||||
|
||||
---
|
||||
|
||||
<!-- event: close author: hare at: 2026-05-31T10:54:49Z status: closed -->
|
||||
|
||||
## Closed
|
||||
|
||||
Made `manifest::paths` fallback tests independent from process-global environment mutation.
|
||||
|
||||
Implementation:
|
||||
- Added narrow private per-key fallback helpers for config/data/runtime path resolution.
|
||||
- Public path functions still read the same env vars and pass them in the same precedence order.
|
||||
- Empty path env values still resolve as unset.
|
||||
- Fallback-order tests now pass direct `Option<PathBuf>` inputs instead of using `std::env::set_var` / `remove_var`.
|
||||
- No `PathEnv`, `EnvSnapshot`, env trait, test-support crate, or new env var surface was introduced.
|
||||
- Credential env behavior and Pod runtime/process behavior were not changed.
|
||||
|
||||
Review:
|
||||
- External reviewer `pure-path-fallback-reviewer-20260531` approved implementation commit `e232f54`.
|
||||
|
||||
Validation after merge:
|
||||
- `cargo fmt --check`
|
||||
- `cargo test -p manifest paths`
|
||||
- `cargo test -p manifest`
|
||||
- `cargo check -p manifest` (passed with unrelated existing `llm-worker` dead_code warning)
|
||||
- `./tickets.sh doctor`
|
||||
- `git diff --check`
|
||||
- `git grep -n -E 'set_var\(|remove_var\(' -- crates/manifest/src/paths.rs || true` produced no matches.
|
||||
|
||||
|
||||
---
|
||||
Loading…
Reference in New Issue
Block a user