Skip to content

Commit

Permalink
fixup??? survey: add report of "largest" paths
Browse files Browse the repository at this point in the history
The exact disk size seems to be not quite robust enough for my liking.
The `linux-musl-meson` job seems to be failing consistently, possibly
because of zlib-ng deflates differently, as t8100.4(git survey
(default)) is failing. The symptom is this:

   TOTAL OBJECT SIZES BY TYPE
   ===============================================
   Object Type | Count | Disk Size | Inflated Size
   ------------+-------+-----------+--------------
  -    Commits |    10 |      1523 |          2153
  +    Commits |    10 |      1528 |          2153
         Trees |    10 |       495 |          1706
         Blobs |    10 |       191 |           101
  -       Tags |     4 |       510 |           528
  +       Tags |     4 |       547 |           528

This means: the disk size is unlikely something we can verify robustly.
Since zlib-ng seems to increase the disk size of the tags from 528 to
547, we cannot even assume that the disk size is always smaller than the
inflated size.

Signed-off-by: Johannes Schindelin <[email protected]>
  • Loading branch information
dscho authored and Git for Windows Build Agent committed Feb 26, 2025
1 parent 333f2b2 commit 372ee2f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion t/t8100-git-survey.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ test_expect_success 'git survey (default)' '
lines=$(wc -l <expect) &&
head -n $lines out >out-trimmed &&
test_cmp expect out-trimmed &&
sed -e "s/ 1528 / 1523 /" -e "s/ 547 / 510 /" out-trimmed >out-edited &&
test_cmp expect out-edited &&
for type in "DIRECTORIES" "FILES"
do
Expand Down

0 comments on commit 372ee2f

Please sign in to comment.