Commit f49d225
Adding buck_targets_with_distance.jsonl.zst to list, checking zstd magic number
Summary:
Adding check for buck_targets_with_distance.jsonl.zst. Also adding
a magic number check in case the file extension also isn't correct.
https://fb.workplace.com/groups/td.users/permalink/3848149105481080/
When I ran this from the example:
```
$ arc citrace --verbose --job-id 2981382953332327521 --job-id 3625397700046428817 fbcode//ai_codesign/component_warehouse/tools/automation/test/cogwheel:cogwheel_e2e_geordi-test
```
the artifacts downloaded didn't have extension .zst, but WERE actually zstd:
```
$ file /tmp/citrace/2981382953332327521/buck_targets_with_distance
/tmp/citrace/2981382953332327521/buck_targets_with_distance: Zstandard compressed data (v0.8+), Dictionary ID: None
```
Differential Revision: D92464258
fbshipit-source-id: bbc38407e6b5c712020121cd44dbe3cd91a0e8bc1 parent 741b20e commit f49d225
3 files changed
+25
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
44 | | - | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
41 | | - | |
| 42 | + | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
13 | 15 | | |
14 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
15 | 21 | | |
16 | 22 | | |
17 | 23 | | |
18 | 24 | | |
19 | 25 | | |
20 | 26 | | |
21 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
0 commit comments