{"record":{"id":"7ae8fe2abc364aa8","repo":"xai-org/grok-build","slug":"deduplicated-identical-gcs-path-already-in-flight","errorCode":null,"errorMessage":"deduplicated: identical gcs_path already in flight","messagePattern":"deduplicated: identical gcs_path already in flight","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/codegen/xai-file-utils/src/queue.rs","lineNumber":1090,"sourceCode":"    /// (only when `compress = true` and file >= 128 bytes). On budget-gate\n    /// fallback the upload goes inline uncompressed regardless of `compress`.\n    pub async fn enqueue_file_blocking(\n        &self,\n        source_path: &Path,\n        gcs_path: &str,\n        content_type: &str,\n        artifact_name: &str,\n        session_id: &str,\n        turn_number: u64,\n        compress: bool,\n    ) -> anyhow::Result<EnqueueResult> {\n        let source_size = file_size(source_path);\n        let in_flight = if is_content_addressed(gcs_path) {\n            match self.mark_in_flight(gcs_path) {\n                Some(guard) => Some(guard),\n                None => {\n                    let (tx, rx) = oneshot::channel();\n                    let _ = tx.send(Err(anyhow::anyhow!(\n                        \"deduplicated: identical gcs_path already in flight\"\n                    )));\n                    return Ok(EnqueueResult {\n                        completion_rx: rx,\n                        original_size: source_size,\n                    });\n                }\n            }\n        } else {\n            None\n        };\n        if self.over_disk_budget(source_size) {\n            self.stats.enqueue_fallbacks.fetch_add(1, Ordering::Relaxed);\n            let (tx, rx) = oneshot::channel();\n            self.spawn_inline_upload_blocking(\n                source_path.to_path_buf(),\n                gcs_path.to_string(),\n                content_type.to_string(),","sourceCodeStart":1072,"sourceCodeEnd":1108,"githubUrl":"https://github.com/xai-org/grok-build/blob/bc7f02eddd3d84085849dc19ed216f11c23b0571/crates/codegen/xai-file-utils/src/queue.rs#L1072-L1108","documentation":"Error \"deduplicated: identical gcs_path already in flight\" thrown in xai-org/grok-build.","triggerScenarios":"Thrown at crates/codegen/xai-file-utils/src/queue.rs:1090 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"}