← Back to Pull requests

objectfs: persistent deployment with object storage backend, WAL, and PVC state #179

Closed
unknown closed this pull request without merging on Oct 06, 2026 13:16 UTC
View on GitHub
unknown unknown commented on Oct 05, 2026 14:51 UTC
Author

Configure objectfs-controller and wal-buffer for production persistent deployments:

  • Make --backend a required setting supplied via objectfs-config ConfigMap rather than defaulting to in-memory storage.

  • Support persistent local storage for SQLite metadata databases and WAL segments via --data-dir and --metadata-dir flags on objectfs-controller and WithServerMetadataDir in controller.Server.

  • Update k8s/objectfs.yaml and k8s/wal.yaml StatefulSets to use volumeClaimTemplates for persistent /data storage, wire objectfs-config ConfigMap, and route controller WAL mutations to the central wal-buffer with witness durability.

  • Add an installation and deployment guide in docs/install.md covering GCS with Workload Identity, S3-compatible backends, WAL durability levels, write synchronization modes, and restart verification.

  • Add TestObjectFSPersistentE2E in tests/e2e/objectfs_e2e_test.go verifying restart persistence: writes initial data to an ObjectFS volume with an S3 backend (fakes3) and wal-buffer, restarts objectfs-controller, verifies read-back data in a new pod, writes additional data, and restarts the controller a second time before reading back all state.

  • Add unit test TestServerMetadataDirPersistenceAcrossRestart in pkg/objectfs/controller.
  • Fixes #125

    Diff: 160 lines (+120 / -40) across 2 files Reviewer: justinsb Review duration: 1345m
    All Vouch review confidence checks passed
    Residual risk 0.23 = Change Risk (0.58) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.58 · 160 lines diff across 2 files
    0.58
    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.304
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.058
    Real PR Conversation Timeline
    1 comments
    "Review active on #179"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed sensitive_module
    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: 58% (MEDIUM) · Higher = larger blast radius
    58%
    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: 22.9% · Safe to merge
    22.9%