Commit 3a46c8a
enable edenapi push for integration tests
Summary:
# Context
The new AugmentedManifest format used by Sapling and Mononoke will support looking up Trees/Blobs from CAS via (Blake3,size) pairs. We already provide a way for users to get (Blake3,size) pairs for blobs, but there is currently no easy way to get this information for trees.
We want to add support to getAttributesFromFilesV2 for looking up the (Blake3,size) pairs for trees as well. To do this, we'll need to add a method for querying TreeMetadata (including size and Blake3 hashes) via the SaplingBackingStore.
This initial implementation of TreeMetadata will only include the following features:
1) Ability to query TreeMetadata from the SaplingBackingStore via a getTreeMetadata endpoint
2) The ability to request TreeMetadata from the getAttributesFromFilesV2 thrift endpoint
In the future, we will extend the implementation to support:
1) Automatically fetching TreeMetadata during BackingStore::getTree requests
2) Caching TreeMetadata in Eden's in-memory caches
# This diff
enables edenapi push for integration tests so that the readdir integration tests can push to an eagerepo and request TreeAuxData from the server afterwards
Reviewed By: quark-zju
Differential Revision: D59662772
fbshipit-source-id: 4cb6620abaf416693b6688b3314490ba35bc07aa1 parent be3e8b5 commit 3a46c8a
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
307 | 307 | | |
308 | 308 | | |
309 | 309 | | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
310 | 314 | | |
311 | 315 | | |
312 | 316 | | |
| |||
478 | 482 | | |
479 | 483 | | |
480 | 484 | | |
| 485 | + | |
481 | 486 | | |
0 commit comments