Skip to content

(via norrietaylor): fix(diag): check debugfs exit status in volume_fallback harvest - #890

Merged
macroscopeapp[bot] merged 1 commit into
feat/diag-unit7-guest-fetchfrom
macroscope/feat/diag-unit7-guest-fetch
Jul 22, 2026
Merged

(via norrietaylor): fix(diag): check debugfs exit status in volume_fallback harvest#890
macroscopeapp[bot] merged 1 commit into
feat/diag-unit7-guest-fetchfrom
macroscope/feat/diag-unit7-guest-fetch

Conversation

@macroscopeapp

@macroscopeapp macroscopeapp Bot commented Jul 22, 2026

Copy link
Copy Markdown

Summary

This PR fixes an issue in the volume_fallback harvest function where debugfs failures were being silently recorded as successes.

Problem

Previously, when the debugfs command completed (i.e., the process spawned and ran), the code only checked that the process execution succeeded—not whether debugfs itself reported an error via its exit status. This meant that partial or failed dumps would be recorded as successful harvests, hiding real issues from operators.

Solution

Added a check for out.status.success() in the Ok(Ok(out)) match arm before treating the harvest as successful. When debugfs exits with a nonzero status code, the function now:

  • Records a skip (rather than success)
  • Includes the exit code in the skip reason
  • Provides a stderr excerpt for debugging

This ensures that failed debugfs operations are properly surfaced in diagnostics rather than silently passing.

Note

Macroscope: Fix It For Me

Activity

Currently: Auto-merged 0bacb82

Previously

Note

Fix volume_fallback to record a skip when debugfs exits with a non-zero status

Previously, guest.rs only recorded a skip when debugfs ran successfully but harvested zero files. A non-zero exit code was silently ignored.

Now, the exit status is checked first: if debugfs fails, a skip is recorded with the exit code and the first line of stderr. The zero-harvest check only runs on a successful exit.

Macroscope summarized 880b580.

@coderabbitai

coderabbitai Bot commented Jul 22, 2026

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Free

Run ID: e6454d3e-e565-4520-83db-e389c5b53b90

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

Comment @coderabbitai help to get the list of available commands.

@macroscopeapp
macroscopeapp Bot merged commit 0bacb82 into feat/diag-unit7-guest-fetch Jul 22, 2026
2 checks passed
@macroscopeapp
macroscopeapp Bot deleted the macroscope/feat/diag-unit7-guest-fetch branch July 22, 2026 03:32
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