Stop generating accepted-line fingerprints (#38473)

## What changed

- Replace accepted-line fingerprint generation with diff-based added and deleted line counts.
- Keep `line_fingerprints` in the analytics payload as a statically empty field for schema compatibility.
- Remove the fingerprint types and public parsing API that are no longer used.

## Testing

- Update diff parsing tests to cover accepted-line counts without generating fingerprints.

GitOrigin-RevId: 4247c76c7b56b1a323f70f960823937352b84f7b
This commit is contained in:
Tamir Duberstein authored and copyberry committed 2026-08-14 01:44:33 +00:00
1 parent d5e256ceb2
commit 5c6f498b0e
7 files changed
+29 -106

No files matched your search

+3 -2
View File
@@ -1,6 +1,5 @@
use std::time::Instant;
use crate::facts::AcceptedLineFingerprint;
use crate::facts::AppInvocation;
use crate::facts::ArtifactOperation;
use crate::facts::ArtifactOperationLifecycle;
@@ -179,7 +178,9 @@ pub(crate) struct CodexAcceptedLineFingerprintsEventParams {
pub(crate) repo_hash: Option<String>,
pub(crate) accepted_added_lines: u64,
pub(crate) accepted_deleted_lines: u64,
pub(crate) line_fingerprints: Vec<AcceptedLineFingerprint>,
// Analytics ingestion and warehouse schemas require this field on the wire.
// Keep it statically empty; line fingerprints are no longer generated.
pub(crate) line_fingerprints: [(); 0],
}
#[derive(Serialize)]