{"record":{"id":"c13127011be771e0","repo":"xai-org/grok-build","slug":"nfs-worktree-create-still-in-progress-phase-phas","errorCode":null,"errorMessage":"nfs worktree create still in progress (phase={phase}); not falling back to copy","messagePattern":"nfs worktree create still in progress \\(phase=(.+?)\\); not falling back to copy","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"crates/codegen/xai-fast-worktree/src/nfs/mod.rs","lineNumber":203,"sourceCode":"                grove[\"backing\"] = serde_json::Value::String(b);\n            }\n            let metadata = serde_json::json!({ \"grove\": grove });\n            Ok(Some(CreateWorktreeResult {\n                worktree_path: adopted.dest,\n                commit,\n                copy_stats: CopyStats::default(),\n                ignored_stats: None,\n                dirty_files_report: None,\n                resolved_strategy: grove_resolved_strategy(&adopted.transport),\n                strategy_metadata: Some(metadata),\n            }))\n        }\n        Ok(NfsCreateDecision::Fallback) => Ok(None),\n        Err(NfsTryError::StorageFull) => {\n            let err = std::io::Error::from(std::io::ErrorKind::StorageFull);\n            Err(anyhow::Error::new(err).context(OUT_OF_DISK_CONTEXT))\n        }\n        Err(NfsTryError::InFlight { phase }) => Err(anyhow::anyhow!(\n            \"nfs worktree create still in progress (phase={phase}); not falling back to copy\"\n        )),\n        Err(NfsTryError::IdentityConflict(msg)) => {\n            Err(anyhow::anyhow!(\"{msg}; not falling back to copy\"))\n        }\n        Err(NfsTryError::Other(e)) => Err(e).context(\"nfs worktree create failed\"),\n    }\n}\n/// Adopt succeeded but dest HEAD is unreadable. Tear the mount down so dest\n/// is not left projected with no worktrees.db row. Copy-fallback only when\n/// dest is known unmounted.\nfn teardown_after_failed_head_read(\n    client: &NfsWorktreeClient,\n    dest: &Path,\n    head_err: anyhow::Error,\n) -> Result<Option<CreateWorktreeResult>> {\n    if let Err(rm) = client.remove_worktree(dest, true) {\n        tracing::warn!(","sourceCodeStart":185,"sourceCodeEnd":221,"githubUrl":"https://github.com/xai-org/grok-build/blob/bc7f02eddd3d84085849dc19ed216f11c23b0571/crates/codegen/xai-fast-worktree/src/nfs/mod.rs#L185-L221","documentation":"Error \"nfs worktree create still in progress (phase={phase}); not falling back to copy\" thrown in xai-org/grok-build.","triggerScenarios":"Thrown at crates/codegen/xai-fast-worktree/src/nfs/mod.rs:203 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"bc7f02eddd3d84085849dc19ed216f11c23b0571","analyzedAt":"2026-08-31T04:59:42.031Z","schemaVersion":2},"datasetVersion":"2026-08-31T09:17:48.483Z"}