Branch: refs/heads/master
Home: https://github.com/tribe29/checkmk
Commit: 42310d92d6b5c0f2a54b09f657e87cec03ab280d
https://github.com/tribe29/checkmk/commit/42310d92d6b5c0f2a54b09f657e87cec0…
Author: Joerg Herbel <joerg.herbel(a)tribe29.com>
Date: 2020-10-20 (Tue, 20 Oct 2020)
Changed paths:
M cmk/gui/watolib/search.py
Log Message:
-----------
Re-build search index when missing
When attempting to load the search index but the file is missing (for
example because the tmpfs was unmounted), we re-build the full index.
CMK-5947
Change-Id: Ifb05fde21f213363fd3cfd9792aa27a3b309407a
Branch: refs/heads/test_weblate2
Home: https://github.com/tribe29/checkmk
Commit: afd35815ccf28ef2ab138647eb6f142174a74f75
https://github.com/tribe29/checkmk/commit/afd35815ccf28ef2ab138647eb6f14217…
Author: Joerg Herbel <joerg.herbel(a)tribe29.com>
Date: 2020-10-20 (Tue, 20 Oct 2020)
Changed paths:
M cmk/gui/wato/pages/diagnostics.py
M cmk/gui/wato/pages/fetch_agent_output.py
M cmk/gui/wato/pages/folders.py
M cmk/gui/wato/pages/global_settings.py
M cmk/gui/wato/pages/host_rename.py
M cmk/gui/wato/pages/hosts.py
M cmk/gui/wato/pages/ldap.py
M cmk/gui/wato/pages/notifications.py
M cmk/gui/wato/pages/pattern_editor.py
M cmk/gui/wato/pages/predefined_conditions.py
M cmk/gui/wato/pages/rulesets.py
M cmk/gui/wato/pages/sites.py
M cmk/gui/wato/pages/users.py
M cmk/gui/wato/user_profile.py
M cmk/gui/watolib/rulespecs.py
M cmk/gui/werks.py
M cmk/gui/wsgi/applications/checkmk.py
Log Message:
-----------
Replace call sites of cmk.gui.htmllib.HTML.makeuri*, part 4/5
* cmk.gui.htmllib.HTML.makeuri --> cmk.gui.utils.urls.makeuri
* cmk.gui.htmllib.HTML.makeuri_contextless -->
cmk.gui.utils.urls.makeuri_contextless
CMK-5885
Change-Id: Iff7ee639f1d27c7c1c5f0d0ca00f9ab297550ad3
Commit: b8dc5d57b76ad6e1561149aa634e3b514df2eb62
https://github.com/tribe29/checkmk/commit/b8dc5d57b76ad6e1561149aa634e3b514…
Author: Tom Baerwinkel <tom.baerwinkel(a)tribe29.com>
Date: 2020-10-20 (Tue, 20 Oct 2020)
Changed paths:
M web/htdocs/themes/facelift/scss/_page_menu.scss
M web/htdocs/themes/modern-dark/scss/_variables.scss
Log Message:
-----------
Align styling of suggested buttons with mockups
Change-Id: I06ef8f74b0e0aa021864435aefd6d2c349f7b95b
Commit: 3dbc76787c50ab24ad3a61069328501eee1c2fbf
https://github.com/tribe29/checkmk/commit/3dbc76787c50ab24ad3a61069328501ee…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2020-10-20 (Tue, 20 Oct 2020)
Changed paths:
M cmk/gui/wato/pages/tags.py
Log Message:
-----------
Fixed wrong link on tag config page
CMK-5804
Change-Id: I97f8b48fe1f4f11748f4a80a31b71c5026932814
Commit: a214ab657cd9c09372547095f8db481c4b9546fd
https://github.com/tribe29/checkmk/commit/a214ab657cd9c09372547095f8db481c4…
Author: Mathias Laurin <mathias.laurin(a)tribe29.com>
Date: 2020-10-20 (Tue, 20 Oct 2020)
Changed paths:
M cmk/utils/cpu_tracking.py
Log Message:
-----------
cpu_tracking: Renaming / shorten variable names
Change-Id: Idf99dce114616fdda703dade2f9955843cd97379
Commit: 372789b8ccb2c993f3d2ea97e3db210ec7e165f9
https://github.com/tribe29/checkmk/commit/372789b8ccb2c993f3d2ea97e3db210ec…
Author: Mathias Laurin <mathias.laurin(a)tribe29.com>
Date: 2020-10-20 (Tue, 20 Oct 2020)
Changed paths:
M cmk/utils/cpu_tracking.py
Log Message:
-----------
cpu_tracking: Remove one side effect
Change-Id: I5b406514440eeeb88b0289d757823e715b8a1370
Commit: 0ad95ce95a39a1cc230f201f83d7f8e27cf23073
https://github.com/tribe29/checkmk/commit/0ad95ce95a39a1cc230f201f83d7f8e27…
Author: Mathias Laurin <mathias.laurin(a)tribe29.com>
Date: 2020-10-20 (Tue, 20 Oct 2020)
Changed paths:
M cmk/utils/cpu_tracking.py
M tests/unit/cmk/utils/test_cpu_tracking.py
Log Message:
-----------
cpu_tracking: is_not_tracking -> not is_tracking
This removes the possibility of a double negation and simplifies the
code slightly.
CMK-5920
Change-Id: Ib17ba1701927dd318ba9a12e802153ef20d3de6f
Commit: d323fb43deaefa18caf39294d4a9cf0bc054f489
https://github.com/tribe29/checkmk/commit/d323fb43deaefa18caf39294d4a9cf0bc…
Author: Lisa Pichler <lisa.pichler(a)tribe29.com>
Date: 2020-10-20 (Tue, 20 Oct 2020)
Changed paths:
M .werks/11325
Log Message:
-----------
11325 werk: fix checkmk version number
Change-Id: I4d22a1f06607be8c7055104cc82b5437b474a783
Commit: 44b5748b0c1040d0adc9ede4af94e7a4115ab7e2
https://github.com/tribe29/checkmk/commit/44b5748b0c1040d0adc9ede4af94e7a41…
Author: Óscar Nájera <oscar.najera(a)tribe29.com>
Date: 2020-10-20 (Tue, 20 Oct 2020)
Changed paths:
M cmk/gui/plugins/dashboard/graph.py
Log Message:
-----------
Use prepend_site context manager
Change-Id: I0a67878576e68f8d4a232171d900d96075275916
Commit: c192e3837383fb262594938a76c9e584ca89a802
https://github.com/tribe29/checkmk/commit/c192e3837383fb262594938a76c9e584c…
Author: Moritz Kiemer <moritz.kiemer(a)tribe29.com>
Date: 2020-10-20 (Tue, 20 Oct 2020)
Changed paths:
M checks/netapp_api_volumes
M tests/unit/checks/generictests/datasets/netapp_api_volumes.py
Log Message:
-----------
netapp_api_volumes: refactor
Change-Id: I5b8b628e6c4cdda7a5486ea2a8a4859a6145267b
Commit: 025cd7aa2742f033a98b2cf78b755dcbabac6bab
https://github.com/tribe29/checkmk/commit/025cd7aa2742f033a98b2cf78b755dcba…
Author: Joerg Herbel <joerg.herbel(a)tribe29.com>
Date: 2020-10-20 (Tue, 20 Oct 2020)
Changed paths:
M .werks/11325
M checks/netapp_api_volumes
M cmk/gui/plugins/dashboard/graph.py
M cmk/gui/wato/pages/diagnostics.py
M cmk/gui/wato/pages/fetch_agent_output.py
M cmk/gui/wato/pages/folders.py
M cmk/gui/wato/pages/global_settings.py
M cmk/gui/wato/pages/host_rename.py
M cmk/gui/wato/pages/hosts.py
M cmk/gui/wato/pages/ldap.py
M cmk/gui/wato/pages/notifications.py
M cmk/gui/wato/pages/pattern_editor.py
M cmk/gui/wato/pages/predefined_conditions.py
M cmk/gui/wato/pages/rulesets.py
M cmk/gui/wato/pages/sites.py
M cmk/gui/wato/pages/tags.py
M cmk/gui/wato/pages/users.py
M cmk/gui/wato/user_profile.py
M cmk/gui/watolib/rulespecs.py
M cmk/gui/werks.py
M cmk/gui/wsgi/applications/checkmk.py
M cmk/utils/cpu_tracking.py
M tests/unit/checks/generictests/datasets/netapp_api_volumes.py
M tests/unit/cmk/utils/test_cpu_tracking.py
M web/htdocs/themes/facelift/scss/_page_menu.scss
M web/htdocs/themes/modern-dark/scss/_variables.scss
Log Message:
-----------
Merge branch 'master' into test_weblate2
Change-Id: I034b78018d35a8bb497e19996e7b7550f101f7eb
Compare: https://github.com/tribe29/checkmk/compare/a4f93899e659...025cd7aa2742
Branch: refs/heads/master
Home: https://github.com/tribe29/checkmk
Commit: afd35815ccf28ef2ab138647eb6f142174a74f75
https://github.com/tribe29/checkmk/commit/afd35815ccf28ef2ab138647eb6f14217…
Author: Joerg Herbel <joerg.herbel(a)tribe29.com>
Date: 2020-10-20 (Tue, 20 Oct 2020)
Changed paths:
M cmk/gui/wato/pages/diagnostics.py
M cmk/gui/wato/pages/fetch_agent_output.py
M cmk/gui/wato/pages/folders.py
M cmk/gui/wato/pages/global_settings.py
M cmk/gui/wato/pages/host_rename.py
M cmk/gui/wato/pages/hosts.py
M cmk/gui/wato/pages/ldap.py
M cmk/gui/wato/pages/notifications.py
M cmk/gui/wato/pages/pattern_editor.py
M cmk/gui/wato/pages/predefined_conditions.py
M cmk/gui/wato/pages/rulesets.py
M cmk/gui/wato/pages/sites.py
M cmk/gui/wato/pages/users.py
M cmk/gui/wato/user_profile.py
M cmk/gui/watolib/rulespecs.py
M cmk/gui/werks.py
M cmk/gui/wsgi/applications/checkmk.py
Log Message:
-----------
Replace call sites of cmk.gui.htmllib.HTML.makeuri*, part 4/5
* cmk.gui.htmllib.HTML.makeuri --> cmk.gui.utils.urls.makeuri
* cmk.gui.htmllib.HTML.makeuri_contextless -->
cmk.gui.utils.urls.makeuri_contextless
CMK-5885
Change-Id: Iff7ee639f1d27c7c1c5f0d0ca00f9ab297550ad3
Commit: b8dc5d57b76ad6e1561149aa634e3b514df2eb62
https://github.com/tribe29/checkmk/commit/b8dc5d57b76ad6e1561149aa634e3b514…
Author: Tom Baerwinkel <tom.baerwinkel(a)tribe29.com>
Date: 2020-10-20 (Tue, 20 Oct 2020)
Changed paths:
M web/htdocs/themes/facelift/scss/_page_menu.scss
M web/htdocs/themes/modern-dark/scss/_variables.scss
Log Message:
-----------
Align styling of suggested buttons with mockups
Change-Id: I06ef8f74b0e0aa021864435aefd6d2c349f7b95b
Commit: 3dbc76787c50ab24ad3a61069328501eee1c2fbf
https://github.com/tribe29/checkmk/commit/3dbc76787c50ab24ad3a61069328501ee…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2020-10-20 (Tue, 20 Oct 2020)
Changed paths:
M cmk/gui/wato/pages/tags.py
Log Message:
-----------
Fixed wrong link on tag config page
CMK-5804
Change-Id: I97f8b48fe1f4f11748f4a80a31b71c5026932814
Compare: https://github.com/tribe29/checkmk/compare/5cfddf5bea12...3dbc76787c50
Branch: refs/heads/master
Home: https://github.com/tribe29/checkmk
Commit: 7c282d899b14bff4ef194915d6882adc2c9ac813
https://github.com/tribe29/checkmk/commit/7c282d899b14bff4ef194915d6882adc2…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2020-10-20 (Tue, 20 Oct 2020)
Changed paths:
M Pipfile
M Pipfile.lock
Log Message:
-----------
Remove now unused pyfakefs
See 86516bbc4ec8d0610bdd94f2e3e745ca8a5c27cc for further information.
Change-Id: Ie602f956c91a1f17411ab4ff0710c5fb1b666ea6
Commit: 46ed8bf1396cafc6983c407dd0b6b1091e466fd6
https://github.com/tribe29/checkmk/commit/46ed8bf1396cafc6983c407dd0b6b1091…
Author: Joerg Herbel <joerg.herbel(a)tribe29.com>
Date: 2020-10-20 (Tue, 20 Oct 2020)
Changed paths:
M cmk/gui/availability.py
M cmk/gui/backup.py
M cmk/gui/bi.py
M cmk/gui/crash_reporting.py
M cmk/gui/dashboard.py
M cmk/gui/gui_background_job.py
M cmk/gui/key_mgmt.py
M cmk/gui/login.py
M cmk/gui/logwatch.py
M cmk/gui/main.py
M cmk/gui/mobile.py
M cmk/gui/notify.py
M cmk/gui/page_menu.py
M cmk/gui/pagetypes.py
M cmk/gui/plugins/dashboard/event_bar_chart_dashlet.py
M cmk/gui/plugins/dashboard/failed_notifications.py
M cmk/gui/plugins/dashboard/stats.py
Log Message:
-----------
Replace call sites of cmk.gui.htmllib.HTML.makeuri*, part 1/5
* cmk.gui.htmllib.HTML.makeuri --> cmk.gui.utils.urls.makeuri
* cmk.gui.htmllib.HTML.makeuri_contextless -->
cmk.gui.utils.urls.makeuri_contextless
CMK-5885
Change-Id: I8d6d9757381e6b966bc7c09b649e41f802b56f30
Commit: 5cfddf5bea121b531910e49ee639d457ff5e768b
https://github.com/tribe29/checkmk/commit/5cfddf5bea121b531910e49ee639d457f…
Author: Joerg Herbel <joerg.herbel(a)tribe29.com>
Date: 2020-10-20 (Tue, 20 Oct 2020)
Changed paths:
M cmk/gui/plugins/wato/background_job.py
M cmk/gui/plugins/wato/bi_config.py
M cmk/gui/plugins/wato/check_mk_configuration.py
M cmk/gui/plugins/wato/utils/base_modes.py
M cmk/gui/plugins/wato/utils/context_buttons.py
M cmk/gui/plugins/wato/utils/simple_modes.py
M cmk/gui/sidebar.py
M cmk/gui/table.py
M cmk/gui/userdb.py
M cmk/gui/valuespec.py
M cmk/gui/view_utils.py
M cmk/gui/views.py
M cmk/gui/visuals.py
M cmk/gui/wato/mkeventd.py
M cmk/gui/wato/pages/activate_changes.py
M cmk/gui/wato/pages/check_catalog.py
M cmk/gui/wato/pages/custom_attributes.py
Log Message:
-----------
Replace call sites of cmk.gui.htmllib.HTML.makeuri*, part 3/5
* cmk.gui.htmllib.HTML.makeuri --> cmk.gui.utils.urls.makeuri
* cmk.gui.htmllib.HTML.makeuri_contextless -->
cmk.gui.utils.urls.makeuri_contextless
CMK-5885
Change-Id: I8442171575112b60b3c594dba97fdbe85152a236
Compare: https://github.com/tribe29/checkmk/compare/86516bbc4ec8...5cfddf5bea12
Branch: refs/heads/test_weblate2
Home: https://github.com/tribe29/checkmk
Commit: 38c682617fb34c64aa4eef96513cc3449159d09a
https://github.com/tribe29/checkmk/commit/38c682617fb34c64aa4eef96513cc3449…
Author: Lukas Lengler <lukas.lengler(a)tribe29.com>
Date: 2020-10-19 (Mon, 19 Oct 2020)
Changed paths:
M cmk/gui/plugins/wato/check_mk_configuration.py
Log Message:
-----------
Fix GUI Crawl (removed %s)
Change-Id: Ifcfad658a7d6a48d86523b93db51e533d97c942b
Commit: 8df2d3bfe1eebfe992a949bde5a6e50ff255a41f
https://github.com/tribe29/checkmk/commit/8df2d3bfe1eebfe992a949bde5a6e50ff…
Author: Lisa Pichler <lisa.pichler(a)tribe29.com>
Date: 2020-10-19 (Mon, 19 Oct 2020)
Changed paths:
M checks/heartbeat_crm
Log Message:
-----------
heartbeat_crm: refactored general parse function
Change-Id: Icec5b473df224bdc52d34498f1c17ed53b11a86f
Commit: e10924be3d574867b2769bf5c40c73f63785cb6c
https://github.com/tribe29/checkmk/commit/e10924be3d574867b2769bf5c40c73f63…
Author: Mathias Laurin <mathias.laurin(a)tribe29.com>
Date: 2020-10-19 (Mon, 19 Oct 2020)
Changed paths:
M cmk/base/checking.py
M cmk/fetchers/controller.py
M cmk/utils/cpu_tracking.py
M tests/unit/cmk/utils/test_cpu_tracking.py
Log Message:
-----------
cpu_tracking: name snapshot
Before, the snapshot were saved as lists of floats. We improve the type
safety and clarify the code by giving these floats names. This further
let's us add some simple arithmetic to the new Snapshot class to clarify
the call sites.
CMK-5920
Change-Id: Ie97c1863b7de5254a03c45c08cad4d8766c75c23
Commit: 7e2aaa34260027bd5f207d99b464199ae12d78fe
https://github.com/tribe29/checkmk/commit/7e2aaa34260027bd5f207d99b464199ae…
Author: Mathias Laurin <mathias.laurin(a)tribe29.com>
Date: 2020-10-19 (Mon, 19 Oct 2020)
Changed paths:
M cmk/utils/cpu_tracking.py
Log Message:
-----------
cpu_tracking: Simplify code with defaultdict
CMK-5920
Change-Id: I3ca2c49d163cc80ee97b72cde71d151969fe93dd
Commit: 21c124e18751f50d49433acc0249e96baebffb18
https://github.com/tribe29/checkmk/commit/21c124e18751f50d49433acc0249e96ba…
Author: Mathias Laurin <mathias.laurin(a)tribe29.com>
Date: 2020-10-19 (Mon, 19 Oct 2020)
Changed paths:
M cmk/utils/cpu_tracking.py
Log Message:
-----------
cpu_tracking: Use list methods
The code becomes higher level.
CMK-5920
Change-Id: I36d3f40ac2b8b939b9d38115df4c45dd8e8d2ffb
Commit: 80e4217d25e7437f01fd1f85e8590c934a0d1f89
https://github.com/tribe29/checkmk/commit/80e4217d25e7437f01fd1f85e8590c934…
Author: Mathias Laurin <mathias.laurin(a)tribe29.com>
Date: 2020-10-19 (Mon, 19 Oct 2020)
Changed paths:
M cmk/utils/_type_defs_result.py
Log Message:
-----------
Result.fold(): Add a missing resturn type
Change-Id: Iea30f6a9d2e5b8ca9c08f63090660abee3e9e41e
Commit: 2bfd986df105fdbcc388dfa9c91a96abc37f4154
https://github.com/tribe29/checkmk/commit/2bfd986df105fdbcc388dfa9c91a96abc…
Author: Moritz Kiemer <moritz.kiemer(a)tribe29.com>
Date: 2020-10-19 (Mon, 19 Oct 2020)
Changed paths:
M checks/tcp_conn_stats
A cmk/base/plugins/agent_based/tcp_conn_stats.py
Log Message:
-----------
tcp_conn_stats: migrate section
Change-Id: Ic91f6fcc0ec1d865c98db95a8f546642b0ab68a5
Commit: 67c23cf373c179b60cec21d54f4c5e8a898dea23
https://github.com/tribe29/checkmk/commit/67c23cf373c179b60cec21d54f4c5e8a8…
Author: Moritz Kiemer <moritz.kiemer(a)tribe29.com>
Date: 2020-10-19 (Mon, 19 Oct 2020)
Changed paths:
R checks/tcp_conn_stats
M cmk/base/check_legacy_includes/tcp_connections.py
M cmk/base/plugins/agent_based/tcp_conn_stats.py
M tests/unit/checks/test_generic_legacy_conversion.py
Log Message:
-----------
tcp_conn_stats: migrate check plugin
Change-Id: Ifd33c25e4e0a38c6860e0628091feda1bbc4dd07
Commit: 92f3171e23465dcdc00185e2e027aaae00f0c9e0
https://github.com/tribe29/checkmk/commit/92f3171e23465dcdc00185e2e027aaae0…
Author: Moritz Kiemer <moritz.kiemer(a)tribe29.com>
Date: 2020-10-19 (Mon, 19 Oct 2020)
Changed paths:
R checks/winperf_tcp_conn
M cmk/base/plugins/agent_based/tcp_conn_stats.py
A cmk/base/plugins/agent_based/utils/tcp_connections.py
A cmk/base/plugins/agent_based/winperf_tcp_conn.py
M cmk/update_config.py
R tests/unit/checks/generictests/datasets/winperf_tcp_conn_regression.py
M tests/unit/checks/test_generic_legacy_conversion.py
A tests/unit/cmk/base/plugins/agent_based/test_tcp_conn_stats.py
Log Message:
-----------
winperf_tcp_conn: migrate section
Change-Id: Icb861b2219929de76ccf427d80c65d7c97c647c1
Commit: 629e8e21d6fb77089c89d3dbf9df2374cbc90430
https://github.com/tribe29/checkmk/commit/629e8e21d6fb77089c89d3dbf9df2374c…
Author: Moritz Kiemer <moritz.kiemer(a)tribe29.com>
Date: 2020-10-19 (Mon, 19 Oct 2020)
Changed paths:
M cmk/base/plugins/agent_based/tcp_conn_stats.py
M cmk/base/plugins/agent_based/utils/tcp_connections.py
Log Message:
-----------
tcp_conn_stats: move stuff to utils
Change-Id: I602f1058605475fe4fbb11f9d9b2a73fa5fcad85
Commit: 0b3595b67f51716d00c34e154e1a7592345fc4d3
https://github.com/tribe29/checkmk/commit/0b3595b67f51716d00c34e154e1a75923…
Author: Moritz Kiemer <moritz.kiemer(a)tribe29.com>
Date: 2020-10-19 (Mon, 19 Oct 2020)
Changed paths:
R checks/datapower_tcp
M cmk/base/check_legacy_includes/datapower_scan.py
R cmk/base/check_legacy_includes/tcp_connections.py
A cmk/base/plugins/agent_based/datapower_tcp.py
A cmk/base/plugins/agent_based/utils/datapower.py
M cmk/update_config.py
R tests/unit/checks/generictests/datasets/datapower_tcp_regression.py
M tests/unit/checks/test_generic_legacy_conversion.py
Log Message:
-----------
migrate datapower_tcp
Change-Id: I41489b04de5633b298a314aba86e9d1ec9a3fe31
Commit: 20f9eced862cd1cfb217d3098259bb49c4fbaf8e
https://github.com/tribe29/checkmk/commit/20f9eced862cd1cfb217d3098259bb49c…
Author: Moritz Kiemer <moritz.kiemer(a)tribe29.com>
Date: 2020-10-19 (Mon, 19 Oct 2020)
Changed paths:
M cmk/gui/plugins/wato/check_mk_configuration.py
Log Message:
-----------
fix formatting
Change-Id: Iad62c37418dd12817af1de9731672f6ff9c7d276
Commit: 43f690ff629aabe076ad74627e2b7da30696cee1
https://github.com/tribe29/checkmk/commit/43f690ff629aabe076ad74627e2b7da30…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2020-10-20 (Tue, 20 Oct 2020)
Changed paths:
M tests/unit/cmk/base/checkers/test_cmd_caching.py
Log Message:
-----------
Additional inventory test improvement
One more caching test does not need to execute the plugins.
Change-Id: Iafda99392c3c567826099b74bdd1d80ec617eea3
Commit: 86516bbc4ec8d0610bdd94f2e3e745ca8a5c27cc
https://github.com/tribe29/checkmk/commit/86516bbc4ec8d0610bdd94f2e3e745ca8…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2020-10-20 (Tue, 20 Oct 2020)
Changed paths:
M omd/packages/omd/omdlib/contexts.py
M omd/packages/omd/omdlib/main.py
M omd/packages/omd/omdlib/utils.py
M tests/unit/cmk/base/checkers/test_agent.py
M tests/unit/cmk/fetchers/test_fetchers.py
M tests/unit/cmk/gui/watolib/test_hosts_and_folders.py
M tests/unit/omdlib/test_omdlib_main.py
Log Message:
-----------
Replace pyfakefs calls with way faster pytest standard fixture
pyfakefs looked like a handy tool, but has important drawbacks:
The pyfakefs fixture is very resource hungy. The Patcher searches all
modules registered to sys.modules for access to IO functions and patches
them. In our test environment the pyfakefs fixture setup phase was
consuming half of the test execution time.
To improve this, we'll have to replace all possible uses of pyfakefs.
Especially the call sites that just need access to some dirctories or
files in a temporary directoy can easily be replaced with the standard
pytest tmp_path fixture.
For the other call sites, which really want to access hard coded system
wide paths, these are the OMD tests, we had to introduce some dynamic
path prefix. This allows us to replace pyfakefs also in for these tests
without having to refactor larger parts of the OMD code.
With this change we are now down to 2(!!) minutes with our whole
collection of unit test
```
> time pytest -T unit tests/unit/
========================================= test session starts =========================================
platform linux -- Python 3.8.5, pytest-6.1.1, py-1.9.0, pluggy-0.13.1
rootdir: /home/lm/git/checkmk, configfile: pytest.ini
plugins: testmon-1.0.3, mock-3.3.1, cov-2.10.1, profiling-1.7.0, pyfakefs-4.1.0, requests-mock-1.8.0
collected 7808 items
(...)
====================== 7794 passed, 14 skipped, 35 warnings in 113.32s (0:01:53) ======================
real 1m56,275s
user 1m18,824s
sys 0m14,788s
```
Change-Id: I3d53303830ba6103035d4e293b045dd750ad978f
Commit: 5c4b05123077edcfcef35f8c0d4b49b03feb01aa
https://github.com/tribe29/checkmk/commit/5c4b05123077edcfcef35f8c0d4b49b03…
Author: Weblate Transfer job <weblate(a)checkmk.com>
Date: 2020-10-20 (Tue, 20 Oct 2020)
Changed paths:
M locale/multisite.pot
Log Message:
-----------
Updated multisite.pot
Change-Id: If105121d356f8bf4dc184d071ae61c11148f91fa
Commit: 7c282d899b14bff4ef194915d6882adc2c9ac813
https://github.com/tribe29/checkmk/commit/7c282d899b14bff4ef194915d6882adc2…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2020-10-20 (Tue, 20 Oct 2020)
Changed paths:
M Pipfile
M Pipfile.lock
Log Message:
-----------
Remove now unused pyfakefs
See 86516bbc4ec8d0610bdd94f2e3e745ca8a5c27cc for further information.
Change-Id: Ie602f956c91a1f17411ab4ff0710c5fb1b666ea6
Commit: 46ed8bf1396cafc6983c407dd0b6b1091e466fd6
https://github.com/tribe29/checkmk/commit/46ed8bf1396cafc6983c407dd0b6b1091…
Author: Joerg Herbel <joerg.herbel(a)tribe29.com>
Date: 2020-10-20 (Tue, 20 Oct 2020)
Changed paths:
M cmk/gui/availability.py
M cmk/gui/backup.py
M cmk/gui/bi.py
M cmk/gui/crash_reporting.py
M cmk/gui/dashboard.py
M cmk/gui/gui_background_job.py
M cmk/gui/key_mgmt.py
M cmk/gui/login.py
M cmk/gui/logwatch.py
M cmk/gui/main.py
M cmk/gui/mobile.py
M cmk/gui/notify.py
M cmk/gui/page_menu.py
M cmk/gui/pagetypes.py
M cmk/gui/plugins/dashboard/event_bar_chart_dashlet.py
M cmk/gui/plugins/dashboard/failed_notifications.py
M cmk/gui/plugins/dashboard/stats.py
Log Message:
-----------
Replace call sites of cmk.gui.htmllib.HTML.makeuri*, part 1/5
* cmk.gui.htmllib.HTML.makeuri --> cmk.gui.utils.urls.makeuri
* cmk.gui.htmllib.HTML.makeuri_contextless -->
cmk.gui.utils.urls.makeuri_contextless
CMK-5885
Change-Id: I8d6d9757381e6b966bc7c09b649e41f802b56f30
Commit: 5cfddf5bea121b531910e49ee639d457ff5e768b
https://github.com/tribe29/checkmk/commit/5cfddf5bea121b531910e49ee639d457f…
Author: Joerg Herbel <joerg.herbel(a)tribe29.com>
Date: 2020-10-20 (Tue, 20 Oct 2020)
Changed paths:
M cmk/gui/plugins/wato/background_job.py
M cmk/gui/plugins/wato/bi_config.py
M cmk/gui/plugins/wato/check_mk_configuration.py
M cmk/gui/plugins/wato/utils/base_modes.py
M cmk/gui/plugins/wato/utils/context_buttons.py
M cmk/gui/plugins/wato/utils/simple_modes.py
M cmk/gui/sidebar.py
M cmk/gui/table.py
M cmk/gui/userdb.py
M cmk/gui/valuespec.py
M cmk/gui/view_utils.py
M cmk/gui/views.py
M cmk/gui/visuals.py
M cmk/gui/wato/mkeventd.py
M cmk/gui/wato/pages/activate_changes.py
M cmk/gui/wato/pages/check_catalog.py
M cmk/gui/wato/pages/custom_attributes.py
Log Message:
-----------
Replace call sites of cmk.gui.htmllib.HTML.makeuri*, part 3/5
* cmk.gui.htmllib.HTML.makeuri --> cmk.gui.utils.urls.makeuri
* cmk.gui.htmllib.HTML.makeuri_contextless -->
cmk.gui.utils.urls.makeuri_contextless
CMK-5885
Change-Id: I8442171575112b60b3c594dba97fdbe85152a236
Commit: a4f93899e6593b56b18d3bbd8db5d1e35582d4a3
https://github.com/tribe29/checkmk/commit/a4f93899e6593b56b18d3bbd8db5d1e35…
Author: Joerg Herbel <joerg.herbel(a)tribe29.com>
Date: 2020-10-20 (Tue, 20 Oct 2020)
Changed paths:
M Pipfile
M Pipfile.lock
R checks/datapower_tcp
M checks/heartbeat_crm
R checks/tcp_conn_stats
R checks/winperf_tcp_conn
M cmk/base/check_legacy_includes/datapower_scan.py
R cmk/base/check_legacy_includes/tcp_connections.py
M cmk/base/checking.py
A cmk/base/plugins/agent_based/datapower_tcp.py
A cmk/base/plugins/agent_based/tcp_conn_stats.py
A cmk/base/plugins/agent_based/utils/datapower.py
A cmk/base/plugins/agent_based/utils/tcp_connections.py
A cmk/base/plugins/agent_based/winperf_tcp_conn.py
M cmk/fetchers/controller.py
M cmk/gui/availability.py
M cmk/gui/backup.py
M cmk/gui/bi.py
M cmk/gui/crash_reporting.py
M cmk/gui/dashboard.py
M cmk/gui/gui_background_job.py
M cmk/gui/key_mgmt.py
M cmk/gui/login.py
M cmk/gui/logwatch.py
M cmk/gui/main.py
M cmk/gui/mobile.py
M cmk/gui/notify.py
M cmk/gui/page_menu.py
M cmk/gui/pagetypes.py
M cmk/gui/plugins/dashboard/event_bar_chart_dashlet.py
M cmk/gui/plugins/dashboard/failed_notifications.py
M cmk/gui/plugins/dashboard/stats.py
M cmk/gui/plugins/wato/background_job.py
M cmk/gui/plugins/wato/bi_config.py
M cmk/gui/plugins/wato/check_mk_configuration.py
M cmk/gui/plugins/wato/utils/base_modes.py
M cmk/gui/plugins/wato/utils/context_buttons.py
M cmk/gui/plugins/wato/utils/simple_modes.py
M cmk/gui/sidebar.py
M cmk/gui/table.py
M cmk/gui/userdb.py
M cmk/gui/valuespec.py
M cmk/gui/view_utils.py
M cmk/gui/views.py
M cmk/gui/visuals.py
M cmk/gui/wato/mkeventd.py
M cmk/gui/wato/pages/activate_changes.py
M cmk/gui/wato/pages/check_catalog.py
M cmk/gui/wato/pages/custom_attributes.py
M cmk/update_config.py
M cmk/utils/_type_defs_result.py
M cmk/utils/cpu_tracking.py
M omd/packages/omd/omdlib/contexts.py
M omd/packages/omd/omdlib/main.py
M omd/packages/omd/omdlib/utils.py
R tests/unit/checks/generictests/datasets/datapower_tcp_regression.py
R tests/unit/checks/generictests/datasets/winperf_tcp_conn_regression.py
M tests/unit/checks/test_generic_legacy_conversion.py
M tests/unit/cmk/base/checkers/test_agent.py
M tests/unit/cmk/base/checkers/test_cmd_caching.py
A tests/unit/cmk/base/plugins/agent_based/test_tcp_conn_stats.py
M tests/unit/cmk/fetchers/test_fetchers.py
M tests/unit/cmk/gui/watolib/test_hosts_and_folders.py
M tests/unit/cmk/utils/test_cpu_tracking.py
M tests/unit/omdlib/test_omdlib_main.py
Log Message:
-----------
Merge branch 'master' into test_weblate2
Change-Id: I077fd83d9362e182b655193c69c9450599ba1993
Compare: https://github.com/tribe29/checkmk/compare/6b110d5d55bd...a4f93899e659
Branch: refs/heads/master
Home: https://github.com/tribe29/checkmk
Commit: 43f690ff629aabe076ad74627e2b7da30696cee1
https://github.com/tribe29/checkmk/commit/43f690ff629aabe076ad74627e2b7da30…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2020-10-20 (Tue, 20 Oct 2020)
Changed paths:
M tests/unit/cmk/base/checkers/test_cmd_caching.py
Log Message:
-----------
Additional inventory test improvement
One more caching test does not need to execute the plugins.
Change-Id: Iafda99392c3c567826099b74bdd1d80ec617eea3
Commit: 86516bbc4ec8d0610bdd94f2e3e745ca8a5c27cc
https://github.com/tribe29/checkmk/commit/86516bbc4ec8d0610bdd94f2e3e745ca8…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2020-10-20 (Tue, 20 Oct 2020)
Changed paths:
M omd/packages/omd/omdlib/contexts.py
M omd/packages/omd/omdlib/main.py
M omd/packages/omd/omdlib/utils.py
M tests/unit/cmk/base/checkers/test_agent.py
M tests/unit/cmk/fetchers/test_fetchers.py
M tests/unit/cmk/gui/watolib/test_hosts_and_folders.py
M tests/unit/omdlib/test_omdlib_main.py
Log Message:
-----------
Replace pyfakefs calls with way faster pytest standard fixture
pyfakefs looked like a handy tool, but has important drawbacks:
The pyfakefs fixture is very resource hungy. The Patcher searches all
modules registered to sys.modules for access to IO functions and patches
them. In our test environment the pyfakefs fixture setup phase was
consuming half of the test execution time.
To improve this, we'll have to replace all possible uses of pyfakefs.
Especially the call sites that just need access to some dirctories or
files in a temporary directoy can easily be replaced with the standard
pytest tmp_path fixture.
For the other call sites, which really want to access hard coded system
wide paths, these are the OMD tests, we had to introduce some dynamic
path prefix. This allows us to replace pyfakefs also in for these tests
without having to refactor larger parts of the OMD code.
With this change we are now down to 2(!!) minutes with our whole
collection of unit test
```
> time pytest -T unit tests/unit/
========================================= test session starts =========================================
platform linux -- Python 3.8.5, pytest-6.1.1, py-1.9.0, pluggy-0.13.1
rootdir: /home/lm/git/checkmk, configfile: pytest.ini
plugins: testmon-1.0.3, mock-3.3.1, cov-2.10.1, profiling-1.7.0, pyfakefs-4.1.0, requests-mock-1.8.0
collected 7808 items
(...)
====================== 7794 passed, 14 skipped, 35 warnings in 113.32s (0:01:53) ======================
real 1m56,275s
user 1m18,824s
sys 0m14,788s
```
Change-Id: I3d53303830ba6103035d4e293b045dd750ad978f
Compare: https://github.com/tribe29/checkmk/compare/20f9eced862c...86516bbc4ec8