mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 09:17:30 +03:00
378559fb29
Summary: Add --derived-data-type=fsnodes to blobimport to a couple of walker tests so we have test data present to load. Includes a small change to library.sh to add default_setup_pre_blobimport entry point used by these tests Reviewed By: StanislavGlebik Differential Revision: D21202480 fbshipit-source-id: d7eb3e5736531a11da87d92d0d03a528ff2c91a7
37 lines
1.8 KiB
Perl
37 lines
1.8 KiB
Perl
# Copyright (c) Facebook, Inc. and its affiliates.
|
|
#
|
|
# This software may be used and distributed according to the terms of the
|
|
# GNU General Public License found in the LICENSE file in the root
|
|
# directory of this source tree.
|
|
|
|
$ . "${TEST_FIXTURES}/library.sh"
|
|
|
|
setup configuration
|
|
$ default_setup_pre_blobimport "blob_files"
|
|
hg repo
|
|
o C [draft;rev=2;26805aba1e60]
|
|
|
|
|
o B [draft;rev=1;112478962961]
|
|
|
|
|
o A [draft;rev=0;426bada5c675]
|
|
$
|
|
$ blobimport repo-hg/.hg repo --derived-data-type=fsnodes
|
|
|
|
compression-benefit, file content only, not expecting any compression from the tiny test files
|
|
$ mononoke_walker --storage-id=blobstore --readonly-storage --cachelib-only-blobstore compression-benefit -q --bookmark master_bookmark --sample-rate 1 --include-sample-node-type FileContent 2>&1 | strip_glog
|
|
Walking roots * (glob)
|
|
Walking edge types * (glob)
|
|
Walking node types * (glob)
|
|
Final count: * (glob)
|
|
Raw/s,Compressed/s,Raw,Compressed,%Saving; Delta */s,*/s,12,12,0%* (glob)
|
|
Walked/s,* (glob)
|
|
|
|
compression-benefit, all compressible types
|
|
$ mononoke_walker --storage-id=blobstore --readonly-storage --cachelib-only-blobstore compression-benefit -q --bookmark master_bookmark --sample-rate 1 2>&1 | strip_glog
|
|
Walking roots * (glob)
|
|
Walking edge types * (glob)
|
|
Walking node types * (glob)
|
|
Final count: * (glob)
|
|
Raw/s,Compressed/s,Raw,Compressed,%Saving; Delta */s,*/s,3086,3057,0%,*s; Run */s,*/s,3086,3057,0%,*s; Type:Raw,Compressed,%Saving AliasContentMapping:333,333,0% BonsaiChangeset:277,277,0% BonsaiFsnodeMapping:96,96,0% BonsaiHgMapping:281,281,0% Bookmark:0,0,0% FileContent:12,12,0% FileContentMetadata:351,351,0% Fsnode:822,822,0% HgBonsaiMapping:0,0,0% HgChangeset:281,281,0% HgFileEnvelope:189,189,0% HgFileNode:0,0,0% HgManifest:444,415,6%* (glob)
|
|
Walked/s,* (glob)
|