Branch: refs/heads/master
Home:
https://github.com/Checkmk/checkmk
Commit: 62f933c01b4349c854f9a2fa441e1ca73eb1eda1
https://github.com/Checkmk/checkmk/commit/62f933c01b4349c854f9a2fa441e1ca73…
Author: Lars Michelsen <lm(a)checkmk.com>
Date: 2024-05-16 (Thu, 16 May 2024)
Changed paths:
M tests/conftest.py
M tests/testlib/utils.py
Log Message:
-----------
Cleanup subprocess call during pytest startup
We want to ensure that pytest is always executed within the virtual environment.
The previous approach executed a shell script and pipenv which is time intense.
With the new approach we directly check the python environment. This saves us
a second in each pytest invocation.
Change-Id: I8cfd50d1519c282ae072f0b0606e2c5e87952afd
Commit: 9947c8400d103651c7aad1e8698c00c8668ebf57
https://github.com/Checkmk/checkmk/commit/9947c8400d103651c7aad1e8698c00c86…
Author: Lars Michelsen <lm(a)checkmk.com>
Date: 2024-05-16 (Thu, 16 May 2024)
Changed paths:
M tests/unit/cmk/gui/conftest.py
M tests/unit/cmk/gui/test_dashboard.py
M tests/unit/cmk/gui/test_permissions.py
Log Message:
-----------
Simplify registry reset fixtures
Remove the global fixtures registry_list and reset_gui_registries and
use locally defined fixtures.
Change-Id: Ic2458144c3bd4117b65c193471e32173850431f7
Commit: 38be5ba84f7cb81d7a708325e7ef81f8d4ccc04d
https://github.com/Checkmk/checkmk/commit/38be5ba84f7cb81d7a708325e7ef81f8d…
Author: Lars Michelsen <lm(a)checkmk.com>
Date: 2024-05-16 (Thu, 16 May 2024)
Changed paths:
M pyproject.toml
Log Message:
-----------
Disable a few plugins which slow down the pytest startup even when not used
The pytest plugins being available in our virtualenv are automatically
discovered and loaded. The faker, schemathesis and hypothesis plugins
are such. Even when we don't use them, they consume quite some time
on pytest startup which slows down even pytest calls executing one test
case significantly.
For example the command `time pytest tests/unit/test_validatedstr.py`
took ~2.2 seconds vs. ~1.5 seconds after the change.
Change-Id: I974da95f73a1ea56d9a7b17cf56787294c21971c
Compare:
https://github.com/Checkmk/checkmk/compare/67df7cecd0d2...38be5ba84f7c
To unsubscribe from these emails, change your notification settings at
https://github.com/Checkmk/checkmk/settings/notifications