Repository navigation
test(computer): platform-native profile paths; sync app lockfile - #8726
Merged
Merged
Conversation
…ests The persistent-profile tests hardcoded a Unix-rooted path, which is relative on Windows and made the assertions platform-dependent. The paths are now built from the temp directory so they are absolute everywhere, and the dependency lockfile picks up the corresponding bus crate version bumps. Auto-committed-on: cuttlefish Co-authored-by: Medulla <medulla@tinyhumans.ai> (cherry picked from commit 3f3afa0)
Codex Review Summary: ✅ CompletedThis 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. |
Contributor
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are recorded for the Windows-portable test fixtures and lockfile synchronization changes.
No open issues 🎉
What changed in this PR
Follow-up to #8712 that makes browser-profile test fixtures portable to Windows and aligns the desktop app’s lockfile with the root lockfile. No runtime code changes are included.
Changes:
- Derive profile paths from temporary directories so persistent- and fresh-mode tests use platform-native absolute paths.
- Update the app lockfile entries for
tinycomputer-bus,tinysecurity-bus, andtinywallet-bus.
| File | Description |
|---|---|
crates/openhuman-core/src/modules/computer_config_tests.rs |
Replace Unix-only profile fixtures with platform-native paths. |
crates/openhuman-app/Cargo.lock |
Synchronize three bus-crate versions with the root lockfile. |
Review effort: Balanced
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
modules/computer_config_tests.rsnow use a platform-native absolute path.crates/openhuman-app/Cargo.lockis synced to the root lock for tinycomputer-bus, tinysecurity-bus and tinywallet-bus.Problem
/srv/teeny/state/browser/profile. On Windows that path has no drive or UNC prefix, so it is not absolute.persistent_profile()drops it, and the positive test fails. Copilot, Codex and CodeRabbit all raised this on fix(modules): send the persistent browser profile to TinyComputer #8712.cargo tree --locked --manifest-path crates/openhuman-app/Cargo.toml(scripts/check-linux-tls-dependencies.sh) could fail as a result.Solution
dir.path().join("profile")for the configured value and the expected JSON. The fresh-mode case uses the same absolute path, so it still tests the mode rather than path validity.cargo update -p tinycomputer-bus --manifest-path crates/openhuman-app/Cargo.toml, which also caught up the two stale sibling entries.Submission Checklist
cargo test -p openhuman --lib modules::computer_config: 13/13 pass.Impact
modules::computer_configpass.Related
AI Authored PR Metadata (required for Codex/Linear PRs)
Linear Issue
Commit & Branch
Validation Run
pnpm --filter openhuman-app format:check: N/A, no frontend changepnpm typecheck: N/A, no TypeScript changecargo test -p openhuman --lib modules::computer_config(13 passed)cargo fmt --all -- --checkclean;cargo metadata --locked --manifest-path crates/openhuman-app/Cargo.tomlpassesValidation Blocked
command:N/Aerror:N/Aimpact:N/ABehavior Changes
Parity Contract
Duplicate / Superseded PR Handling
Summary by CodeRabbit