Commit b57c313
committed
chore(test): split container-backed unit tests into their own runner
Running `tox` over the full unit test suite was hanging on the first
container-backed plugin: py39 timed out after 20min on keycloak-version,
py310 got OOM-killed on cpu-usage, and py311 failed even earlier on
netifaces source-builds. The container tests are valuable but they are
integration tests, not multi-Python unit tests - they each build a
podman image per target OS, inject the plugin plus lib/, and exercise
the check against a live service.
- tools/run-unit-tests: add `--no-container` and `--only-container`
mutually-exclusive flags. A plugin counts as container-based when
its `unit-test/` dir has a `containerfiles/` subdirectory. Without
a flag, behavior is unchanged (runs everything).
- tools/run-container-tests: new thin wrapper that calls
`run-unit-tests --only-container` for the full podman-driven sweep.
- tox.ini: call `tools/run-unit-tests --no-container` so the
multi-Python matrix only runs the 103 fast tests and skips the 7
container-backed ones.
Split is 103 fast / 7 container (+ 1 skipped `example` template).1 parent 9420ddc commit b57c313
File tree
4 files changed
+106
-10
lines changed- tools
4 files changed
+106
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
14 | 27 | | |
15 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
16 | 31 | | |
17 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
18 | 37 | | |
19 | 38 | | |
| 39 | + | |
20 | 40 | | |
21 | 41 | | |
22 | 42 | | |
| |||
27 | 47 | | |
28 | 48 | | |
29 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
30 | 57 | | |
31 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
32 | 78 | | |
33 | 79 | | |
34 | 80 | | |
35 | | - | |
36 | | - | |
| 81 | + | |
37 | 82 | | |
38 | 83 | | |
39 | 84 | | |
40 | 85 | | |
41 | | - | |
| 86 | + | |
42 | 87 | | |
43 | 88 | | |
44 | 89 | | |
45 | | - | |
| 90 | + | |
46 | 91 | | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
51 | 101 | | |
52 | 102 | | |
53 | 103 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
0 commit comments