Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test #1

Closed
wants to merge 171 commits into from
Closed

test #1

wants to merge 171 commits into from

Commits on Oct 4, 2023

  1. fix invalid read on disconnecting anonymous node

    Fixes: eclipse-bluechi#591
    
    When an anonymous node has been disconnected in the controller
    and the cleanup has been done, a log statement was made afterwards.
    This statement differed based on the node name. Since the node
    instance has been cleaned up (freed), but not set to NULL, valgrind
    reported this as an invalid read. Moved the log statements
    accordingly.
    
    Signed-off-by: Michael Engel <[email protected]>
    engelmi committed Oct 4, 2023
    Configuration menu
    Copy the full SHA
    787686e View commit details
    Browse the repository at this point in the history

Commits on Oct 9, 2023

  1. fixed api description for register method

    Signed-off-by: Michael Engel <[email protected]>
    engelmi committed Oct 9, 2023
    Configuration menu
    Copy the full SHA
    20f2f2b View commit details
    Browse the repository at this point in the history

Commits on Oct 10, 2023

  1. extend getting started documentation

    The getting started page now provides a guide to setup
    BlueChi for single and multiple nodes. Also, examples
    on how to use BlueChi have been added - from getting
    information using bluechictl to a full example of how
    to use BlueChi's proxy service feature.
    
    Signed-off-by: Michael Engel <[email protected]>
    engelmi committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    ed2c761 View commit details
    Browse the repository at this point in the history
  2. Rename bluechi RPM to bluechi-controller (eclipse-bluechi#597)

    Renames bluechi RPM to bluechi-controller, which better describes the
    content of the package.
    
    Signed-off-by: Martin Perina <[email protected]>
    mwperina authored Oct 10, 2023
    Configuration menu
    Copy the full SHA
    ce7e325 View commit details
    Browse the repository at this point in the history

Commits on Oct 11, 2023

  1. Move snapshot COPR repo under centos-sig-automotive group

    Moves bluechi snapshot builds from mperina/hirte-snapshot repo to
    @centos-sig-automotive/bluechi-snapshot repo.
    
    Signed-off-by: Martin Perina <[email protected]>
    mwperina authored and alexlarsson committed Oct 11, 2023
    Configuration menu
    Copy the full SHA
    8f3785f View commit details
    Browse the repository at this point in the history
  2. close fd in create_tcp_socket

    In the error cases in this function a file descriptor is getting leaked,
    use steal_fd and cleanup_fd to alleviate this. Found by gcc's
    -fanalyzer.
    
    Signed-off-by: Eric Curtin <[email protected]>
    ericcurtin authored and engelmi committed Oct 11, 2023
    Configuration menu
    Copy the full SHA
    e5439cc View commit details
    Browse the repository at this point in the history
  3. Containerize RPM build to ensure CentOS-Stream9 RPMs

    Add skipper environment configuration
    Skip git config operation when running the containerized build
    Add strato-skipper to the requirements.txt file
    Update the tests README
    
    Signed-off-by: Ygal Blum <[email protected]>
    ygalblum authored and mkemel committed Oct 11, 2023
    Configuration menu
    Copy the full SHA
    e1aa265 View commit details
    Browse the repository at this point in the history

Commits on Oct 13, 2023

  1. Configuration menu
    Copy the full SHA
    473d67b View commit details
    Browse the repository at this point in the history

Commits on Oct 16, 2023

  1. update architecture overview diagram

    The current architecture overview of BlueChi uses
    bluechi instead of bluechi-controller. Since the
    diagram wasn't in the drawio xml, it has been
    recreated.
    
    Signed-off-by: Michael Engel <[email protected]>
    engelmi committed Oct 16, 2023
    Configuration menu
    Copy the full SHA
    59c2281 View commit details
    Browse the repository at this point in the history
  2. move the architecture overview to a dedicated section

    Signed-off-by: Michael Engel <[email protected]>
    engelmi committed Oct 16, 2023
    Configuration menu
    Copy the full SHA
    66e8e8d View commit details
    Browse the repository at this point in the history
  3. exclude drawio xml for diagrams from spdx check

    Signed-off-by: Michael Engel <[email protected]>
    engelmi committed Oct 16, 2023
    Configuration menu
    Copy the full SHA
    5680150 View commit details
    Browse the repository at this point in the history

Commits on Oct 19, 2023

  1. added api examples for rust

    Fixes: eclipse-bluechi#566
    
    Adds the missing api examples for rust on how to
    use BlueChi's D-Bus API.
    
    Signed-off-by: Michael Engel <[email protected]>
    engelmi committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    ca99e2e View commit details
    Browse the repository at this point in the history
  2. Get gcda and gcno files from containers.

    [WIP]
    When running tmt gcda and gcno files are created. This files necessary for later code coverage.
    So before the container destroyed we need to extract this files to the local machine.
    
    Related: eclipse-bluechi#397
    Signed-off-by: Artiom Divak <[email protected]>
    ArtiomDivak authored and mwperina committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    a2cf7de View commit details
    Browse the repository at this point in the history
  3. Add path for gcda files

    Added arguments for meson so the gcda files will be saved in /var/tmp/bluechi-coverage.
    Also bluechi.spec.in will add the /var/tmp/bluechi-coverage.
    
    Signed-off-by: Artiom Divak <[email protected]>
    
    Add path for gcda files
    
    Added arguments for meson so the gcda files will be saved in /var/tmp/bluechi-coverage.
    Also bluechi.spec.in will add the /var/tmp/bluechi-coverage.
    
    Signed-off-by: Artiom Divak <[email protected]>
    ArtiomDivak authored and mwperina committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    fff3fce View commit details
    Browse the repository at this point in the history
  4. Add test case IDs to increase tracebility

    Each test case should have unique UUID to help with traceability of test runs.
    With UUID for each test case, it is easier to follow trends in stability over time.
    
    Signed-off-by: Pavol Brilla <[email protected]>
    pbrilla-rh authored and engelmi committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    86b7306 View commit details
    Browse the repository at this point in the history
  5. Update tests/README.md

    thanks this makes sense
    
    Co-authored-by: Michael Engel <[email protected]>
    Signed-off-by: Pavol Brilla <[email protected]>
    pbrilla-rh and engelmi committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    44ed7e6 View commit details
    Browse the repository at this point in the history
  6. Remove integration tests specific network setup

    We were setting up specific network range for integration tests, but we
    were not using it directly within any test. So we can remove that
    specific network setup and rely on the default.
    
    Signed-off-by: Martin Perina <[email protected]>
    mwperina committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    2306a3f View commit details
    Browse the repository at this point in the history
  7. Suggest to use -v option when running integration tests

    Running integration tests with `-v` option provides nice summary with
    each test execution time and result at the end of the run, so we should
    suggest using this option everywhere in the documentation.
    
    Signed-off-by: Martin Perina <[email protected]>
    mwperina committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    28e7391 View commit details
    Browse the repository at this point in the history
  8. Use shell to indicate that code block should use shell syntax

    Use only `shell` to indicate that code block should use shell syntax
    highlighting.
    
    Signed-off-by: Martin Perina <[email protected]>
    mwperina committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    f02b8dd View commit details
    Browse the repository at this point in the history
  9. Fix inconsistencies in env variables for integration tests

    1. Mention all environment variables, which are used within integration
       tests and could be changed by users, in `tests/plans/tier0.fmf`
    2. Mention using `-e` to change environment variable value for an
       integration tests run in the documentation
    
    Signed-off-by: Martin Perina <[email protected]>
    mwperina committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    7983f09 View commit details
    Browse the repository at this point in the history

Commits on Oct 23, 2023

  1. improve some error messages returned by dbus api

    Signed-off-by: Iiqbal2000 <[email protected]>
    Iiqbal2000 authored and engelmi committed Oct 23, 2023
    Configuration menu
    Copy the full SHA
    17c21ef View commit details
    Browse the repository at this point in the history
  2. Simplify installation of bluechi-coverage package in tests

    When we build RPMs with coverage support (which we do only when we want
    to generate code coverage report), it's easier to add bluechi-coverage
    RPM as a dependency to other RPMs than passing coverage support to the
    container file and installing bluechi-coverage RPM according to the
    coverage support enablement.
    
    Signed-off-by: Martin Perina <[email protected]>
    mwperina committed Oct 23, 2023
    Configuration menu
    Copy the full SHA
    48f4a85 View commit details
    Browse the repository at this point in the history

Commits on Oct 24, 2023

  1. FFI: initial bluechi-tester tool

    BlueChi Tester, its purpose is to create tests that can disrupt or
    diminish the functionality of the BlueChi controller.
    
    Signed-off-by: Douglas Schilling Landgraf <[email protected]>
    Signed-off-by: Michael Engel <[email protected]>
    dougsland committed Oct 24, 2023
    Configuration menu
    Copy the full SHA
    afa547f View commit details
    Browse the repository at this point in the history
  2. added option for building with static analysis

    Related to: eclipse-bluechi#604
    
    Added the gcc option -fanalyzer as configurable meson option
    (default: false) to ensure higher code quality. Default is
    set to false and no integration into CI is done since it can
    also result in false-positives. Therefore, the developer has
    to decide which issue to tackle.
    
    Signed-off-by: Michael Engel <[email protected]>
    engelmi committed Oct 24, 2023
    Configuration menu
    Copy the full SHA
    baafeaf View commit details
    Browse the repository at this point in the history
  3. added integration test for measuring start time of unit

    Fixes: eclipse-bluechi#415
    
    Added an integration test to validate that collecting metrics
    for the start time of a unit works as expected.
    
    Signed-off-by: Michael Engel <[email protected]>
    engelmi committed Oct 24, 2023
    Configuration menu
    Copy the full SHA
    2e99a5c View commit details
    Browse the repository at this point in the history
  4. defined metrics object path as constant in python bindings

    Signed-off-by: Michael Engel <[email protected]>
    engelmi committed Oct 24, 2023
    Configuration menu
    Copy the full SHA
    623e0b9 View commit details
    Browse the repository at this point in the history
  5. added step for checking integration test IDs

    In order to ensure every integration test has an ID linked to
    it, a CI step executes a dry run for the generation and checks
    the result.
    
    Signed-off-by: Michael Engel <[email protected]>
    engelmi committed Oct 24, 2023
    Configuration menu
    Copy the full SHA
    cecc21c View commit details
    Browse the repository at this point in the history

Commits on Oct 27, 2023

  1. fix issues detected by gcc -fanalyzer option

    Fixes: eclipse-bluechi#604
    
    Fixed detected issues or suppressed warnings for false-positives
    that couldn't be fixed. In addition, the -fanalyzer option has
    been enabled in the CI for the build and running unit tests.
    The clang-tidy unknown warning option has been disabled, too.
    
    Signed-off-by: Michael Engel <[email protected]>
    engelmi committed Oct 27, 2023
    Configuration menu
    Copy the full SHA
    907ccb9 View commit details
    Browse the repository at this point in the history
  2. enable -fanalyzers malloc leak detection

    Signed-off-by: Michael Engel <[email protected]>
    engelmi committed Oct 27, 2023
    Configuration menu
    Copy the full SHA
    7345d7f View commit details
    Browse the repository at this point in the history

Commits on Oct 30, 2023

  1. Introduce clang/LLVM to build-base

    clang/LLVM is an alternate C compiler that is commonly used in Linux and
    other operating systems. It has useful tooling and helps keep the code
    portable. Other projects that use this toolchain include Chromium, Linux
    kernel and virtually all Rust projects use LLVM backend.
    
    Signed-off-by: Eric Curtin <[email protected]>
    ericcurtin authored and engelmi committed Oct 30, 2023
    Configuration menu
    Copy the full SHA
    456e12f View commit details
    Browse the repository at this point in the history
  2. Agent - Save ManagerAddress in context and use in ensure

    The value of ManagerAddress was being overridden upon connection failure
    
    Signed-off-by: Ygal Blum <[email protected]>
    ygalblum authored and mwperina committed Oct 30, 2023
    Configuration menu
    Copy the full SHA
    571d918 View commit details
    Browse the repository at this point in the history
  3. Introduce clang/LLVM support

    Some changes were made to account for unused variables the LLVM
    toolchain found, it also did not recognize the gcc-specific warnings
    turned off by the pragma statements, so tell clang to just ignore
    those.
    
    Signed-off-by: Eric Curtin <[email protected]>
    ericcurtin authored and mwperina committed Oct 30, 2023
    Configuration menu
    Copy the full SHA
    4160074 View commit details
    Browse the repository at this point in the history

Commits on Nov 1, 2023

  1. extend documentation of proxy services

    Changed the section name to cross-node dependencies
    and added an introducing index page to it. Reworked
    the proxy service example and explanation as well as
    added the limitations of this feature. In addition,
    a how-to subsection was created.
    
    Signed-off-by: Michael Engel <[email protected]>
    engelmi authored and mwperina committed Nov 1, 2023
    Configuration menu
    Copy the full SHA
    aebfb5c View commit details
    Browse the repository at this point in the history

Commits on Nov 3, 2023

  1. switch to hashmap.c in eclipse-bluechi organization

    Signed-off-by: Michael Engel <[email protected]>
    engelmi committed Nov 3, 2023
    Configuration menu
    Copy the full SHA
    03ee2a2 View commit details
    Browse the repository at this point in the history

Commits on Nov 7, 2023

  1. re-enable proxy service fails on execstart integration test

    Signed-off-by: Michael Engel <[email protected]>
    engelmi authored and mwperina committed Nov 7, 2023
    Configuration menu
    Copy the full SHA
    38161fc View commit details
    Browse the repository at this point in the history
  2. replaced ExecStart= with ExecStop= in [email protected]

    By using ExecStop= instead of ExecStart= a race condition is
    avoided that leads systemd to send a SIGTERM signal to the
    dep service, resulting in it being in a failed state.
    
    Signed-off-by: Michael Engel <[email protected]>
    engelmi authored and mwperina committed Nov 7, 2023
    Configuration menu
    Copy the full SHA
    f65493e View commit details
    Browse the repository at this point in the history

Commits on Nov 8, 2023

  1. changed Conflicts= to be not supported in documentation

    Signed-off-by: Michael Engel <[email protected]>
    engelmi committed Nov 8, 2023
    Configuration menu
    Copy the full SHA
    3e02469 View commit details
    Browse the repository at this point in the history

Commits on Nov 9, 2023

  1. add integration test for automatic unsubscribe

    Fixes: eclipse-bluechi#413
    Adds an integration test to verify that unsubscribe is
    automatically called as soon as the consumer stops the
    connection (the event loop, in this case).
    
    Signed-off-by: Michael Engel <[email protected]>
    engelmi authored and mwperina committed Nov 9, 2023
    Configuration menu
    Copy the full SHA
    74f7ef0 View commit details
    Browse the repository at this point in the history
  2. removed const qualifier for sub_id in unsubscribe

    The const qualifier for the sub_id prevented the value from
    being changed, so an unsubscribe call would fail since the
    subscription with ID 0 could not be found.
    
    Signed-off-by: Michael Engel <[email protected]>
    engelmi authored and mwperina committed Nov 9, 2023
    Configuration menu
    Copy the full SHA
    bf4e7ef View commit details
    Browse the repository at this point in the history
  3. Remove unneeded --arch parameter in test container builds

    Passing `--arch` parameter to `podman build` in
    `tests/scripts/tests-setup.sh` is no longer needed after
    eclipse-bluechi#441 being merged.
    
    Signed-off-by: Martin Perina <[email protected]>
    mwperina committed Nov 9, 2023
    Configuration menu
    Copy the full SHA
    50bd361 View commit details
    Browse the repository at this point in the history
  4. Introduce support for packit builds

    - Adapt our RPM build scripts to be usable in packit
    - Add support to build RPMs for the most important architectures when PR
      is added/updated
    - Add support to build RPMs for all supported platforms and save produced
      RPMs into our COPR repository
    
    Fixes: eclipse-bluechi#452
    Signed-off-by: Martin Perina <[email protected]>
    mwperina committed Nov 9, 2023
    Configuration menu
    Copy the full SHA
    47549c1 View commit details
    Browse the repository at this point in the history
  5. Introduce support for packit testing farm

    - Adapt our integration tests to be executable by packit in the testing
      farm
    - Add support to execute integration tests after RPMs are built when PR
      is added/updated
    
    Fixes: eclipse-bluechi#452
    Signed-off-by: Martin Perina <[email protected]>
    mwperina committed Nov 9, 2023
    Configuration menu
    Copy the full SHA
    cb5e10f View commit details
    Browse the repository at this point in the history
  6. Aligns build targets for bluechi-snapshot packit builds

    Aligns build targets for bluechi-snapshot packit builds with the build
    targets we were using with `make srpm` builds prior packit integration.
    
    Signed-off-by: Martin Perina <[email protected]>
    mwperina committed Nov 9, 2023
    Configuration menu
    Copy the full SHA
    e6dd1d2 View commit details
    Browse the repository at this point in the history
  7. fix race condition for [email protected]

    There is a potential race condition for ExecStart in
    [email protected] when a stop signal is sent and
    the ExecStart= command is still running. This leads
    systemd to send a SIGTERM signal to the template service.
    Therefore, SIGTERM needs to be an acceptable exit status,
    otherwise the service transitions to a failed state.
    
    Signed-off-by: Michael Engel <[email protected]>
    engelmi authored and mwperina committed Nov 9, 2023
    Configuration menu
    Copy the full SHA
    1570f53 View commit details
    Browse the repository at this point in the history
  8. Fixes: eclipse-bluechi#593

    setting pointers to NULL after free
    
    Signed-off-by: Michael Engel <[email protected]>
    engelmi committed Nov 9, 2023
    Configuration menu
    Copy the full SHA
    b72be6f View commit details
    Browse the repository at this point in the history

Commits on Nov 10, 2023

  1. move version to dedicated script and enhanve -v cli option

    Fixes: eclipse-bluechi#454
    
    Moves the project version and release to a dedicated script
    and uses it in meson. It also extends the -v cli option of
    all binaries so that the release (incl. the commit hash for
    nightly builds) is included.
    
    Signed-off-by: Michael Engel <[email protected]>
    engelmi committed Nov 10, 2023
    Configuration menu
    Copy the full SHA
    646307a View commit details
    Browse the repository at this point in the history

Commits on Nov 13, 2023

  1. graceful node shutdown when manager destroyed

    Added graceful node_shutdown function that is called before node_unref
    which goes over outstanding requests and cancels them.
    
    This fixes a memory leak when bluechi-controller service is stopped
    via bluechi-controller itself
    
    Signed-off-by: Mark Kemel <[email protected]>
    mkemel authored and engelmi committed Nov 13, 2023
    Configuration menu
    Copy the full SHA
    790ceb5 View commit details
    Browse the repository at this point in the history
  2. move marking cloned directory as safe from scripts to CI

    Signed-off-by: Michael Engel <[email protected]>
    engelmi committed Nov 13, 2023
    Configuration menu
    Copy the full SHA
    d814604 View commit details
    Browse the repository at this point in the history
  3. Release BlueChi 0.6.0

    Signed-off-by: Michael Engel <[email protected]>
    engelmi committed Nov 13, 2023
    Configuration menu
    Copy the full SHA
    58b1c5e View commit details
    Browse the repository at this point in the history
  4. Post Release v0.6.0

    Signed-off-by: Michael Engel <[email protected]>
    engelmi committed Nov 13, 2023
    Configuration menu
    Copy the full SHA
    4ec2e1a View commit details
    Browse the repository at this point in the history
  5. mark cloned project directory as safe for git

    Signed-off-by: Michael Engel <[email protected]>
    engelmi committed Nov 13, 2023
    Configuration menu
    Copy the full SHA
    11acd4e View commit details
    Browse the repository at this point in the history

Commits on Nov 14, 2023

  1. change hashmap.c version to v0.7.0 and remove warnings from hashmap l…

    …ib by casting raw pointers to each original object
    
    Signed-off-by: Iiqbal2000 <[email protected]>
    Iiqbal2000 authored and engelmi committed Nov 14, 2023
    Configuration menu
    Copy the full SHA
    ab8a3f7 View commit details
    Browse the repository at this point in the history
  2. Add valgrind test packit job

    Signed-off-by: Mark Kemel <[email protected]>
    mkemel committed Nov 14, 2023
    Configuration menu
    Copy the full SHA
    25a02e1 View commit details
    Browse the repository at this point in the history

Commits on Nov 15, 2023

  1. Add label to basic integration test packit job

    New label to the regular packit test job, in addition to the existing
    `valgrind` one. The labels allow triggering a single job or a group
    of jobs manually. In our case:
    `/packit test --labels standard` - runs the regular test job
    `/packit test --labels valgrind` - runs the valgrind test job
    `/packit test` - runs both (all the) tests
    
    Signed-off-by: Mark Kemel <[email protected]>
    mkemel committed Nov 15, 2023
    Configuration menu
    Copy the full SHA
    2b06157 View commit details
    Browse the repository at this point in the history
  2. send monitor signals only to peer

    Relates to: eclipse-bluechi#187
    
    When a peer creates a monitor, events matching its subscriptions
    should be sent only to that peer. Currently, this is only
    implemented for the unit properties changed signal - the other
    events are broadcasted so that others receive those signals as well.
    This commit changes the events for UnitNew, UnitRemoved and
    UnitStateChanged to be only sent to the peer that created the monitor.
    
    Signed-off-by: Michael Engel <[email protected]>
    engelmi authored and mkemel committed Nov 15, 2023
    Configuration menu
    Copy the full SHA
    3be9069 View commit details
    Browse the repository at this point in the history
  3. added log statements when sending monitor signals fail

    Signed-off-by: Michael Engel <[email protected]>
    engelmi authored and mkemel committed Nov 15, 2023
    Configuration menu
    Copy the full SHA
    df97dcd View commit details
    Browse the repository at this point in the history
  4. move RELEASE variable outside of function

    Signed-off-by: Michael Engel <[email protected]>
    engelmi committed Nov 15, 2023
    Configuration menu
    Copy the full SHA
    8baf0cd View commit details
    Browse the repository at this point in the history
  5. updated maintainer README with the latest release changes

    Signed-off-by: Michael Engel <[email protected]>
    engelmi committed Nov 15, 2023
    Configuration menu
    Copy the full SHA
    64b868c View commit details
    Browse the repository at this point in the history

Commits on Nov 16, 2023

  1. Fix remaining URLs pointing to containers/bluechi

    Fix remaining URLs pointing to container/bluechi to point to
    eclipse-bluechi/bluechi
    
    Signed-off-by: Martin Perina <[email protected]>
    mwperina authored and engelmi committed Nov 16, 2023
    Configuration menu
    Copy the full SHA
    67e6281 View commit details
    Browse the repository at this point in the history
  2. refactored build and push script for base images

    Split build and push into two distinct functions. Also, renamed
    functions and added an parameter check.
    
    Signed-off-by: Michael Engel <[email protected]>
    engelmi committed Nov 16, 2023
    Configuration menu
    Copy the full SHA
    9edaa2d View commit details
    Browse the repository at this point in the history
  3. added github workflow for building and pushing base images

    Signed-off-by: Michael Engel <[email protected]>
    engelmi committed Nov 16, 2023
    Configuration menu
    Copy the full SHA
    89937d7 View commit details
    Browse the repository at this point in the history
  4. make all build-scripts executable

    Signed-off-by: Michael Engel <[email protected]>
    engelmi committed Nov 16, 2023
    Configuration menu
    Copy the full SHA
    843317a View commit details
    Browse the repository at this point in the history

Commits on Nov 17, 2023

  1. log error when at least one list units request fails

    Relates to:
    eclipse-bluechi#567
    eclipse-bluechi#568
    
    When list units for all nodes is run and the requests are submitted,
    it might happen that one of those is failing. Previously, this led
    to a failure when reading the message for the node where the request
    failed - which got propagated to the caller.
    Now, an additional error log in BlueChi is made and the error code
    is extracted from the sd_bus_message.
    Also removes the top-most error print in the client to avoid printing
    errors twice.
    
    Signed-off-by: Michael Engel <[email protected]>
    engelmi authored and dougsland committed Nov 17, 2023
    Configuration menu
    Copy the full SHA
    180e3c5 View commit details
    Browse the repository at this point in the history

Commits on Nov 25, 2023

  1. added infinite loop option to bluechi-tester

    Relates to:
    eclipse-bluechi#648
    
    In order to continuously send signals to bluechi-controller
    a value of 0 in --numbersignals can be used for running in
    an infinite loop. In addition, the paramters for the JobDone
    signal have been fixed so that a valid JobDone signal is
    sent.
    
    Signed-off-by: Michael Engel <[email protected]>
    engelmi authored and dougsland committed Nov 25, 2023
    Configuration menu
    Copy the full SHA
    1d482ee View commit details
    Browse the repository at this point in the history

Commits on Nov 29, 2023

  1. Force python-rich installation for podman-py

    Fixes containers/podman-py#350 by forcing
    installation of python-rich dependency, which is missing in
    podman-py 4.8.0.post1
    
    Signed-off-by: Martin Perina <[email protected]>
    mwperina authored and dougsland committed Nov 29, 2023
    Configuration menu
    Copy the full SHA
    55312a0 View commit details
    Browse the repository at this point in the history

Commits on Dec 7, 2023

  1. extended monitor API by adding and removing peers

    Relates to: eclipse-bluechi#187
    
    Monitor signals are only sent to the creator of the monitor. The
    new Peer API enables to add and remove additional listener on the
    same monitor with its subscriptions.
    A user with sufficient priviledges to make methods calls to BlueChi's
    API can add and remove peers. The processes for the peers can be run
    by a different user with no access to BlueChi's API, but will still
    be able to receive events if added by a privileged process.
    
    Signed-off-by: Michael Engel <[email protected]>
    engelmi committed Dec 7, 2023
    Configuration menu
    Copy the full SHA
    6f22a0e View commit details
    Browse the repository at this point in the history

Commits on Dec 8, 2023

  1. Add lcov to integration-test-base container

    Adds lcov to integration-test-base container, because lcov will be
    required to generate code coverage report from integration tests run.
    
    Related-to: eclipse-bluechi#397
    Signed-off-by: Martin Perina <[email protected]>
    mwperina committed Dec 8, 2023
    Configuration menu
    Copy the full SHA
    17d5ac1 View commit details
    Browse the repository at this point in the history
  2. added integration test shutdown for bluechi

    Relates to: eclipse-bluechi#397
    
    In order to finalize all data - journal and valgrind logs and
    code coverage files - a shutdown step has been introduced that
    stops the bluechi components in all container.
    Also, error logs have been added in the run routine that should
    help debugging test failures.
    
    Signed-off-by: Michael Engel <[email protected]>
    engelmi authored and mwperina committed Dec 8, 2023
    Configuration menu
    Copy the full SHA
    71533d2 View commit details
    Browse the repository at this point in the history
  3. Add failure message to PR if after merge build fails

    Adds a failure message to PR as a new comment, if packit build fails
    after merge of the PR.
    
    Signed-off-by: Martin Perina <[email protected]>
    mwperina authored and engelmi committed Dec 8, 2023
    Configuration menu
    Copy the full SHA
    e436f07 View commit details
    Browse the repository at this point in the history
  4. added intregration tests for AddPeer on Monitor API

    Relates to: eclipse-bluechi#187
    
    Added integration tests to validate that the implemented
    API for adding and removing peers on monitors works as
    expected.
    
    Signed-off-by: Michael Engel <[email protected]>
    engelmi committed Dec 8, 2023
    Configuration menu
    Copy the full SHA
    5fa3755 View commit details
    Browse the repository at this point in the history
  5. prevent a monitoring peer to be added more than once

    In order to prevent duplicated signals being sent to
    a peer, the add peer method checks for the bus id and
    rejects if it can be found. This also applies to the
    owner of the monitor.
    
    Signed-off-by: Michael Engel <[email protected]>
    engelmi committed Dec 8, 2023
    Configuration menu
    Copy the full SHA
    369bf12 View commit details
    Browse the repository at this point in the history
  6. fix memory leak when assembling monitoring signals

    Signed-off-by: Michael Engel <[email protected]>
    engelmi committed Dec 8, 2023
    Configuration menu
    Copy the full SHA
    92d1fc9 View commit details
    Browse the repository at this point in the history

Commits on Dec 11, 2023

  1. removed unused sdbus error variable

    In some of the proxy monitors send function an error
    variable had been declared, but not used (due to an
    async method call). These can safely be removed.
    
    Signed-off-by: Michael Engel <[email protected]>
    engelmi committed Dec 11, 2023
    Configuration menu
    Copy the full SHA
    fa60204 View commit details
    Browse the repository at this point in the history
  2. fix CI check for apispec changes

    Signed-off-by: Michael Engel <[email protected]>
    engelmi committed Dec 11, 2023
    Configuration menu
    Copy the full SHA
    2a1c0f3 View commit details
    Browse the repository at this point in the history

Commits on Dec 12, 2023

  1. Docs: Add Securing BlueChi with mTLS and double proxy

    Signed-off-by: Ygal Blum <[email protected]>
    ygalblum authored and engelmi committed Dec 12, 2023
    Configuration menu
    Copy the full SHA
    849ee28 View commit details
    Browse the repository at this point in the history

Commits on Dec 13, 2023

  1. documentation: move images to asset directory

    Signed-off-by: Michael Engel <[email protected]>
    engelmi committed Dec 13, 2023
    Configuration menu
    Copy the full SHA
    4193d2b View commit details
    Browse the repository at this point in the history
  2. add documentation about monitoring

    Relates to: eclipse-bluechi#187
    
    Added documentation about monitors, virtual events and the
    recently introduced peer listener API.
    
    Signed-off-by: Michael Engel <[email protected]>
    engelmi committed Dec 13, 2023
    Configuration menu
    Copy the full SHA
    48fd221 View commit details
    Browse the repository at this point in the history

Commits on Dec 14, 2023

  1. Get Info files of tests

    Get Info file file from each container of each test.
    This info files will be merged with lcov command.
    
    Fixes: eclipse-bluechi#397
    Signed-off-by: Artiom Divak <[email protected]>
    ArtiomDivak authored and engelmi committed Dec 14, 2023
    Configuration menu
    Copy the full SHA
    001a0af View commit details
    Browse the repository at this point in the history
  2. Added finish step script to make html from info files

    Running script when WITH_COVERAGE is 1. This script will run after all
    tests and will get an html report for the coverage from all the info
    files.
    
    Fixes: eclipse-bluechi#397
    Signed-off-by: Artiom Divak <[email protected]>
    ArtiomDivak authored and engelmi committed Dec 14, 2023
    Configuration menu
    Copy the full SHA
    8e2d93e View commit details
    Browse the repository at this point in the history
  3. Adds logging to gathering code coverage artifacts

    Related-to: eclipse-bluechi#397
    Signed-off-by: Martin Perina <[email protected]>
    mwperina authored and engelmi committed Dec 14, 2023
    Configuration menu
    Copy the full SHA
    cfb7055 View commit details
    Browse the repository at this point in the history
  4. Add logo to the project

    - Adds plain (just a chihuahua), horizontal and vertical variants of the
      logo
    - Adds vertical variant to README.md
    
    Signed-off-by: Martin Perina <[email protected]>
    mwperina committed Dec 14, 2023
    Configuration menu
    Copy the full SHA
    fd40316 View commit details
    Browse the repository at this point in the history
  5. Use horizontal logo for README.md

    Signed-off-by: Martin Perina <[email protected]>
    mwperina committed Dec 14, 2023
    Configuration menu
    Copy the full SHA
    74a1b87 View commit details
    Browse the repository at this point in the history
  6. Add BlueChi logo for the organization on GH

    Adds BlueChi vertical logo in 100x100 size to be used as a logo for
    Eclipse BlueChi organization and repo on GitHub.
    
    Signed-off-by: Martin Perina <[email protected]>
    mwperina committed Dec 14, 2023
    Configuration menu
    Copy the full SHA
    cc7ee68 View commit details
    Browse the repository at this point in the history

Commits on Dec 15, 2023

  1. Add logo for social media preview on GH

    Adds horizontal logo sized to 1280x469 for social media preview on
    GitHub.
    
    Signed-off-by: Martin Perina <[email protected]>
    mwperina committed Dec 15, 2023
    Configuration menu
    Copy the full SHA
    9c63e57 View commit details
    Browse the repository at this point in the history
  2. Fix typo in social media logo file name

    Signed-off-by: Martin Perina <[email protected]>
    mwperina committed Dec 15, 2023
    Configuration menu
    Copy the full SHA
    49e3edb View commit details
    Browse the repository at this point in the history
  3. wait a bit after controller has stopped

    Relates to: eclipse-bluechi#668
    
    By waiting a bit, e.g. 1s, after the controller has stopped
    the agent will fail to reconnect at least one time - testing
    the perpetual retry to connect to the controller again.
    
    Signed-off-by: Michael Engel <[email protected]>
    engelmi committed Dec 15, 2023
    Configuration menu
    Copy the full SHA
    f7b2272 View commit details
    Browse the repository at this point in the history

Commits on Dec 20, 2023

  1. enable quicker tcp error notification

    Fixes: eclipse-bluechi#652
    Relates to: eclipse-bluechi#648
    
    When a connection between controller and agent is esablished and
    is dropped later, e.g. removing the cable from the agent, the
    disconnect is properly detected by the keepalive mechanism.
    However, the keepalive takes a while to detect this (based on the
    KEEPCNT of the system). If any command is issued during that time
    frame, tcp will try to retransmit the data. Eventually, retransmitting
    will be stopped and ICMP packets for host not reachable emitted.
    The keepalive is not used then, which results in the connection
    between agent and controller to be broken but not closed - a
    disconnect is not detected.
    By setting the IP_RECVERR socket option, errors such as the ICMP
    host not reachable error will be delivered to the upper layer
    (systemd event loop in our case) so that it can handle it.
    
    Signed-off-by: Michael Engel <[email protected]>
    engelmi committed Dec 20, 2023
    Configuration menu
    Copy the full SHA
    b572dad View commit details
    Browse the repository at this point in the history
  2. made IP_RECV_ERR configurable

    Relates to: eclipse-bluechi#652
    
    For systems with less robust network, always enabling IP_RECV_ERR
    might result in unnecessary disconnects and a less robust BlueChi
    setup. Therefore, a configuration setting was introduced to enable
    or disable this option depending on the current needs.
    
    Signed-off-by: Michael Engel <[email protected]>
    engelmi committed Dec 20, 2023
    Configuration menu
    Copy the full SHA
    924e153 View commit details
    Browse the repository at this point in the history

Commits on Dec 21, 2023

  1. Log test execution and code coverage collection times

    Signed-off-by: Martin Perina <[email protected]>
    mwperina committed Dec 21, 2023
    Configuration menu
    Copy the full SHA
    50be4d1 View commit details
    Browse the repository at this point in the history
  2. Align pytest execution for code coverage with integration tests

    Signed-off-by: Martin Perina <[email protected]>
    mwperina committed Dec 21, 2023
    Configuration menu
    Copy the full SHA
    f54ba1c View commit details
    Browse the repository at this point in the history
  3. Generate coverage info files within containers

    Perform all processing around generating code coverage info file within
    relevant container to improve performance.
    
    Signed-off-by: Martin Perina <[email protected]>
    mwperina committed Dec 21, 2023
    Configuration menu
    Copy the full SHA
    ccf1a64 View commit details
    Browse the repository at this point in the history
  4. added TCP KeepAlive options to configuration

    Fixes: eclipse-bluechi#674
    Relates to: eclipse-bluechi#652
    
    In order to enable users of BlueChi to tweak its networking
    behavior, the TCP KeepAlive options - which were set anyway
    to internally defined defaults - are made configurable. In
    addition, a new struct has been introduced to bundle socket
    related options.
    Also, parts of the bus utils which are related to socket
    functionality were moved to the respective socket source
    files.
    
    Signed-off-by: Michael Engel <[email protected]>
    engelmi committed Dec 21, 2023
    Configuration menu
    Copy the full SHA
    52cf38a View commit details
    Browse the repository at this point in the history

Commits on Dec 22, 2023

  1. Add debug logging to bluechi_test.command module

    Signed-off-by: Martin Perina <[email protected]>
    mwperina committed Dec 22, 2023
    Configuration menu
    Copy the full SHA
    af412e5 View commit details
    Browse the repository at this point in the history
  2. Optimize generating code coverage report

    1. Gather info files from all tests into a list and then run lcov to
       merge those info files into a single file only once
    2. Use Python API to gather info files
    3. Store generated info file as a part of the integration tests result
    
    Signed-off-by: Martin Perina <[email protected]>
    mwperina committed Dec 22, 2023
    Configuration menu
    Copy the full SHA
    482b029 View commit details
    Browse the repository at this point in the history

Commits on Jan 3, 2024

  1. added tmt serial no. to container name

    Added TMT serial number to container names in order
    to prevent cascading failures when containers from
    previous tests aren't properly cleaned up.
    
    Signed-off-by: Michael Engel <[email protected]>
    engelmi committed Jan 3, 2024
    Configuration menu
    Copy the full SHA
    76f803e View commit details
    Browse the repository at this point in the history

Commits on Jan 4, 2024

  1. fix check of return from agent_starts

    Signed-off-by: Michael Engel <[email protected]>
    engelmi authored and mkemel committed Jan 4, 2024
    Configuration menu
    Copy the full SHA
    833d06e View commit details
    Browse the repository at this point in the history
  2. check for proxy service list being empty instead of NULL

    Signed-off-by: Michael Engel <[email protected]>
    engelmi authored and mkemel committed Jan 4, 2024
    Configuration menu
    Copy the full SHA
    5176ef3 View commit details
    Browse the repository at this point in the history
  3. Test for cmd -c option for agent and controller

    Test if cmd -c option with invalid conf will
    set the status of agent and controller to failed status.
    
    Related-to: eclipse-bluechi#668
    Signed-off-by: Artiom Divak <[email protected]>
    ArtiomDivak authored and engelmi committed Jan 4, 2024
    Configuration menu
    Copy the full SHA
    e19b4d4 View commit details
    Browse the repository at this point in the history
  4. removed D-Bus method Shutdown

    Fixes: eclipse-bluechi#682
    
    The D-Bus method Shutdown was added in the early days of
    the project and has never been used to this day. The use
    case of this method is also not clear. So in order to
    keep the API of BlueChi as lean as possible, lets remove
    the Shutdown method.
    
    Signed-off-by: Michael Engel <[email protected]>
    engelmi committed Jan 4, 2024
    Configuration menu
    Copy the full SHA
    340acc9 View commit details
    Browse the repository at this point in the history
  5. disable llvm-include-order rule for clang-tidy

    clang-format and clang-tidy seem to both evaluate the
    include order, but with a different set of rules. For
    example, clang-format would apply
       #include method-unit-actions.h
       #include client.h
    while clang-tidy would sort them in reverse - and error
    on the other. Since this is a formatting task, lets
    disable the include order rule in clang-tidy.
    
    Signed-off-by: Michael Engel <[email protected]>
    engelmi authored and mkemel committed Jan 4, 2024
    Configuration menu
    Copy the full SHA
    93bfea1 View commit details
    Browse the repository at this point in the history

Commits on Jan 5, 2024

  1. Add array of structures aligning to .clang-format

    Signed-off-by: Mark Kemel <[email protected]>
    mkemel authored and engelmi committed Jan 5, 2024
    Configuration menu
    Copy the full SHA
    cbcd280 View commit details
    Browse the repository at this point in the history

Commits on Jan 8, 2024

  1. bluechictl: introduce Method and Command structures

    This introduces a new way to define and handle command line interface
    focusing on simplicity of adding and handling new methods and new
    options for each method separately.
    
    Introducing two new structures: Method and Command, and a set of
    functions to manage them. client/main.c shows how to define and use
    these.
    
    Also, Command interface can handle separate help outputs for each
    method, which can be introduced later.
    
    Signed-off-by: Mark Kemel <[email protected]>
    mkemel committed Jan 8, 2024
    Configuration menu
    Copy the full SHA
    7e6ed4f View commit details
    Browse the repository at this point in the history
  2. add a comment for each PR about test coverage

    Signed-off-by: Michael Engel <[email protected]>
    engelmi committed Jan 8, 2024
    Configuration menu
    Copy the full SHA
    ab78631 View commit details
    Browse the repository at this point in the history
  3. remove comment workflow

    Signed-off-by: Michael Engel <[email protected]>
    engelmi committed Jan 8, 2024
    Configuration menu
    Copy the full SHA
    82f7cb5 View commit details
    Browse the repository at this point in the history
  4. bluechictl: add flags to enable and disable commands

    Adding the following flags:
    
    enable: `--force`, `--runtime` and `--no-reload`
    disable: `--runtime` and `--no-reload`
    
    Removed the short `-f` option for `--filter` option, since `-f` is
    more common for --force than for filter
    
    Signed-off-by: Mark Kemel <[email protected]>
    mkemel committed Jan 8, 2024
    Configuration menu
    Copy the full SHA
    e3c2485 View commit details
    Browse the repository at this point in the history

Commits on Jan 9, 2024

  1. Introduced shutdown hook running before exiting event loop

    Fixes: eclipse-bluechi#686
    Relates to: eclipse-bluechi#681
    
    A shutdown hook function has been introduced that is executed
    right before exiting the event loop. By doing so, the agent
    and controller are able to perform final shutdown actions such
    as emitting signals.
    It uses the agent_stop and manager_stop functions for both
    applications to perform these tasks and applies asserts in
    the unref functions to cross-check that all lists, e.g. for
    nodes or jobs, have been cleared.
    
    Signed-off-by: Michael Engel <[email protected]>
    engelmi committed Jan 9, 2024
    Configuration menu
    Copy the full SHA
    30f63e9 View commit details
    Browse the repository at this point in the history

Commits on Jan 10, 2024

  1. Add lsof for integration-test-base

    lsof needed to check if port connected inside
    controller/agent container.
    
    Signed-off-by: Artiom Divak <[email protected]>
    ArtiomDivak authored and mwperina committed Jan 10, 2024
    Configuration menu
    Copy the full SHA
    1dcff62 View commit details
    Browse the repository at this point in the history
  2. removed prefix of image name

    Signed-off-by: Michael Engel <[email protected]>
    engelmi committed Jan 10, 2024
    Configuration menu
    Copy the full SHA
    9302abd View commit details
    Browse the repository at this point in the history
  3. added status property on manager interface

    Fixes: eclipse-bluechi#603
    
    Added a status property on the manager interface to express
    the current status of the overall system - all nodes managed
    by the controller. It also emits a signal if this state
    changes, e.g. from online to degraded. Node (dis-)connects
    that don't lead to a state change do not trigger this signal.
    
    Signed-off-by: Michael Engel <[email protected]>
    engelmi committed Jan 10, 2024
    Configuration menu
    Copy the full SHA
    cbf6516 View commit details
    Browse the repository at this point in the history

Commits on Jan 11, 2024

  1. use polling instead of sleep for checking processed events

    In the integration tests for the system status, the
    events processed by the monitor should be continuously
    be pulled and evaluated (with proper logs) instead of
    simply waiting a fixed amount of time. This makes the
    tests less brittle on slower infrastructure.
    
    Signed-off-by: Michael Engel <[email protected]>
    engelmi committed Jan 11, 2024
    Configuration menu
    Copy the full SHA
    9a2ed1b View commit details
    Browse the repository at this point in the history

Commits on Jan 15, 2024

  1. Test for -c option check if port is change

    Added an option to add open ports for spawned containers.
    And also added a test to check if conf file change with
    -c option will change the ports for agent and ctrl.
    
    Related-to: eclipse-bluechi#668
    Signed-off-by: Artiom Divak <[email protected]>
    ArtiomDivak authored and engelmi committed Jan 15, 2024
    Configuration menu
    Copy the full SHA
    ed15bd5 View commit details
    Browse the repository at this point in the history

Commits on Jan 16, 2024

  1. Configuration parameters prefix - replace Manager with Controller

    Signed-off-by: Ygal Blum <[email protected]>
    ygalblum authored and engelmi committed Jan 16, 2024
    Configuration menu
    Copy the full SHA
    c9121e0 View commit details
    Browse the repository at this point in the history
  2. Fix reference to other MD file

    Co-authored-by: Michael Engel <[email protected]>
    Signed-off-by: Ygal Blum <[email protected]>
    ygalblum and engelmi committed Jan 16, 2024
    Configuration menu
    Copy the full SHA
    00089a6 View commit details
    Browse the repository at this point in the history
  3. bluechictl: status command to show nodes list

    In this commit we remove the `bluechictl monitor node-connection`
    functionality and move it to `bluechictl status`, slightly expanding
    it.
    
    `bluechictl status` will print the list of nodes with their status
    and when it was last seen.
    
    `bluechictl status node` will print the same for for the node `node`
    
    Also adding `-w/--watch` flag to `bluechictl status` command,
    allowing to continuously monitor the node/nodes status (like the
    original `bluechictl monitor node-connection`
    
    Signed-off-by: Mark Kemel <[email protected]>
    mkemel authored and engelmi committed Jan 16, 2024
    Configuration menu
    Copy the full SHA
    c5176eb View commit details
    Browse the repository at this point in the history
  4. bluechictl: doc updates for latest option changes

    Signed-off-by: Mark Kemel <[email protected]>
    mkemel authored and engelmi committed Jan 16, 2024
    Configuration menu
    Copy the full SHA
    7ebc2b3 View commit details
    Browse the repository at this point in the history

Commits on Jan 17, 2024

  1. copy gcno files into dedictated directories

    By copying the gcno files into the dedicated directories
    naming collisions are avoided which, in turn, results in
    missing coverage for those overwritten files.
    This also applies to moving the .gcda files into those
    dedicated project directories, e.g. libbluechi, during
    the collection of these files.
    
    Signed-off-by: Michael Engel <[email protected]>
    engelmi committed Jan 17, 2024
    Configuration menu
    Copy the full SHA
    13f022d View commit details
    Browse the repository at this point in the history

Commits on Jan 18, 2024

  1. Rename Manager -> Controller (eclipse-bluechi#712)

    Signed-off-by: Mark Kemel <[email protected]>
    mkemel authored Jan 18, 2024
    Configuration menu
    Copy the full SHA
    f2cd879 View commit details
    Browse the repository at this point in the history

Commits on Jan 19, 2024

  1. Release BlueChi v0.7.0

    Signed-off-by: Michael Engel <[email protected]>
    engelmi committed Jan 19, 2024
    Configuration menu
    Copy the full SHA
    843aa0b View commit details
    Browse the repository at this point in the history
  2. Post Relese v0.7.0

    Signed-off-by: Michael Engel <[email protected]>
    engelmi committed Jan 19, 2024
    Configuration menu
    Copy the full SHA
    521af98 View commit details
    Browse the repository at this point in the history
  3. fixed workflow for publishing to pypi

    Install missing python3-gobject dependency. Also, remove check for
    diff for now since the generator produces unordered output, e.g.
    the functions and classes might be in different order.
    
    Signed-off-by: Michael Engel <[email protected]>
    engelmi committed Jan 19, 2024
    Configuration menu
    Copy the full SHA
    9cf1f26 View commit details
    Browse the repository at this point in the history

Commits on Jan 22, 2024

  1. Add Fedora spec changes to upstream

    Add spec file changes, which were performed in Fedora, to upstream spec
    file, so there are less differencies between them.
    
    Signed-off-by: Martin Perina <[email protected]>
    mwperina committed Jan 22, 2024
    Configuration menu
    Copy the full SHA
    cfce842 View commit details
    Browse the repository at this point in the history

Commits on Jan 23, 2024

  1. Retrieve the version from script

    The workflow variable github.ref_name contains the tag
    name, which is in the form of v*.*.*. In the rpm spec
    file, however, we expect the format *.*.*. Therefore,
    lets change the format in the github workflow by using
    the string returned from the version script, e.g. 0.8.0
    
    Signed-off-by: Michael Engel <[email protected]>
    engelmi committed Jan 23, 2024
    Configuration menu
    Copy the full SHA
    b54fb6a View commit details
    Browse the repository at this point in the history
  2. removed unused function from libbluechi

    Signed-off-by: Michael Engel <[email protected]>
    engelmi committed Jan 23, 2024
    Configuration menu
    Copy the full SHA
    44e15cc View commit details
    Browse the repository at this point in the history

Commits on Jan 26, 2024

  1. Merge the info file inside the container

    To avoid lcov version differences generated info files will be copied
    to the container and only then merged. This will avoid using the
    lcov installed on the host and will prevent lcov version differences.
    
    Related:eclipse-bluechi#713
    Signed-off-by: Artiom Divak <[email protected]>
    ArtiomDivak authored and engelmi committed Jan 26, 2024
    Configuration menu
    Copy the full SHA
    a44d2ab View commit details
    Browse the repository at this point in the history

Commits on Jan 30, 2024

  1. Add unit test code coverage to integration test coverage report

    Unit tests are executed during RPM build phase, so we need to add .gcda
    files from unit test execution into bluechi-coverage package to be able
    to create unified unit and integration test coverage report as a part of
    integration test execution.
    
    Signed-off-by: Martin Perina <[email protected]>
    mwperina authored and engelmi committed Jan 30, 2024
    Configuration menu
    Copy the full SHA
    74fce01 View commit details
    Browse the repository at this point in the history
  2. Remove unit test coverage report from unit-tests workflow

    Unit tests are executed as a part of RPM build. Also we run integration
    tests with code coverage report as a part if integration-tests workflow,
    so there is no need to run coverage report for unit tests in unit-tests
    workflow.
    
    Signed-off-by: Martin Perina <[email protected]>
    mwperina authored and engelmi committed Jan 30, 2024
    Configuration menu
    Copy the full SHA
    21bc266 View commit details
    Browse the repository at this point in the history

Commits on Jan 31, 2024

  1. remove unit test file coverage

    Remove coverage for unit test files like
    libbluechi/test/common/list_test.c from the generated
    HTML coverage info and report.
    
    Signed-off-by: Michael Engel <[email protected]>
    engelmi committed Jan 31, 2024
    Configuration menu
    Copy the full SHA
    1f47bbc View commit details
    Browse the repository at this point in the history
  2. Ordered output for python bindings generator

    Fixes: eclipse-bluechi#716
    
    It orders the interfaces as well as its methods, signals and
    properties by name so that the generated output is deterministic.
    
    Signed-off-by: Michael Engel <[email protected]>
    engelmi committed Jan 31, 2024
    Configuration menu
    Copy the full SHA
    c0284d7 View commit details
    Browse the repository at this point in the history

Commits on Feb 5, 2024

  1. Add LogLevel and LogTarget properties for controller and agent

    Adding LogLevel and LogTarget properties for controller and agent.
    This property's status will be visible via sdbus API.
    
    Relatd: eclipse-bluechi#726
    Signed-off-by: Artiom Divak <[email protected]>
    ArtiomDivak authored and engelmi committed Feb 5, 2024
    Configuration menu
    Copy the full SHA
    3db4f79 View commit details
    Browse the repository at this point in the history

Commits on Feb 7, 2024

  1. cleanup controller when start fails

    Fixes: eclipse-bluechi#730
    
    When controller_start fails, the cleanup in controller_stop still
    needs to be executed to remove all initialized nodes.
    
    Signed-off-by: Michael Engel <[email protected]>
    engelmi authored and dougsland committed Feb 7, 2024
    Configuration menu
    Copy the full SHA
    0c70696 View commit details
    Browse the repository at this point in the history

Commits on Feb 8, 2024

  1. pin tmt version to 1.30

    On 06.02.2024 the tmt version 1.31 was released. It adds
    a new preparation task (at least in our setup), which fails.
    Pinning it to 1.30 for now.
    
    Signed-off-by: Michael Engel <[email protected]>
    engelmi committed Feb 8, 2024
    Configuration menu
    Copy the full SHA
    bfea83b View commit details
    Browse the repository at this point in the history
  2. doc: add information about firewall in the docs

    Add documentation to users regarding firewalld and iptables
    for BlueChi.
    
    Fixes: eclipse-bluechi#648
    
    Signed-off-by: Douglas Schilling Landgraf <[email protected]>
    Signed-off-by: Michael Engel <[email protected]>
    dougsland authored and engelmi committed Feb 8, 2024
    Configuration menu
    Copy the full SHA
    bb49730 View commit details
    Browse the repository at this point in the history

Commits on Feb 12, 2024

  1. Test for loglevel for controller and agent

    Testing if log level will change if SetLoglevel function will be use
    with bluechictl in container and agent. Loglevel will be set to DEBUG
    and then to INFO. After that the service will be stoped and the journal
    will be checked.
    
    Reletad:eclipse-bluechi#668
    Signed-off-by: Artiom Divak <[email protected]>
    ArtiomDivak authored and engelmi committed Feb 12, 2024
    Configuration menu
    Copy the full SHA
    8791c8d View commit details
    Browse the repository at this point in the history
  2. Bluechi will crush if non valid loglevel used

    If bluchictl setloglevel feature is used with invalide loglevel
    bluechi will crush. It caused by invalid input for bc_log_errorf.
    
    Signed-off-by: Artiom Divak <[email protected]>
    ArtiomDivak authored and mwperina committed Feb 12, 2024
    Configuration menu
    Copy the full SHA
    78df211 View commit details
    Browse the repository at this point in the history
  3. Tests set-loglevel with invalid input

    Added test for set-loglevel with invalid input (like INF)
    for controller and agent.
    
    Signed-off-by: Artiom Divak <[email protected]>
    ArtiomDivak authored and mwperina committed Feb 12, 2024
    Configuration menu
    Copy the full SHA
    cfd3c60 View commit details
    Browse the repository at this point in the history

Commits on Feb 13, 2024

  1. Report to test coverage to Coveralls

    Signed-off-by: Ygal Blum <[email protected]>
    ygalblum authored and mwperina committed Feb 13, 2024
    Configuration menu
    Copy the full SHA
    7a57dff View commit details
    Browse the repository at this point in the history
  2. Add code coverage badge to README.md

    Adds coveralls.io badge to README.md to show code coverage status.
    
    Signed-off-by: Martin Perina <[email protected]>
    mwperina authored and engelmi committed Feb 13, 2024
    Configuration menu
    Copy the full SHA
    6c669df View commit details
    Browse the repository at this point in the history
  3. Don't use string literals as value for boolean options

    Signed-off-by: Martin Perina <[email protected]>
    mwperina authored and engelmi committed Feb 13, 2024
    Configuration menu
    Copy the full SHA
    d2d9ee0 View commit details
    Browse the repository at this point in the history
  4. Rename build option man to with_man_pages

    1. Renames build option `man` to `with_man_pages`
    2. Changes the type of the option from `combo` to `boolean`
    3. Add documentation for this option to README.developer.md
    
    Signed-off-by: Martin Perina <[email protected]>
    mwperina authored and engelmi committed Feb 13, 2024
    Configuration menu
    Copy the full SHA
    e7286cb View commit details
    Browse the repository at this point in the history
  5. Use boolean type for with_coverage build option

    Use boolean type instead of combo for `with_coverage` build option
    
    Signed-off-by: Martin Perina <[email protected]>
    mwperina authored and engelmi committed Feb 13, 2024
    Configuration menu
    Copy the full SHA
    f47fba0 View commit details
    Browse the repository at this point in the history
  6. Remove unneeded empty lines in selinux/meson.build

    Signed-off-by: Martin Perina <[email protected]>
    mwperina authored and engelmi committed Feb 13, 2024
    Configuration menu
    Copy the full SHA
    249e092 View commit details
    Browse the repository at this point in the history

Commits on Feb 14, 2024

  1. split up parse functions

    Relates to: eclipse-bluechi#678
    
    The parse functions agent_parse_config and controller_parse_config
    initialize the config, set default values there, load configuration
    from all sources and sets the loaded values to the agent/controller
    fields.
    This is a bit much, therefore, split setting the values out to a
    dedicated function. In addition to a smaller, easier to read
    function it also simplifies writing unit tests.
    
    Signed-off-by: Michael Engel <[email protected]>
    engelmi committed Feb 14, 2024
    Configuration menu
    Copy the full SHA
    3a0d7a2 View commit details
    Browse the repository at this point in the history
  2. added unit tests for setting values

    Relates to: eclipse-bluechi#678
    
    Added unit tests for the previously split out function to set the
    values from the loaded configuration to the agent/controller fields.
    
    Signed-off-by: Michael Engel <[email protected]>
    engelmi committed Feb 14, 2024
    Configuration menu
    Copy the full SHA
    5899b1b View commit details
    Browse the repository at this point in the history
  3. fix memory leaks in agent

    Two leaks are fixed:
    - agent_unref did not free the peer_socket_options
    - unit_infos was allocated twice
    
    Signed-off-by: Michael Engel <[email protected]>
    engelmi committed Feb 14, 2024
    Configuration menu
    Copy the full SHA
    4d61fc6 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    06ca91f View commit details
    Browse the repository at this point in the history
  5. changed naming for container to machine

    Relates to: eclipse-bluechi#662
    
    Preparation work for multihost support by exchanging the term
    container with machine in classes and functions in the integration
    tests.
    
    Signed-off-by: Michael Engel <[email protected]>
    engelmi committed Feb 14, 2024
    Configuration menu
    Copy the full SHA
    11e7f7c View commit details
    Browse the repository at this point in the history
  6. skip creating coverage report when no info file is found

    It can happen that provisioning, preparing or executing
    the integration tests fails, e.g. failed to pull the
    container image due to an infra outage. The finish step
    of tmt, however, always gets executed. In order to avoid
    failing the finish step, check for existing .info files
    and skip if none are found.
    
    Signed-off-by: Michael Engel <[email protected]>
    engelmi committed Feb 14, 2024
    Configuration menu
    Copy the full SHA
    5890b89 View commit details
    Browse the repository at this point in the history
  7. Update GH actions to latest releases

    Updates GH actions to latest releases to fix following warning:
    
    ```
    Node.js 16 actions are deprecated. Please update the following
    actions to use Node.js 20
    ```
    
    Signed-off-by: Martin Perina <[email protected]>
    mwperina authored and engelmi committed Feb 14, 2024
    Configuration menu
    Copy the full SHA
    cb834e1 View commit details
    Browse the repository at this point in the history

Commits on Feb 15, 2024

  1. introduced a client class in integration tests

    Relates to: eclipse-bluechi#662
    
    Introduce a client class in integration tests to add an abstraction
    layer between tests and the used provision method - containerized or
    multiple hosts connected to via SSH.
    
    Signed-off-by: Michael Engel <[email protected]>
    engelmi committed Feb 15, 2024
    Configuration menu
    Copy the full SHA
    01ccc68 View commit details
    Browse the repository at this point in the history
  2. load config from cli option as part of load complete config

    Relates to: eclipse-bluechi#678
    
    Moved loading the config file specified by CLI option to the function
    loading the complete config and updated unit tests accordingly. This
    way loading configuration from all sources is encapsulated in a
    single function.
    
    Signed-off-by: Michael Engel <[email protected]>
    engelmi committed Feb 15, 2024
    Configuration menu
    Copy the full SHA
    b717af6 View commit details
    Browse the repository at this point in the history
  3. Fix warning about changelog date

    Fixes following warning:
    
      warning: bogus date in %changelog: Mon Jan 17 2024
    
    Signed-off-by: Martin Perina <[email protected]>
    mwperina committed Feb 15, 2024
    Configuration menu
    Copy the full SHA
    60be1a6 View commit details
    Browse the repository at this point in the history
  4. Generate coverage info file for unit test during package build

    Prior to the patch .gcda files from unit tests execution are packaged
    into bluechi-coverage and later merged with integration test .gcda file
    to create unified code coverage report.
    As a part of this patch we generate code coverage info file for unit
    tests and package this info into bluechi-coverage, which simplifies
    generating unified code coverage report.
    
    Signed-off-by: Martin Perina <[email protected]>
    mwperina committed Feb 15, 2024
    Configuration menu
    Copy the full SHA
    e8fba28 View commit details
    Browse the repository at this point in the history
  5. dedicated classes for systemctl and bluechictl commands

    Relates to: eclipse-bluechi#662
    
    Further preparatory work for multihost testing. Encapsulate commands
    for systemctl and bluechictl in dedicated classes, increasing the
    reusability and readability. An instance of the systemctl class is
    provided by both, controller and agent machine. Only the controller
    can use bluechictl, however.
    
    Signed-off-by: Michael Engel <[email protected]>
    engelmi committed Feb 15, 2024
    Configuration menu
    Copy the full SHA
    3068b3f View commit details
    Browse the repository at this point in the history

Commits on Feb 20, 2024

  1. Force urllib3 log level to INFO

    urllib3 logs in DEBUG level contains too much information, which we
    don't need in integration tests, so let's force th level to INFO
    
    Signed-off-by: Martin Perina <[email protected]>
    mwperina committed Feb 20, 2024
    Configuration menu
    Copy the full SHA
    529020f View commit details
    Browse the repository at this point in the history
  2. Fixing multiline string notation for loggging

    bluchictl and systemctl modules contains multiline string using
    backslash which added unnecessary white spaces:
    
        ... finished with result '0'             and output:
    
    Signed-off-by: Martin Perina <[email protected]>
    mwperina committed Feb 20, 2024
    Configuration menu
    Copy the full SHA
    e326357 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    702b5e7 View commit details
    Browse the repository at this point in the history
  4. Improves logging in code coverage process

    Signed-off-by: Martin Perina <[email protected]>
    mwperina committed Feb 20, 2024
    Configuration menu
    Copy the full SHA
    8738b92 View commit details
    Browse the repository at this point in the history
  5. Use DEBUG log level in GH CI integration tests run

    Signed-off-by: Martin Perina <[email protected]>
    mwperina committed Feb 20, 2024
    Configuration menu
    Copy the full SHA
    e1bba6a View commit details
    Browse the repository at this point in the history
  6. Test validity of -h/--help option

    Tests, bluechi-controller, bluechi-agent and bluechictl provides both
    short (-h) and long (--help) option and those options provides some
    content.
    
    Signed-off-by: Martin Perina <[email protected]>
    mwperina committed Feb 20, 2024
    Configuration menu
    Copy the full SHA
    5965128 View commit details
    Browse the repository at this point in the history
  7. Test validity of -v/--version option

    Tests, that bluechi-controller, bluechi-agent and bluechi-ctl contains
    -v and --version options and that the version returned aligns with RPM
    package version.
    
    Signed-off-by: Martin Perina <[email protected]>
    mwperina committed Feb 20, 2024
    Configuration menu
    Copy the full SHA
    76c6d4f View commit details
    Browse the repository at this point in the history
  8. Align RPM release with release reported by command line tools

    Make sure, that RPM release for snapshot builds is properly passed to
    the build, so this release can be reported correctly in command line
    tools.
    
    Fixes: eclipse-bluechi#753
    Signed-off-by: Martin Perina <[email protected]>
    mwperina committed Feb 20, 2024
    Configuration menu
    Copy the full SHA
    2327958 View commit details
    Browse the repository at this point in the history

Commits on Feb 21, 2024

  1. Add test for disable service in bluechictl

    We have a test to verify bluechictl can enable disabled service. This
    commit also add test if bluechictl can disable enabled service.
    
    Signed-off-by: Martin Perina <[email protected]>
    mwperina committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    a770b66 View commit details
    Browse the repository at this point in the history

Commits on Feb 22, 2024

  1. Test metrics enable and then disable

    Adds an integration test which checks that metrics are enabled and
    disabled correctly back-and-forth
    
    Signed-off-by: Mark Kemel <[email protected]>
    mkemel committed Feb 22, 2024
    Configuration menu
    Copy the full SHA
    9eb9eb0 View commit details
    Browse the repository at this point in the history
  2. metrics: nullify metrics_slot on agent when disabling

    Signed-off-by: Mark Kemel <[email protected]>
    mkemel committed Feb 22, 2024
    Configuration menu
    Copy the full SHA
    1ff9217 View commit details
    Browse the repository at this point in the history
  3. Test if bluechictl version is aligned with RPM version

    Tests if bluechictl version aligns with the version provided by RPM
    package.
    
    Signed-off-by: Martin Perina <[email protected]>
    mwperina committed Feb 22, 2024
    Configuration menu
    Copy the full SHA
    4119ba9 View commit details
    Browse the repository at this point in the history

Commits on Feb 23, 2024

  1. Remove unused command_ref method

    Signed-off-by: Martin Perina <[email protected]>
    mwperina committed Feb 23, 2024
    Configuration menu
    Copy the full SHA
    cff1d82 View commit details
    Browse the repository at this point in the history
  2. Add verification of operation result for systemctl stop

    systemctl stop will fail only if service doesn't exist or if it's
    prohibited to stop the service. To detect, that for example service
    crash during stop operation, we need to check Result property of the
    service after stop operation.
    
    Signed-off-by: Martin Perina <[email protected]>
    mwperina committed Feb 23, 2024
    Configuration menu
    Copy the full SHA
    a226c23 View commit details
    Browse the repository at this point in the history
  3. Use SystemCtl class in test.py module

    Adds usage of SystemCtl class in test.py module, which allows additional
    logging and also detection of stop service failures.
    
    Signed-off-by: Martin Perina <[email protected]>
    mwperina committed Feb 23, 2024
    Configuration menu
    Copy the full SHA
    3161761 View commit details
    Browse the repository at this point in the history
  4. Fail the test if there is an error stopping bluechi services or gathe…

    …ring logs
    
    Bluechi services are being stopped at the end of each test to be able to
    collect logs or code coverage data. If bluechi service was stopped with
    failure (for example due to core-dump), we need to fail the test.
    Also if there is an error during logs gathering, we should fail the
    test.
    mwperina committed Feb 23, 2024
    Configuration menu
    Copy the full SHA
    9aae53d View commit details
    Browse the repository at this point in the history
  5. Fix memory deallocation issue in node_method_set_log_level()

    Signed-off-by: Martin Perina <[email protected]>
    mwperina committed Feb 23, 2024
    Configuration menu
    Copy the full SHA
    f869b8a View commit details
    Browse the repository at this point in the history

Commits on Feb 27, 2024

  1. Add APIs to set controller host, port and address for Agent

    This adds public APIs to set controller host, port and address to the
    bluechi-agent.
    
    Because it's possible to change the host, port and address used by agent
    to connect controller on the fly using these APIs, the agent can
    reconnect to controller of new node without restarting when the node
    of working bluechi controller is changed.
    
    If reconnect is true, try to reconnect to new bluechi-controller right
    now.
    
    Signed-off-by: Joonyoung Shim <[email protected]>
    dofmind committed Feb 27, 2024
    Configuration menu
    Copy the full SHA
    0aa31fe View commit details
    Browse the repository at this point in the history