Skip to content

Commit 1984cec

Browse files
authored
Fix list-files test following xet migration in prod (#1326)
cc @jsulz @bpronan for viz :) (nice to see xet migration in real time)
1 parent 1aa1c3f commit 1984cec

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

packages/hub/src/lib/list-files.spec.ts

+4
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ describe("listFiles", () => {
3737
size: 440473133,
3838
pointerSize: 134,
3939
},
40+
xetHash: "2d8408d3a894d02517d04956e2f7546ff08362594072f3527ce144b5212a3296",
4041
oid: "ba5d19791be1dd7992e33bd61f20207b0f7f50a5",
4142
path: "pytorch_model.bin",
4243
size: 440473133,
@@ -48,6 +49,7 @@ describe("listFiles", () => {
4849
size: 536063208,
4950
pointerSize: 134,
5051
},
52+
xetHash: "879c5715c18a0b7f051dd33f70f0a5c8dd1522e0a43f6f75520f16167f29279b",
5153
oid: "9eb98c817f04b051b3bcca591bcd4e03cec88018",
5254
path: "tf_model.h5",
5355
size: 536063208,
@@ -113,6 +115,7 @@ describe("listFiles", () => {
113115
size: 440473133,
114116
pointerSize: 134,
115117
},
118+
xetHash: "2d8408d3a894d02517d04956e2f7546ff08362594072f3527ce144b5212a3296",
116119
oid: "ba5d19791be1dd7992e33bd61f20207b0f7f50a5",
117120
path: "pytorch_model.bin",
118121
size: 440473133,
@@ -129,6 +132,7 @@ describe("listFiles", () => {
129132
size: 536063208,
130133
pointerSize: 134,
131134
},
135+
xetHash: "879c5715c18a0b7f051dd33f70f0a5c8dd1522e0a43f6f75520f16167f29279b",
132136
oid: "9eb98c817f04b051b3bcca591bcd4e03cec88018",
133137
path: "tf_model.h5",
134138
size: 536063208,

packages/hub/src/lib/list-files.ts

+4
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ export interface ListFileEntry {
1717
/** Size of the raw pointer file, 100~200 bytes */
1818
pointerSize: number;
1919
};
20+
/**
21+
* Xet-backed hash, a new protocol replacing LFS for big files.
22+
*/
23+
xetHash?: string;
2024
/**
2125
* Only fetched if `expand` is set to `true` in the `listFiles` call.
2226
*/

0 commit comments

Comments
 (0)