Skip to content

[Graphite MQ] Draft PR GROUP:batch_0ee745 (PRs 609, 619)#626

Closed
graphite-app[bot] wants to merge 2 commits into
mainfrom
gtmq_batch_0ee745_1781990277193-07f8dac8-7616-4b85-b270-e9cd34498e5c
Closed

[Graphite MQ] Draft PR GROUP:batch_0ee745 (PRs 609, 619)#626
graphite-app[bot] wants to merge 2 commits into
mainfrom
gtmq_batch_0ee745_1781990277193-07f8dac8-7616-4b85-b270-e9cd34498e5c

Conversation

@graphite-app

@graphite-app graphite-app Bot commented Jun 20, 2026

Copy link
Copy Markdown

This draft PR was created by the Graphite merge queue.
Trunk will be fast forwarded to the HEAD of this PR when CI passes, and the original PRs will be closed.

The following PRs are included in this draft PR:

…ly symbols and test fixtures on macOS (SEA-634/SEA-714)` (#609)

# Pull request

## Summary

Silences macOS clippy and dead-code warnings that surfaced when Linux-only sandbox bridge symbols (`netbridge_in_sandbox_path`, `XDG_DBUS_PROXY_BINARY`, `resolve_xdg_dbus_proxy_binary`, D-Bus address resolution helpers, `ProxyHandle::new`, `DbusProxyHandle::new`, `spawn_dbus_proxy`) are compiled on macOS without a corresponding call site. Also suppresses `clippy::disallowed_methods` in test fixtures where `std::env::var`, `std::fs::write`, and `tokio::time::sleep` are intentionally used outside the normal `seal_utils::io` routing, and adds a crate-level `dead_code` allow on `tui_memory_plateau` for the macOS-without-dhat-heap configuration where none of the test bodies are compiled.

## Related issues

Refs SEA-634, SEA-714

## Changes

- Added `#[cfg_attr(not(target_os = "linux"), allow(dead_code, reason = "…"))]` to all Linux-only sandbox bridge symbols in `sandbox_spawn/mod.rs` so macOS builds stay warning-free without removing the code.
- Added targeted `#[allow(clippy::disallowed_methods, reason = "…")]` blocks in `sandbox_exec_integration.rs` and `dev_server_ports.rs` test fixtures for `std::env::var_os`, `std::fs::write`, `std::thread::sleep`, and `tokio::time::sleep` usages that are intentional and appropriately scoped to test infrastructure.
- Switched profile-reading in `macos.rs` tests from `std::fs::read_to_string` to `seal_utils::io::read` + `String::from_utf8` for consistency with the project's I/O conventions.
- Added `#![cfg_attr(not(any(target_os = "linux", feature = "dhat-heap")), allow(dead_code))]` to `tui_memory_plateau.rs` to keep the macOS clippy gate green when neither RSS nor heap-profile tests are compiled in.
- Fixed a trivial unnecessary-borrow lint by passing `script` directly instead of `&script` in `home_dir_is_not_visible_in_system_mode`.

## Test plan

- `just ci` passes on both Linux and macOS with no new warnings.
- All existing sandbox integration tests and TUI memory plateau tests continue to pass unchanged.
<!--
Thanks for opening a PR! A few things before submitting:

  1. Read CONTRIBUTING.md if this is your first PR (CLA + dev setup).
  2. Use Conventional Commits for the PR title:
     `feat(scope): subject` / `fix(scope): subject` / `chore(scope): subject`.
  3. Run `just ci` locally — it mirrors what CI runs.

Delete sections that don't apply.
-->

# Pull request

## Summary

<!-- One or two sentences: what does this PR do and why? -->

## Related issues

<!-- Closes #NNN — auto-closes the GitHub issue on merge. -->
<!-- Or: "Refs #NNN" if the PR partially addresses an issue. -->

## Changes

<!-- Bullet list of the meaningful changes. Skip if Summary already covers it. -->

-
-

## Test plan

<!--
How did you verify this works? At minimum:
  - Which new tests cover the change?
  - Which existing tests did you run? (`just ci` is the baseline)
  - If UI-touching: a screenshot or screen recording of the new behavior.
  - If sandbox-touching: confirm `just ci-live-deps` passes too (it auto-runs
    when LLM-layer paths are touched).
-->

-

## Screenshots

<!-- For TUI / CLI output changes. Skip otherwise. -->

## Notes for reviewers

<!-- Anything reviewers should pay particular attention to —
     unusual approach, intentional scope cuts, follow-ups planned. -->
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.

1 participant