Repository navigation
Commit 900fa0e
authored
Raise
CI started failing on `v1.x.x` yesterday with three unrelated-looking
config test failures. They come from the `frequenz-quantities` 1.0.2
release, which raised its `marshmallow` floor to 4
(frequenz-floss/frequenz-quantities-python#107) and thereby dragged
`marshmallow` 4 into our environment for the first time. Marshmallow 4
dropped support for validators that return `False` instead of raising,
which is what the config test dataclasses were doing, so the validation
silently stopped happening.
The fix is test-only, but there is a release notes entry because the
same silent acceptance hits anyone who wrote boolean validators for
their own config dataclasses.
Heads-up for whoever reviews: the docs job on this PR will stay red, for
a second and unrelated problem from the same `frequenz-quantities` 1.0.2
release. That one is a docstring in `frequenz-quantities` using a
relative mkdocstrings cross-reference, which misresolves whenever it is
rendered under a path other than the one it was written in, as happens
here with `BaseConfigSchema` inheriting `QuantitySchema.TYPE_MAPPING`.
It cannot be fixed on this side, only worked around by dropping
documentation, and frequenz-floss/frequenz-quantities-python#170 already
fixes it upstream. #1455 is blocked on the same thing.ValidationError from the config test validators (#1456)3 files changed
Lines changed: 31 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
23 | 36 | | |
24 | 37 | | |
25 | 38 | | |
26 | 39 | | |
27 | | - | |
| 40 | + | |
28 | 41 | | |
29 | 42 | | |
30 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
17 | 30 | | |
18 | 31 | | |
19 | 32 | | |
20 | 33 | | |
21 | | - | |
| 34 | + | |
22 | 35 | | |
23 | 36 | | |
24 | 37 | | |
25 | 38 | | |
26 | 39 | | |
27 | 40 | | |
28 | 41 | | |
29 | | - | |
| 42 | + | |
30 | 43 | | |
31 | 44 | | |
32 | 45 | | |
| |||
0 commit comments