Branch: refs/heads/master
Home:
https://github.com/Checkmk/checkmk
Commit: 50d6aee0671861d2a068298f4b761f40a88d508e
https://github.com/Checkmk/checkmk/commit/50d6aee0671861d2a068298f4b761f40a…
Author: Benedikt Seidl <benedikt.seidl(a)checkmk.com>
Date: 2023-06-15 (Thu, 15 Jun 2023)
Changed paths:
M cmk/utils/werks/__init__.py
M cmk/utils/werks/werkv1.py
M cmk/utils/werks/werkv2.py
M tests/unit/cmk/utils/test_werks.py
Log Message:
-----------
change interface of load_werk_* functions
previously the path was provided, now the content has to be provided.
the next commit will introduce a mechanism to load werks directly from
git history, without checking out the git branch. in this case we don't
have access to a file, but load the contents of the file.
Change-Id: Ie1b64ed8552e966f48c66925aacf1dc7c597f192
Commit: 47e90d9700f0db7258ddeb27247afcd2bec8531c
https://github.com/Checkmk/checkmk/commit/47e90d9700f0db7258ddeb27247afcd2b…
Author: Benedikt Seidl <benedikt.seidl(a)checkmk.com>
Date: 2023-06-15 (Thu, 15 Jun 2023)
Changed paths:
M Pipfile
M Pipfile.lock
M cmk/utils/werks/__main__.py
A cmk/utils/werks/collect.py
M cmk/utils/werks/werkv1.py
Log Message:
-----------
load werks from all branches in git
currently not all branches are evaluated when creating all_werks.json
this script uses some git foo to extract them without checking out the
branches.
wget -O /tmp/all_werks.json
https://download.checkmk.com/all_werks.json
jq --sort-keys . /tmp/all_werks.json > /tmp/web.json
python3 -m cmk.utils.werks collect cmk path/to/cmk > cmk.json
python3 -m cmk.utils.werks collect cma path/to/cma > cma.json
python3 -m cmk.utils.werks collect checkmk_kube_agent path/to/checkmk_kube_agent >
kube.json
jq -s '.[0] * .[1] * .[2]' cma.json cmk.json kube.json > all_werks.json
jq --sort-keys . all_werks.json > /tmp/collect.json
git diff /tmp/web.json /tmp/collect.json
the dependency `GitPython` was already installed as it is a dependency
of bandit, but it has to be explicitly defined as dev dependency.
CMK-12815
Change-Id: I186a1f76af4c86de61e34f77862981c0d9fac185
Compare:
https://github.com/Checkmk/checkmk/compare/3d01e90e6993...47e90d9700f0