~nicolasbock/+git/hotsos-staging:parallel_testing

Last commit made on 2023-08-02
Get this branch:
git clone -b parallel_testing https://git.launchpad.net/~nicolasbock/+git/hotsos-staging

Branch merges

Branch information

Name:
parallel_testing
Repository:
lp:~nicolasbock/+git/hotsos-staging

Recent commits

9a669f8... by Nicolas Bock

Swith to parallel testing with `stestr`

Signed-off-by: Nicolas Bock <email address hidden>

ee439f1... by Edward Hope-Morley

Cleanup some cached properties

Cleans up properties that are using cached_property but also
using a variable to cache the value which is now redundant.

975bc4b... by Nicolas Bock

Wrap `open` in context manager

The current code uses base calls to `open`. Those should be wrapped in a
context manager so that they files are properly closed.

This change also replaces the "touch a file" pattern,

    open().close()

with the more appropriate

    filepath.Path().touch()

Signed-off-by: Nicolas Bock <email address hidden>

534e9ab... by Nicolas Bock

Print testfile content for debugging

This change adds a new environment variable, TESTS_LOG_TEST_ARTIFACTS,
which when set to `yes` will entice the tests to log the contents of the
files used in the tests. This can help in debugging scenarios in which
the input files are coded into the scenario itself.

Signed-off-by: Nicolas Bock <email address hidden>

e0c9856... by Mustafa Kemal Gilor

github-actions&tox: add non-utc timezone test run

the tests were only being run on UTC timezone which hides most
of the timezone problems the code potentially has. this patch extends
the existing `py3` tox environment to oass a non-utc timezone to the
test environment.

Fixes: #691

Signed-off-by: Mustafa Kemal Gilor <email address hidden>

42fd1e4... by Edward Hope-Morley

Update config and varops req type docs

7b9f225... by Nicolas Bock

Reorganize bash completion for deb support

Necessary prerequesite for adding bash completion for debian package
support. This change adds the completion script as an artifact to the
repository and makes the necessary changes in the snap definition to use
that artifcat.

Signed-off-by: Nicolas Bock <email address hidden>

f3f190a... by Edward Hope-Morley

Minor cleanup of issue/690 patch

79704c7... by Mustafa Kemal Gilor

host_helpers/systemd: proper timezone handling for `systemctl status` timestamps

the systemctl timestamps are suffixed with the source system's timezone,
and unfortunately the default format does not match with any international
standard formats. this code introduces proper timezone handling logic
to the `systemctl status` timestamp parsing code.

Signed-off-by: Mustafa Kemal Gilor <email address hidden>

237bfcd... by Mustafa Kemal Gilor

host_helpers/systemd: fix start_time does not respect timezone when reading from systemd status

the start_time method first tries to pull the start time info from system journal
which already accounts for the timestamp's timezone. if it fails, it falls back to
parsing `systemctl status --all` output and it ignores the specified timezone in the
timestamp, which causes it to treat time in the local timezone of the running system.
this patch fixes that.

Fixes #689

Signed-off-by: Mustafa Kemal Gilor <email address hidden>