← Back to Pull requests

Unmount guest rootfs components when deleting tasks #313

Closed
unknown closed this pull request without merging on Oct 24, 2026 07:17 UTC
View on GitHub
unknown unknown commented on Oct 16, 2026 13:21 UTC
Author

Task deletion unmounts <bundle>/rootfs, but mountutil.All also mounts the rootfs components under the sibling <bundle>/mounts/<index> paths. Those backing mounts survive deletion. For a writable block filesystem, stopping the VM can consequently leave the filesystem requiring journal recovery.

Unmount the component tree after unmounting the overlay root. Log and return component cleanup failures, preserving any earlier deletion error. Containers without component mounts keep the existing no-op behavior.

The commits deliberately separate the reproducer from the fix:
1. Add TestInitDeleteUnmountsRootfsComponents and a privileged Linux CI step. The test uses production mount setup and deletion, two real tmpfs component mounts and an overlay root, in an isolated mount namespace. Only the OCI runtime delete command is stubbed. On the first commit it fails because both component mounts remain present in the mount table.
2. Add the missing component cleanup. The same test passes.

The privileged CI step compiles as the normal runner user and elevates only the test executable. It requires the mount test to run rather than accepting a permissions-related skip.

Validation:

  • Executed the regression inside a Linux/arm64 VM: fails on the test-only commit and passes with the fix, without sleeps or journal-timing assumptions.

  • Complete guest lifecycle experiment: twelve stop/commit cases pass with the writable ext4 recovery flag cleared; six derived images retain their marker files.

  • Focused Linux lint passes; Linux/amd64 test binary cross-compiles.
  • Diff: 196 lines (+147 / -49) across 2 files Reviewer: dmcgowan Review duration: 11156m
    All Vouch review confidence checks passed
    Residual risk 0.14 = Change Risk (0.36) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.36 · 196 lines diff across 2 files
    0.36
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.316
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #313"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 36.1% (MEDIUM) · Higher = larger blast radius
    36.1%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 14.2% · Safe to merge
    14.2%