Commit 35ef84f
authored
Merge pull request #749 from cderici/fix-series-for-local-charms-and-bundles-3.0
#749
#### Description
This change fixes the use of `base` in `CharmOrigin` in basically all code paths for local and charmhub deployments for both charms and bundles.
Initially started to fix the charm deploy issues such as in [parca-k8s](https://github.com/jnsgruk/parca-k8s-operator/actions/runs/3277144022/jobs/5394048300#step:4:1), this grew out of it pretty quickly, as I started to run tests against the 3.0 controller with the new facades/clients.
This should also fix the [LP #1992833](https://bugs.launchpad.net/juju/+bug/1992833), though we need a confirmation on that.
#### QA Steps
To qa this we need a `3.0` controller.
So for the local charm deployment issue, run `juju download parca-k8s --channel=edge` and then run:
```python
application = await model.deploy(
'./parca.charm',
)
```
with libjuju and it should work.
For the bundle parts, I manually made sure that all of the following integration tests are working against the latest juju `3.0`. Note that in the CI below we won't see any of this because juju latest/stable is still 2.9 (i.e. almost all our tests are running against 2.9) and our latest-edge jenkins job (against 3.0) is still not working.
Here are the individual tests that need to pass (they were all failing without this change):
```
tox -e integration -- tests/integration/test_model.py::test_deploy_local_charm
tox -e integration -- tests/integration/test_model.py::test_deploy_bundle
tox -e integration -- tests/integration/test_model.py::test_deploy_local_bundle_file
tox -e integration -- tests/integration/test_model.py::test_deploy_local_bundle_include_file
tox -e integration -- tests/integration/test_model.py::test_deploy_bundle_local_charms
tox -e integration -- tests/integration/test_model.py::test_deploy_bundle_with_multiple_overlays_with_include_files
tox -e integration -- tests/integration/test_model.py::test_deploy_local_bundle_include_base64
tox -e integration -- tests/integration/test_model.py::test_deploy_trusted_bundle
tox -e integration -- tests/integration/test_model.py::test_deploy_local_bundle_with_overlay_multi
tox -e integration -- tests/integration/test_model.py::test_deploy_bundle_local_resource_relative_path
tox -e integration -- tests/integration/test_model.py::test_deploy_local_bundle_dir
tox -e integration -- tests/integration/test_model.py::test_deploy_bundle_with_multi_overlay_as_argument
```
#### Notes & Discussion
Note that I rely on the CI tests to make sure we didn't regress on the 2.9 support. So we should be careful in looking at the CI to make sure none of the related tests are failing. Failure means that a change I made to support 3.0 broke 2.9 support. In that case we gotta fix it before we land this.5 files changed
Lines changed: 227 additions & 58 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
132 | | - | |
| 132 | + | |
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
151 | | - | |
| 151 | + | |
| 152 | + | |
152 | 153 | | |
153 | 154 | | |
154 | 155 | | |
155 | | - | |
| 156 | + | |
156 | 157 | | |
157 | 158 | | |
158 | 159 | | |
159 | 160 | | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
160 | 168 | | |
161 | 169 | | |
162 | 170 | | |
| |||
281 | 289 | | |
282 | 290 | | |
283 | 291 | | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
284 | 310 | | |
285 | 311 | | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | | - | |
| 312 | + | |
298 | 313 | | |
299 | 314 | | |
300 | 315 | | |
| |||
341 | 356 | | |
342 | 357 | | |
343 | 358 | | |
| 359 | + | |
344 | 360 | | |
345 | 361 | | |
346 | 362 | | |
347 | 363 | | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
348 | 367 | | |
349 | 368 | | |
350 | 369 | | |
| |||
355 | 374 | | |
356 | 375 | | |
357 | 376 | | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
358 | 380 | | |
359 | | - | |
360 | 381 | | |
361 | 382 | | |
362 | 383 | | |
| |||
618 | 639 | | |
619 | 640 | | |
620 | 641 | | |
621 | | - | |
622 | | - | |
623 | | - | |
624 | 642 | | |
625 | 643 | | |
626 | 644 | | |
| |||
719 | 737 | | |
720 | 738 | | |
721 | 739 | | |
722 | | - | |
723 | | - | |
724 | 740 | | |
725 | 741 | | |
726 | 742 | | |
| |||
741 | 757 | | |
742 | 758 | | |
743 | 759 | | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
744 | 764 | | |
745 | 765 | | |
746 | 766 | | |
| |||
826 | 846 | | |
827 | 847 | | |
828 | 848 | | |
829 | | - | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
830 | 855 | | |
831 | 856 | | |
832 | 857 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
824 | 824 | | |
825 | 825 | | |
826 | 826 | | |
827 | | - | |
| 827 | + | |
828 | 828 | | |
829 | 829 | | |
830 | 830 | | |
| |||
1770 | 1770 | | |
1771 | 1771 | | |
1772 | 1772 | | |
1773 | | - | |
1774 | 1773 | | |
1775 | 1774 | | |
1776 | 1775 | | |
| |||
1789 | 1788 | | |
1790 | 1789 | | |
1791 | 1790 | | |
| 1791 | + | |
1792 | 1792 | | |
| 1793 | + | |
| 1794 | + | |
| 1795 | + | |
| 1796 | + | |
| 1797 | + | |
| 1798 | + | |
| 1799 | + | |
| 1800 | + | |
| 1801 | + | |
| 1802 | + | |
| 1803 | + | |
| 1804 | + | |
| 1805 | + | |
1793 | 1806 | | |
1794 | 1807 | | |
1795 | | - | |
1796 | | - | |
1797 | | - | |
1798 | | - | |
1799 | | - | |
1800 | | - | |
1801 | | - | |
| 1808 | + | |
1802 | 1809 | | |
1803 | 1810 | | |
1804 | 1811 | | |
| |||
1853 | 1860 | | |
1854 | 1861 | | |
1855 | 1862 | | |
| 1863 | + | |
| 1864 | + | |
| 1865 | + | |
| 1866 | + | |
| 1867 | + | |
| 1868 | + | |
| 1869 | + | |
| 1870 | + | |
| 1871 | + | |
| 1872 | + | |
1856 | 1873 | | |
1857 | 1874 | | |
1858 | | - | |
1859 | | - | |
1860 | | - | |
1861 | | - | |
1862 | | - | |
1863 | | - | |
| 1875 | + | |
1864 | 1876 | | |
1865 | 1877 | | |
1866 | 1878 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
237 | | - | |
| 237 | + | |
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
| 241 | + | |
| 242 | + | |
241 | 243 | | |
242 | 244 | | |
243 | 245 | | |
244 | 246 | | |
245 | 247 | | |
246 | | - | |
| 248 | + | |
247 | 249 | | |
248 | 250 | | |
249 | | - | |
| 251 | + | |
250 | 252 | | |
251 | 253 | | |
252 | 254 | | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
0 commit comments