Repository navigation
Conversation
Replace unsafe test environment mutation with scoped temporary values and use safe Unix UID access for runtime path ownership. Make parsing, path preparation, and configuration tests compatible with the selected lint baseline while preserving existing wire formats and behaviour.
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
Comment |
Reviewer's GuideThis PR hardens Sequence diagram for isolated configuration precedence testssequenceDiagram
participant Test as ConfigurationTest
participant Env as ProcessEnvironment
participant Config as Config
participant Composer as MergeComposer
Test->>Env: set_var / remove_var
Test->>Config: load_from_iter
Config->>Composer: push_defaults
Config->>Composer: push_file
Config->>Composer: push_environment
Config->>Composer: push_cli
Composer-->>Config: merged configuration
Config-->>Test: OrthoResult<Config>
Test->>Env: restore scoped environment
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
This branch has not been deployed
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
This branch removes unsafe configuration-test environment mutation, uses safe effective-user ID access, and makes parsing and path preparation compatible with the selected Rust lint baseline. It follows module-structure PR #306 in the stack. Final lint enforcement remains in a later layer.
Review walkthrough
Validation
make check-fmt,make spelling,make lint,make typecheck,make test,make markdownlint,make nixie, andmake test-workflow-contracts. The full suite passed 1,585 tests with four skipped; 187 workflow contracts passed.weaver-configpassed Clippy across all targets and features, strict docsrs rustdoc, and Whitaker. The configuration-precedence test also passed with externalWEAVER_*variables set.Notes
The full-workspace temporary-policy Clippy probe still reports five
std::envmethod violations: four inweaver-sandboxand one inweaver-build-util. Five dependent packages were not reached, so this is a lower-bound measurement, not a clean estate verdict. Full-workspace strict rustdoc and Whitaker passed. Sandbox and build-util fixes remain assigned to later source waves.The ancestor stack's hosted CI is blocked at Whitaker installation on Ubuntu 22.04; this PR's current-head CI result will be reported separately when terminal.
References
Summary by Sourcery
Harden weaver-config environment boundaries, Unix identity handling, and lint-compatible parsing and path preparation.
Bug Fixes:
Enhancements:
Build:
Documentation:
Tests: