Skip to content

Commit 74e7cb4

Browse files
committed
Prepare for release
Update the changelog, run all tests. Signed-off-by: David Weinehall <[email protected]>
1 parent 8e177ef commit 74e7cb4

File tree

4 files changed

+39
-64
lines changed

4 files changed

+39
-64
lines changed

Diff for: CHANGELOG/CHANGELOG-0.8.md

+34-58
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ No changes.
113113
* A new tool, `mdtable.py` has been added, that creates simple Markdown tables from CSV data.
114114
It's now used by the `mypy-markdown` and `pylint-markdown` Make targets.
115115
* A lot of code has been refactored, documented, or otherwise improved.
116-
In total `1045 files changed, 76495 insertions(+), 28815 deletions(-)`.
116+
In total `1049 files changed, 80367 insertions(+), 29002 deletions(-)`.
117117

118118
### Notable view-file changes (by API-files)
119119

@@ -151,8 +151,8 @@ No changes.
151151

152152
### Notable view-file changes (by line count)
153153

154-
* views/Event.events.k8s.io.yaml (1586 changed lines)
155-
* views/Event.yaml (1585 changed lines)
154+
* views/Event.events.k8s.io.yaml (1591 changed lines)
155+
* views/Event.yaml (1590 changed lines)
156156
* views/SecurityContextConstraints.security.openshift.io.yaml (240 changed lines)
157157
* views/ScaledJob.keda.sh.yaml (218 changed lines)
158158
* views/ClusterPolicy.nvidia.com.yaml (208 changed lines)
@@ -162,7 +162,7 @@ No changes.
162162
* views/Telemetry.telemetry.istio.io.yaml (140 changed lines)
163163
* views/ClusterQueue.kueue.x-k8s.io.yaml (120 changed lines)
164164
* views/ClusterNetworkPolicy.crd.antrea.io.yaml (114 changed lines)
165-
* views/Pod.yaml (112 changed lines)
165+
* views/Pod.yaml (114 changed lines)
166166
* views/ImageStream.image.openshift.io.yaml (111 changed lines)
167167
* views/ConsolePlugin.console.openshift.io.yaml (105 changed lines)
168168
* views/__VersionData.yaml (105 changed lines)
@@ -185,7 +185,7 @@ No changes.
185185

186186
### parser-file changes
187187

188-
37 parserfiles were added.
188+
38 parserfiles were added.
189189

190190
## Fixed Issues in v0.8.5
191191

@@ -266,7 +266,7 @@ Test results:
266266
No issues identified.
267267
268268
Code scanned:
269-
Total lines of code: 79418
269+
Total lines of code: 82622
270270
Total lines skipped (#nosec): 8
271271
272272
Run metrics:
@@ -300,42 +300,41 @@ Output:
300300
```
301301
Name Stmts Miss Branch BrPart Cover
302302
---------------------------------------------------------------------------------------
303+
clustermanagementtoolkit/listgetters.py 1212 1006 654 12 15.6%
304+
clustermanagementtoolkit/infogetters.py 1695 1346 1020 23 19.3%
303305
clustermanagementtoolkit/cluster_actions.py 223 175 72 3 19.3%
304-
clustermanagementtoolkit/itemgetters.py 507 375 290 8 22.3%
305-
clustermanagementtoolkit/infogetters.py 1689 1168 1016 80 27.2%
306-
clustermanagementtoolkit/fieldgetters.py 81 54 46 0 27.6%
307-
clustermanagementtoolkit/kubernetes_helper.py 1494 1004 760 61 28.0%
308-
clustermanagementtoolkit/networkio.py 342 237 171 2 29.2%
309-
clustermanagementtoolkit/curses_helper.py 2392 1535 1124 129 29.3%
310-
clustermanagementtoolkit/listgetters.py 1204 759 654 108 31.6%
306+
clustermanagementtoolkit/curses_helper.py 2394 1811 1124 21 21.0%
307+
clustermanagementtoolkit/kubernetes_helper.py 1494 1045 760 62 25.8%
308+
clustermanagementtoolkit/logparser.py 2008 1384 1125 32 26.6%
309+
clustermanagementtoolkit/networkio.py 364 258 185 3 27.3%
311310
clustermanagementtoolkit/listgetters_async.py 119 76 54 2 31.8%
312-
clustermanagementtoolkit/logparser.py 2008 1158 1125 119 35.8%
313-
clustermanagementtoolkit/datagetters.py 277 145 142 11 45.1%
314-
clustermanagementtoolkit/checks.py 631 310 248 11 47.3%
315-
clustermanagementtoolkit/generators.py 732 317 384 59 49.6%
316-
clustermanagementtoolkit/formatters.py 807 310 424 25 57.8%
317-
clustermanagementtoolkit/ansible_helper.py 805 199 490 24 74.0%
318-
clustermanagementtoolkit/cmtlib.py 659 125 388 34 77.2%
319-
clustermanagementtoolkit/cmtio.py 425 33 242 21 90.7%
320-
clustermanagementtoolkit/ansithemeprint.py 216 6 84 3 96.3%
321-
clustermanagementtoolkit/reexecutor.py 72 0 34 3 97.2%
322-
clustermanagementtoolkit/commandparser.py 412 1 254 2 99.5%
323-
clustermanagementtoolkit/cmtvalidators.py 324 0 200 1 99.8%
311+
clustermanagementtoolkit/checks.py 635 341 248 0 43.9%
312+
clustermanagementtoolkit/generators.py 732 371 384 28 46.5%
313+
clustermanagementtoolkit/formatters.py 807 366 424 32 52.1%
314+
clustermanagementtoolkit/datagetters.py 277 125 142 16 53.0%
315+
clustermanagementtoolkit/cmtlib.py 659 161 388 31 73.3%
316+
clustermanagementtoolkit/ansible_helper.py 805 207 490 24 73.4%
317+
clustermanagementtoolkit/cmtio.py 425 39 242 21 89.8%
318+
clustermanagementtoolkit/reexecutor.py 72 2 34 3 95.3%
319+
clustermanagementtoolkit/itemgetters.py 478 17 266 14 95.6%
320+
clustermanagementtoolkit/ansithemeprint.py 216 7 84 3 96.0%
321+
clustermanagementtoolkit/fieldgetters.py 83 0 48 3 97.7%
322+
clustermanagementtoolkit/cmtvalidators.py 324 6 200 2 98.1%
323+
clustermanagementtoolkit/commandparser.py 444 1 250 2 99.6%
324+
clustermanagementtoolkit/cmttypes.py 471 1 178 0 99.8%
324325
clustermanagementtoolkit/about.py 18 0 0 0 100.0%
325326
clustermanagementtoolkit/cmtio_yaml.py 34 0 6 0 100.0%
326327
clustermanagementtoolkit/cmtpaths.py 89 0 0 0 100.0%
327-
clustermanagementtoolkit/cmttypes.py 471 0 178 0 100.0%
328-
clustermanagementtoolkit/cni_data.py 37 0 8 0 100.0%
328+
clustermanagementtoolkit/cni_data.py 58 0 8 0 100.0%
329329
clustermanagementtoolkit/helptexts.py 23 0 0 0 100.0%
330330
clustermanagementtoolkit/kubernetes_resources.py 3 0 0 0 100.0%
331331
clustermanagementtoolkit/objgetters.py 56 0 12 0 100.0%
332332
clustermanagementtoolkit/pvtypes.py 1 0 0 0 100.0%
333333
clustermanagementtoolkit/recommended_permissions.py 11 0 0 0 100.0%
334334
---------------------------------------------------------------------------------------
335-
TOTAL 16162 7987 8406 706 46.2%
335+
TOTAL 16230 8745 8398 337 43.5%
336336
```
337337

338-
339338
### Flake8 Results for v0.8.5
340339

341340
Commandline: `flake8 --max-line-length 100 --ignore F841,W503 --statistics`.
@@ -445,10 +444,10 @@ Output:
445444
Running regexploit to check for ReDoS attacks
446445
447446
Checking executables
448-
Processed 50 regexes
447+
Processed 67 regexes
449448
450449
Checking libraries
451-
Processed 143 regexes
450+
Processed 142 regexes
452451
```
453452

454453
### Ruff Results for v0.8.5
@@ -473,33 +472,10 @@ Output:
473472
└──────────────┘
474473
Some files were skipped or only partially analyzed.
475474
Partially scanned: 3 files only partially analyzed due to parsing or internal Semgrep errors
476-
Scan skipped: 996 files matching --exclude patterns, 63 files matching .semgrepignore patterns
475+
Scan skipped: 997 files matching --exclude patterns, 63 files matching .semgrepignore patterns
477476
For a full list of skipped files, run semgrep with the --verbose flag.
478477
479-
Ran 687 rules on 97 files: 0 findings.
480-
481-
✨ If Semgrep missed a finding, please send us feedback to let us know!
482-
See https://semgrep.dev/docs/reporting-false-negatives/
483-
484-
485-
Running yamllint to check that all YAML is valid
486-
487-
488-
489-
Running ansible-lint to check that all Ansible playbooks are valid
490-
491-
492-
Passed: 0 failure(s), 0 warning(s) on 54 files. Last profile that met the validation criteria was 'production'.
493-
494-
495-
Running validate_yaml to check that all view-files/parser-files/theme-files are valid
496-
497-
498-
Summary:
499-
fail: 0
500-
skip: 3
501-
success: 860
502-
total: 863
478+
Ran 693 rules on 97 files: 0 findings.
503479
```
504480

505481
### validate_playbooks Results for v0.8.5
@@ -522,8 +498,8 @@ Output:
522498
Summary:
523499
fail: 0
524500
skip: 3
525-
success: 860
526-
total: 853
501+
success: 863
502+
total: 866
527503
```
528504

529505
### YAMLlint Results for v0.8.5

Diff for: clustermanagementtoolkit/itemgetters.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ def get_list_as_list(obj: dict, **kwargs: Any) -> list[Any]:
309309
return vlist
310310

311311

312-
# pylint: disable-next=too-many-locals
312+
# pylint: disable-next=too-many-locals,too-many-branches
313313
def get_dict_list(obj: dict, **kwargs: Any) -> list[Any]:
314314
"""
315315
Given a path to a dict (or a list of dicts), generate a list with all items

Diff for: tests/fgtests

+3-3
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ def test_fieldgetter_crc_version(verbose: bool = False) -> tuple[str, bool]:
256256
["CRC VM: Running",
257257
"CRC version: 2.46.0+8f40e8\nOpenShift version: 4.17.10\n"
258258
"MicroShift version: 4.17.10"],
259-
["2.46.0+8f40e8"],
259+
["2.46.0+8f40e8"],
260260
None,
261261
),
262262
(
@@ -265,7 +265,7 @@ def test_fieldgetter_crc_version(verbose: bool = False) -> tuple[str, bool]:
265265
["CRC VM: Running",
266266
"CRC version: 2.46.0+8f40e8\nOpenShift version: 4.17.10\n"
267267
"Podman version: 1.2.3\nSomething else here"],
268-
["2.46.0+8f40e8", "4.17.10", "1.2.3"],
268+
["2.46.0+8f40e8", "4.17.10", "1.2.3"],
269269
None,
270270
),
271271
(
@@ -274,7 +274,7 @@ def test_fieldgetter_crc_version(verbose: bool = False) -> tuple[str, bool]:
274274
["CRC VM: Running",
275275
"CRC version: 2.46.0+8f40e8\nOpenShift version: 4.17.10\n"
276276
"Podman version: 1.2.3\nSomething else here"],
277-
[],
277+
[],
278278
None,
279279
),
280280
)

Diff for: tests/gentests

+1-2
Original file line numberDiff line numberDiff line change
@@ -268,8 +268,7 @@ def test_generator_value_mapper(verbose: bool = False) -> tuple[str, bool]:
268268
False,
269269
True,
270270
{
271-
"item_separator": ThemeRef("separators",
272-
"list", False),
271+
"item_separator": ThemeRef("separators", "list", False),
273272
"field_separators": [
274273
ThemeRef("separators", "field", False),
275274
],

0 commit comments

Comments
 (0)