Repository navigation
Add coarse git repo size to bundle deploy telemetry - #8248
Merged
Merged
Conversation
Sends git_repo_size on the bundle deploy event for bundles in a local git checkout: the tracked file count from the .git/index header and the size of .git/objects/pack, each as a coarse bucket. Co-authored-by: Isaac <no-reply@databricks.com> Signed-off-by: Anders Rex <anders.rex@databricks.com>
Contributor
Regression test report ✅Commit: Selected 1 changed tests (limit=20, 0 not selected) 1 tests: regression=1 unreleased=0 coverage=0 failing=0
TestAccept/bundle/telemetry/deploy-git/DMS=: branch ✅ | main (5925432) ❌ | latest (v1.29.0) ❌main (5925432): latest (v1.29.0): same output as main (5925432) |
Collaborator
✅ Integration test reportCommit: 3210b35
Top 3 slowest tests (at least 2 minutes):
|
Counts loose objects in the object store size, and leaves it unset for repositories that use alternates. Treats a shared index as active only when it is as new as the index, reads index.sparse from the global config and requires core.sparseCheckout for a sparse index. Adds tests for the cases where git_repo_size is not sent. Co-authored-by: Isaac <no-reply@databricks.com> Signed-off-by: Anders Rex <anders.rex@databricks.com>
Counts only the files the repository layout defines (pack-* files and hex named loose objects) instead of skipping a tmp_ prefix. Gives the read a 200 ms budget so a slow filesystem cannot hold up the deploy. Extends the deploy-git acceptance test with a repository of known size, as loose objects and after git gc. Co-authored-by: Isaac <no-reply@databricks.com> Signed-off-by: Anders Rex <anders.rex@databricks.com>
Co-authored-by: Isaac <no-reply@databricks.com>
janniklasrose
approved these changes
Dec 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
Adds
git_repo_sizetobundle deploytelemetry for bundles in a local git checkout: a coarse bucket for the tracked file count (from the.git/indexheader) and for the size of.git/objects(packs plus loose objects). Only buckets are sent. Values that would be inaccurate (split or sparse index, shallow or partial clones, alternates) are left unset.Tests
Unit tests for the reader and bucket boundaries, and the
bundle/telemetry/deploy-gitacceptance test.This pull request and its description were written by Isaac.