Commit c9e87cf
authored
ref: Assume chunk uploading support (#3064)
### Description
Assume that the Sentry server supports all file types we would like to
upload.
This change fixes compatibility with uploading ProGuard files
self-hosted version 24.11.1, which [can receive chunk-uploaded ProGuard
files](getsentry/sentry@7c7e79f),
but [does not declare support in the `accept` field,
yet](getsentry/sentry@e0b7ff2).
This will allow us to expand Sentry CLI 3.x's official support to all
self-hosted versions above 24.11.1.
We also no longer check the `accept` field during `dart-symbol-map` and
`build` uploads. As not all versions ≥24.11.1 support these features,
this means that users on a self-hosted version that supports these
features tries to use the command, they will no longer get an error
message that states that their server lacks uploading support for those
file types if they attempt to upload it. But, I think this is okay, as
long as we are clear what versions are supported for these features.
### Issues
- Resolves #3050
- Resolves
[CLI-254](https://linear.app/getsentry/issue/CLI-254/assume-chunk-upload-support)1 parent f316566 commit c9e87cf
File tree
10 files changed
+61
-77
lines changed- src
- api/data_types/chunking
- upload
- commands
- build
- dart_symbol_map
- tests/integration/_cases/build
10 files changed
+61
-77
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | | - | |
7 | 5 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | 26 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
| 14 | + | |
17 | 15 | | |
18 | 16 | | |
19 | 17 | | |
| |||
42 | 40 | | |
43 | 41 | | |
44 | 42 | | |
| 43 | + | |
45 | 44 | | |
46 | 45 | | |
47 | 46 | | |
| |||
599 | 598 | | |
600 | 599 | | |
601 | 600 | | |
602 | | - | |
603 | | - | |
604 | | - | |
605 | 601 | | |
606 | 602 | | |
607 | 603 | | |
608 | 604 | | |
609 | 605 | | |
610 | 606 | | |
611 | 607 | | |
612 | | - | |
613 | | - | |
614 | | - | |
615 | | - | |
616 | | - | |
617 | | - | |
618 | | - | |
619 | 608 | | |
620 | 609 | | |
621 | 610 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | 137 | | |
143 | 138 | | |
144 | 139 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | 11 | | |
13 | 12 | | |
14 | 13 | | |
| |||
148 | 147 | | |
149 | 148 | | |
150 | 149 | | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
| 150 | + | |
157 | 151 | | |
Lines changed: 27 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
7 | 9 | | |
8 | 10 | | |
9 | | - | |
| 11 | + | |
| 12 | + | |
10 | 13 | | |
11 | 14 | | |
12 | 15 | | |
13 | 16 | | |
| 17 | + | |
14 | 18 | | |
15 | 19 | | |
16 | 20 | | |
| 21 | + | |
17 | 22 | | |
18 | 23 | | |
| 24 | + | |
19 | 25 | | |
20 | 26 | | |
| 27 | + | |
21 | 28 | | |
22 | 29 | | |
23 | 30 | | |
| 31 | + | |
24 | 32 | | |
25 | 33 | | |
26 | 34 | | |
| 35 | + | |
27 | 36 | | |
28 | 37 | | |
| 38 | + | |
29 | 39 | | |
30 | 40 | | |
31 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
32 | 45 | | |
33 | 46 | | |
34 | 47 | | |
| 48 | + | |
35 | 49 | | |
36 | 50 | | |
37 | 51 | | |
| 52 | + | |
38 | 53 | | |
39 | 54 | | |
40 | 55 | | |
| 56 | + | |
41 | 57 | | |
42 | 58 | | |
43 | 59 | | |
| 60 | + | |
44 | 61 | | |
45 | 62 | | |
46 | 63 | | |
| 64 | + | |
47 | 65 | | |
48 | 66 | | |
49 | 67 | | |
50 | 68 | | |
| 69 | + | |
51 | 70 | | |
52 | 71 | | |
53 | 72 | | |
| 73 | + | |
54 | 74 | | |
55 | 75 | | |
| 76 | + | |
56 | 77 | | |
57 | 78 | | |
58 | 79 | | |
59 | 80 | | |
| 81 | + | |
60 | 82 | | |
61 | 83 | | |
| 84 | + | |
62 | 85 | | |
63 | | - | |
| 86 | + | |
64 | 87 | | |
65 | 88 | | |
Lines changed: 26 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
8 | | - | |
| 10 | + | |
| 11 | + | |
9 | 12 | | |
10 | 13 | | |
11 | 14 | | |
12 | 15 | | |
| 16 | + | |
13 | 17 | | |
14 | 18 | | |
15 | 19 | | |
| 20 | + | |
16 | 21 | | |
17 | 22 | | |
| 23 | + | |
18 | 24 | | |
19 | 25 | | |
| 26 | + | |
20 | 27 | | |
21 | 28 | | |
22 | 29 | | |
| 30 | + | |
23 | 31 | | |
24 | 32 | | |
25 | 33 | | |
| 34 | + | |
26 | 35 | | |
27 | 36 | | |
| 37 | + | |
28 | 38 | | |
29 | 39 | | |
30 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
31 | 44 | | |
32 | 45 | | |
33 | 46 | | |
| 47 | + | |
34 | 48 | | |
35 | 49 | | |
36 | 50 | | |
| 51 | + | |
37 | 52 | | |
38 | 53 | | |
39 | 54 | | |
| 55 | + | |
40 | 56 | | |
41 | 57 | | |
42 | 58 | | |
| 59 | + | |
43 | 60 | | |
44 | 61 | | |
45 | 62 | | |
| 63 | + | |
46 | 64 | | |
47 | 65 | | |
48 | 66 | | |
49 | 67 | | |
| 68 | + | |
50 | 69 | | |
51 | 70 | | |
52 | 71 | | |
| 72 | + | |
53 | 73 | | |
54 | 74 | | |
| 75 | + | |
55 | 76 | | |
56 | 77 | | |
57 | 78 | | |
58 | 79 | | |
| 80 | + | |
59 | 81 | | |
60 | 82 | | |
| 83 | + | |
61 | 84 | | |
62 | | - | |
| 85 | + | |
63 | 86 | | |
64 | 87 | | |
0 commit comments