tobiko/tobiko/common
Eduardo Olivares 7733488f00 Refactoring tobiko lockers
Tobiko has used the oslo_concurrency.lockutils.synchronized to lock
execution of functions inter-process/worker.
The synchronized decorator does not support to disable intra-worker
locks. This is a problem for tobiko because there are some functions
that need to be locked between different workers, but not inside
a worker.
Why?
- Tobiko execution (based on pytest) is multi-worker, but not
  multi-thread.
- The creation of Tobiko resources (which is what we need to lock
  to avoid concurrency issues between workers) sometimes depends on the
  creation of other Tobiko resources that are defined in either parent
  or child classes from the first ones, getting blocked due to the
  locks applied.

Change-Id: I0b1c2d707b585fd4e45cad9968c88cedf2932eed
2024-03-08 12:50:51 +00:00
..
__init__.py Remove copyrigth notices from empty __init__.py files 2018-11-27 09:45:36 +01:00
_background.py Write background process tool 2022-02-25 07:19:21 +00:00
_cached.py Implement cached property tool 2020-05-15 13:20:29 +02:00
_case.py Shelve name of tests using a heat stack 2022-12-01 12:12:42 +01:00
_config.py Use tobiko.conf directory as starting directory for relative paths 2020-01-30 14:28:15 +01:00
_detail.py Remove six from project dependencies 2021-10-28 03:42:14 +00:00
_exception.py Make sphinx to generate Tobiko API docs based on docstrings 2023-03-31 18:38:30 +02:00
_fixture.py Merge "Make ResourceFixtures configurable" 2023-09-29 12:13:31 +00:00
_ini.py Allow to parse io streams from open .ini files 2022-06-15 07:30:41 +00:00
_loader.py Simplify actor sub-class declaration 2022-03-05 07:00:45 +01:00
_lockutils.py Refactoring tobiko lockers 2024-03-08 12:50:51 +00:00
_logging.py Add timestamp, level and modulename to the format for capture log 2020-08-07 17:09:44 +02:00
_operation.py Skip often failing SameHostNetworkTest and DifferentHostNetworkTest scenario test cases 2020-12-07 05:00:18 +00:00
_os.py Create temporary files on the same directory of target file 2019-11-12 18:45:10 +01:00
_retry.py Add some logs with info about process retry loop 2023-10-18 11:33:21 +02:00
_select.py Add function select unique items from a sequence 2022-07-07 12:45:37 +02:00
_shelves.py Shelve name of tests using a heat stack 2022-12-01 12:12:42 +01:00
_skip.py Add wrapper to which command 2022-07-08 09:48:19 +02:00
_time.py Update time tools 2020-08-10 17:42:25 +02:00
_utils.py Fix looking for ovs agent based on compute node name 2020-04-27 13:50:16 +02:00
_version.py Make Tobiko to be working fine with packaging>=2.2.0 2022-12-20 14:51:43 +00:00
_yaml.py Use safe loader/dumper to load/dump YAMLs things 2021-10-25 13:28:07 +02:00