Skip to content

test(computer): platform-native profile paths; sync app lockfile - #8726

Merged
senamakel merged 2 commits into
tinyhumansai:mainfrom
senamakel:fix/8712-followup
Nov 15, 2026
Merged

senamakel merged 2 commits into
tinyhumansai:mainfrom
senamakel:fix/8712-followup

Conversation

@senamakel

@senamakel senamakel commented Nov 14, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Follow-up to fix(modules): send the persistent browser profile to TinyComputer #8712, which merged before this commit reached its branch.
  • The persistent-profile tests in modules/computer_config_tests.rs now use a platform-native absolute path.
  • crates/openhuman-app/Cargo.lock is synced to the root lock for tinycomputer-bus, tinysecurity-bus and tinywallet-bus.

Problem

  • The tests built the profile from the literal /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.
  • The app lock still recorded tinycomputer-bus 0.16.0, tinysecurity-bus 0.21.0 and tinywallet-bus 0.30.0. The root lock and the vendored sources are on 0.17.0, 0.21.1 and 0.30.1. cargo tree --locked --manifest-path crates/openhuman-app/Cargo.toml (scripts/check-linux-tls-dependencies.sh) could fail as a result.

Solution

  • Both tests derive the path from 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.
  • Ran cargo update -p tinycomputer-bus --manifest-path crates/openhuman-app/Cargo.toml, which also caught up the two stale sibling entries.

Submission Checklist

  • Tests added or updated. This PR fixes the test fixture itself, so it adds no separate regression test. cargo test -p openhuman --lib modules::computer_config: 13/13 pass.
  • Diff coverage ≥ 80%: N/A, the only Rust change is in a test file and the rest is a lockfile.
  • Coverage matrix updated: N/A, behaviour-only change in tests.
  • All affected feature IDs listed: N/A, no feature rows affected.
  • No new external network dependencies introduced.
  • Manual smoke checklist: N/A, no release-cut surface touched.
  • Linked issue closed: N/A, follow-up to merged PR fix(modules): send the persistent browser profile to TinyComputer #8712 with no issue of its own.

Impact

  • Test and lockfile only, with no runtime change. Windows test runs of modules::computer_config pass.

Related


AI Authored PR Metadata (required for Codex/Linear PRs)

Linear Issue

  • Key: N/A
  • URL: N/A

Commit & Branch

  • Branch: fix/8712-followup
  • Commit SHA: 2394941

Validation Run

  • pnpm --filter openhuman-app format:check: N/A, no frontend change
  • pnpm typecheck: N/A, no TypeScript change
  • Focused tests: cargo test -p openhuman --lib modules::computer_config (13 passed)
  • Rust fmt/check (if changed): cargo fmt --all -- --check clean; cargo metadata --locked --manifest-path crates/openhuman-app/Cargo.toml passes
  • Tauri fmt/check (if changed): N/A

Validation Blocked

  • command: N/A
  • error: N/A
  • impact: N/A

Behavior Changes

  • Intended behavior change: none
  • User-visible effect: none

Parity Contract

  • Legacy behavior preserved: yes
  • Guard/fallback/dispatch parity checks: N/A

Duplicate / Superseded PR Handling

  • Duplicate PR(s): none
  • Canonical PR: this
  • Resolution (closed/superseded/updated): N/A

Summary by CodeRabbit

  • Tests
    • Updated configuration profile test setup to use temporary paths consistently, improving portability across environments.

…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)
Copilot AI balanced review requested due to automatic review settings November 14, 2026 20:18
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-14T20:20:29.523930Z 2394941 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Important

Review skipped

Review was skipped as selected files did not have any reviewable changes.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 9d3ebb56-83d5-4148-bc93-a470456fc5f2
Commits

Reviewing files that changed from the base of the PR and between 2394941 and cd9034c.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review

No actionable comments were generated in the recent review.

Walkthrough

The computer configuration tests now derive profile paths from a temporary directory. The persistent-profile case checks the path passed to the module. The fresh-profile case still expects no module profile.

Changes: Profile path tests

Layer / File(s) Summary
Temporary-directory profile cases
crates/openhuman-core/src/modules/computer_config_tests.rs
The persistent-profile test uses a temporary-directory path and checks that it is passed to the module. The fresh-profile test uses a temporary absolute path and still expects no module profile.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Other

Suggested reviewers: codeghost21, tinysweeper

Merge Risk: Minimal · previous review 23949

This change makes the profile path tests portable across platforms and does not alter production behavior. No merge-blocking risk is evident.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "test(computer): platform-native profile paths; sync app lockfile" matches the main change. The raw summary shows the persistent-profile and fresh-profile tests in computer_config_tests.rs n…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "test(computer): platform-native profile paths; sync app lockfile" matches the main change. The raw summary shows the persistent-profile and fresh-profile tests in computer_config_tests.rs now build paths from a temporary directory instead of a fixed Unix path. The title also names the app lockfile sync, which the PR objectives describe as aligning the tinycomputer-bus, tinysecurity-bus, and tinywallet-bus versions. The lockfile change is excluded from the file summary, but the objectives confirm it. The title is accurate, specific, and uses a conventional commit prefix. It is slightly long and joins two changes with a semicolon, but neither part is misleading.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

A rabbit checks the paths with care
Temp-dir trails replace fixed paths there
The persistent case passes its name
The fresh one sends no profile claim
Then hops away, tests green in air

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 0c5ac96a-f9bb-4d10-92d8-57ce24dccdcc
Commits

Reviewing files that changed from the base of the PR and between 7440c08 and 2394941.

Files ignored due to path filters: 1

  • crates/openhuman-app/Cargo.lock is excluded by !**/*.lock
Files selected for processing: 1

  • crates/openhuman-core/src/modules/computer_config_tests.rs

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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, and tinywallet-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

@senamakel senamakel self-assigned this Nov 14, 2026
@senamakel
senamakel merged commit eae632d into tinyhumansai:main Nov 15, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants