Conversation
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughThis PR delivers two major adoption slices for ZigOS integration in ZAR: a hosted benchmark suite with CLI entry point and CI smoke-gate validation, and a read-only virtual filesystem overlay for Changes
Sequence Diagram(s)sequenceDiagram
participant Client as filesystem.zig<br/>Operation
participant VFS as virtual_fs.zig<br/>Dispatcher
participant RB as runtime_bridge<br/>(snapshots/sessions)
participant SB as storage_backend<br/>(state)
participant DO as display_output<br/>(outputs/modes)
participant PN as pal.net<br/>(routes)
Client->>VFS: readFileAlloc("/proc/runtime/snapshot")?
alt Virtual Path Recognized
VFS->>VFS: renderFileAlloc()
VFS->>RB: Fetch runtime snapshot
RB-->>VFS: Serialized state
VFS-->>Client: File content
else Dispatch to Backend
VFS->>SB: Query storage state for "/sys/storage/state"
SB-->>VFS: Backend identifier + state JSON
VFS-->>Client: File content
end
Client->>VFS: listDirectoryAlloc("/proc/runtime/sessions")?
VFS->>VFS: isDirectoryPath()?
alt Directory Exists
VFS->>RB: Enumerate sessions
RB-->>VFS: Session IDs
VFS->>VFS: Format "dir session-<id>" entries
VFS-->>Client: Directory listing
else Not Found
VFS-->>Client: FileNotFound error
end
Client->>VFS: statSummary("/sys/display/outputs/0/detail")?
VFS->>DO: Fetch output detail
DO-->>VFS: Rendered detail string
VFS->>VFS: Compute checksum over buffer
VFS-->>Client: SimpleStat{kind, size, checksum}
Possibly related issues
Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment Tip CodeRabbit can use TruffleHog to scan for secrets in your code with verification capabilities.Add a TruffleHog config file (e.g. trufflehog-config.yml, trufflehog.yml) to your project to customize detectors and scanning behavior. The tool runs only when a config file is present. |
Summary by CodeRabbit
New Features
/procand/sysvirtual filesystem overlays exposing runtime and storage state.zig build benchcommand for executing benchmarks with customizable parameters.Chores