Commit a8c7dcf
authored
compare latest blessed version for bytewise equality (#36)
The Dropshot API manager detects semantic equality using
[drift](https://docs.rs/drift). This was primarily intended so that
wire-compatible changes could be made to endpoint handlers for old
blessed versions. But, as a side-effect, this property also applies to
the latest blessed version. This means that trivial changes to blessed
versions can accumulate, up to the point at which a non-trivial change
happens, and then the diff becomes quite confusing.
Address this by special-casing the latest blessed version, and requiring
both bytewise and semantic equality for it. Also allow
client-side-versioned APIs (which are currently frozen; see
oxidecomputer/omicron#9290) to opt out of this
scheme.
Closes #35.1 parent 1f45ec8 commit a8c7dcf
File tree
9 files changed
+397
-26
lines changed- crates
- dropshot-api-manager/src
- integration-tests
- src
- tests/integration
- e2e-example
- apis/src
- documents/versioned
9 files changed
+397
-26
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
50 | 54 | | |
51 | | - | |
| 55 | + | |
52 | 56 | | |
53 | 57 | | |
54 | 58 | | |
| |||
73 | 77 | | |
74 | 78 | | |
75 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
76 | 86 | | |
77 | 87 | | |
78 | 88 | | |
| |||
84 | 94 | | |
85 | 95 | | |
86 | 96 | | |
| 97 | + | |
87 | 98 | | |
88 | 99 | | |
89 | 100 | | |
90 | 101 | | |
91 | 102 | | |
| 103 | + | |
92 | 104 | | |
93 | 105 | | |
94 | 106 | | |
95 | 107 | | |
| 108 | + | |
96 | 109 | | |
97 | 110 | | |
98 | 111 | | |
99 | 112 | | |
| 113 | + | |
100 | 114 | | |
101 | 115 | | |
102 | 116 | | |
103 | 117 | | |
| 118 | + | |
104 | 119 | | |
105 | 120 | | |
106 | 121 | | |
107 | 122 | | |
| 123 | + | |
108 | 124 | | |
109 | 125 | | |
110 | 126 | | |
111 | 127 | | |
| 128 | + | |
112 | 129 | | |
113 | 130 | | |
114 | 131 | | |
115 | 132 | | |
116 | | - | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
117 | 151 | | |
118 | 152 | | |
119 | 153 | | |
120 | 154 | | |
121 | 155 | | |
122 | | - | |
| 156 | + | |
123 | 157 | | |
124 | 158 | | |
125 | 159 | | |
126 | | - | |
| 160 | + | |
127 | 161 | | |
128 | 162 | | |
129 | 163 | | |
| |||
136 | 170 | | |
137 | 171 | | |
138 | 172 | | |
139 | | - | |
| 173 | + | |
140 | 174 | | |
141 | 175 | | |
142 | 176 | | |
| |||
165 | 199 | | |
166 | 200 | | |
167 | 201 | | |
168 | | - | |
| 202 | + | |
169 | 203 | | |
170 | 204 | | |
171 | 205 | | |
| |||
192 | 226 | | |
193 | 227 | | |
194 | 228 | | |
195 | | - | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
196 | 236 | | |
197 | 237 | | |
198 | | - | |
| 238 | + | |
199 | 239 | | |
200 | 240 | | |
201 | 241 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
529 | 529 | | |
530 | 530 | | |
531 | 531 | | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
532 | 561 | | |
533 | 562 | | |
534 | 563 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
179 | 193 | | |
180 | 194 | | |
181 | 195 | | |
| |||
281 | 295 | | |
282 | 296 | | |
283 | 297 | | |
| 298 | + | |
284 | 299 | | |
285 | 300 | | |
286 | 301 | | |
| |||
945 | 960 | | |
946 | 961 | | |
947 | 962 | | |
| 963 | + | |
948 | 964 | | |
949 | 965 | | |
950 | 966 | | |
| |||
973 | 989 | | |
974 | 990 | | |
975 | 991 | | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
976 | 1008 | | |
977 | 1009 | | |
978 | 1010 | | |
| |||
0 commit comments