Commit 06cbbda
ref(snapshots): Key manifest entries by relative path instead of hash (#3241)
Switch the snapshot manifest dictionary key from content hash to image
file name (basename). This enables the backend to use the key directly
as the image identifier, removing the redundant `image_file_name` field
from manifest values.
Changes:
- Manifest entries are now keyed by file name instead of content hash
- `image_file_name` removed from `ImageMetadata` — derived from key
- `content_hash` stored in image metadata `extra` for objectstore
lookups
- Collision detection skips duplicate file names before upload, with a
warning listing all excluded paths
- Path separators normalized via `path_as_url` for cross-platform
consistency
Companion backend PR: getsentry/sentry#111467
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 94a8931 commit 06cbbda
File tree
3 files changed
+42
-29
lines changed- .github
- src
- api/data_types
- commands/build
3 files changed
+42
-29
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
| |||
42 | 41 | | |
43 | 42 | | |
44 | 43 | | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
| 44 | + | |
55 | 45 | | |
56 | 46 | | |
57 | 47 | | |
| |||
68 | 58 | | |
69 | 59 | | |
70 | 60 | | |
71 | | - | |
72 | 61 | | |
73 | 62 | | |
74 | 63 | | |
75 | 64 | | |
76 | 65 | | |
77 | 66 | | |
78 | | - | |
| 67 | + | |
79 | 68 | | |
80 | 69 | | |
81 | 70 | | |
82 | | - | |
83 | 71 | | |
84 | 72 | | |
85 | 73 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
331 | 331 | | |
332 | 332 | | |
333 | 333 | | |
334 | | - | |
335 | | - | |
| 334 | + | |
| 335 | + | |
336 | 336 | | |
337 | 337 | | |
338 | 338 | | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
339 | 356 | | |
340 | 357 | | |
341 | 358 | | |
| |||
353 | 370 | | |
354 | 371 | | |
355 | 372 | | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | | - | |
363 | | - | |
| 373 | + | |
364 | 374 | | |
365 | 375 | | |
366 | 376 | | |
| 377 | + | |
367 | 378 | | |
| 379 | + | |
368 | 380 | | |
369 | | - | |
370 | | - | |
| 381 | + | |
| 382 | + | |
371 | 383 | | |
372 | 384 | | |
373 | 385 | | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
374 | 396 | | |
375 | 397 | | |
| 398 | + | |
| 399 | + | |
376 | 400 | | |
377 | 401 | | |
378 | 402 | | |
379 | 403 | | |
380 | 404 | | |
381 | | - | |
382 | | - | |
| 405 | + | |
| 406 | + | |
383 | 407 | | |
384 | 408 | | |
385 | 409 | | |
| |||
391 | 415 | | |
392 | 416 | | |
393 | 417 | | |
394 | | - | |
| 418 | + | |
395 | 419 | | |
396 | 420 | | |
397 | 421 | | |
| |||
0 commit comments