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

103.next LTS backports #5953

Draft
wants to merge 17 commits into
base: 103lts
Choose a base branch
from

Commits on Jun 11, 2024

  1. Insecure temporary file removal

    The tmpfile.mktemp function for creating tmp files has been depraceted
    since 2.3 and has security issues. Lets remove it and use
    tmpdir instead.
    
    Reference:
    https://github.com/avocado-framework/avocado/security/code-scanning/278
    Signed-off-by: Jan Richter <jarichte@redhat.com>
    richtja authored and clebergnu committed Jun 11, 2024
    Configuration menu
    Copy the full SHA
    bcf24a0 View commit details
    Browse the repository at this point in the history
  2. TaskStatusService connection lost fix

    This commit adds error handling to TaskStatusService. When the
    connection is lost, it will try to establish a new connection. If the
    connection is not possible to renew, the task will send warning message
    about new status and remove TaskStatusService from available services.
    
    Reference: avocado-framework#5794
    Signed-off-by: Jan Richter <jarichte@redhat.com>
    Signed-off-by: Cleber Rosa <crosa@redhat.com>
    richtja authored and clebergnu committed Jun 11, 2024
    Configuration menu
    Copy the full SHA
    92bbfca View commit details
    Browse the repository at this point in the history
  3. Split TaskStatusService connection and post

    This commit will move establishment of status service connection from
    post method to its own dedicated method. Thanks to this change, it will
    be possible to establish connection over again when a problem occurs.
    
    Signed-off-by: Jan Richter <jarichte@redhat.com>
    richtja authored and clebergnu committed Jun 11, 2024
    Configuration menu
    Copy the full SHA
    934d1de View commit details
    Browse the repository at this point in the history
  4. Runnable: do not ignore the configuration passed from recipes

    When creating Runnables from recipes, the given configuration will get
    discarded when "filtering" the configuration used.
    
    The correct approach is to keep the given configuration, and suplement
    it with the other needed (used) configuration.
    
    Signed-off-by: Cleber Rosa <crosa@redhat.com>
    clebergnu committed Jun 11, 2024
    Configuration menu
    Copy the full SHA
    dc4e30f View commit details
    Browse the repository at this point in the history
  5. Remove duplicities in dependencies

    This creates a Dependency class to make dependencies hashable. Thanks to this
    change, we can easily find duplicates and remove them. This change is really
    necessary for Job dependencies, where the duplicates can be easily created by
    adding the same dependency to a test and job.
    
    Signed-off-by: Jan Richter <jarichte@redhat.com>
    Signed-off-by: Cleber Rosa <crosa@redhat.com>
    richtja authored and clebergnu committed Jun 11, 2024
    Configuration menu
    Copy the full SHA
    e5bed0e View commit details
    Browse the repository at this point in the history

Commits on Jul 3, 2024

  1. store_logging_stream_external test fix

    The store_logging_stream_external test installs external package
    matplotlib and checks with the package properly logs to the avocado
    directories. Unfortunately, this test used hardcoded line number of
    matplotlib. Because of this, the test started failing when the line was
    changed. This commit fixes this test by using regex instead of hardcoded
    string. After this change, the test should be protected against external
    changes in matplotlib package.
    
    Signed-off-by: Jan Richter <jarichte@redhat.com>
    richtja authored and clebergnu committed Jul 3, 2024
    Configuration menu
    Copy the full SHA
    c437878 View commit details
    Browse the repository at this point in the history
  2. Python unittest skip messages on 3.12.2 and later

    On Python 3.12.2 and later the message given when no tests are run
    was reverted to the pre-3.12.1 era. Sigh.
    
    Let's adapt the nrunner selftest to take that into consideration.
    
    Signed-off-by: Cleber Rosa <crosa@redhat.com>
    clebergnu committed Jul 3, 2024
    Configuration menu
    Copy the full SHA
    fe61e01 View commit details
    Browse the repository at this point in the history
  3. Style check: adapt to changes in container image

    The container image used in CI for the static checks now has black
    installed from pip.  This means that the executable "black" may not be
    always accessible, but using "python3 -m" as an entrypoint is.
    
    This is a partial backport of 77ca585.
    
    Signed-off-by: Cleber Rosa <crosa@redhat.com>
    clebergnu committed Jul 3, 2024
    Configuration menu
    Copy the full SHA
    6b5c5ab View commit details
    Browse the repository at this point in the history
  4. Makefile: do not ignore errors on requirements-dev

    Signed-off-by: Cleber Rosa <crosa@redhat.com>
    clebergnu committed Jul 3, 2024
    Configuration menu
    Copy the full SHA
    c94a91f View commit details
    Browse the repository at this point in the history
  5. Devel: bump psutil to match Fedora 38 packages

    Fedora 38 is the development image used on CI, and one that is popular
    for Avocado development at this time.  Let's match the version of
    psutil available on the distro with the development requirement.
    
    This avoid the atempt to compile a custom version of psutil.
    
    Signed-off-by: Cleber Rosa <crosa@redhat.com>
    clebergnu committed Jul 3, 2024
    Configuration menu
    Copy the full SHA
    6c02201 View commit details
    Browse the repository at this point in the history

Commits on Aug 5, 2024

  1. avocado/utils/archive.py: make probe function for zstd public

    There's value in making the zstd probe function public (which was
    previously not perceived).  This function can be used to skip/cancel
    tests when a suitable zstd is not found.
    
    Signed-off-by: Cleber Rosa <crosa@redhat.com>
    clebergnu committed Aug 5, 2024
    Configuration menu
    Copy the full SHA
    f19efec View commit details
    Browse the repository at this point in the history

Commits on Nov 28, 2024

  1. MarkupSafe requirement for html plugin

    This adds markupsafe<3.0.0 requirements to html plugin, because
    markupsafe-3.0.0 can't be installed with older versions of setuptools on
    RHEL9 and other systems because of `CCompilerError`.
    
    We need to add the same requirement to `ansible` plugin,
    because it would try to install markupsafe-3.0.0
    
    Reference: avocado-framework#6038
    Signed-off-by: Jan Richter <jarichte@redhat.com>
    richtja authored and clebergnu committed Nov 28, 2024
    Configuration menu
    Copy the full SHA
    de5e261 View commit details
    Browse the repository at this point in the history
  2. avocado.utils.kernel: fix kernel version parsing

    This fixes two problems with the current version parse mechanism:
    
     1. Recent setuptools' version parse function, which has dropped
        "LegacyVersion" support, raises an InvalidVersion exception
        for common kernel version info as presented by the system and
        returned by os.uname()
    
     2. The import of the packaging module is broken on systems with no
        setuptools and only the "packaging" module.
    
    This introduces a simple but custom version parse that solves both and
    simplifies dependencies.
    
    Fixes: avocado-framework#6058
    Signed-off-by: Cleber Rosa <crosa@redhat.com>
    clebergnu committed Nov 28, 2024
    Configuration menu
    Copy the full SHA
    0aff7bf View commit details
    Browse the repository at this point in the history
  3. PyYAML and Python 3.7 compatibility

    PyYAML versions 6.0.0 and later, are not compatible with Python 3.7.
    
    Let's drop the minimal version requirement, which is not needed on
    current platforms while setting the maximum version to avoid Python
    3.7 incompatibilities.
    
    Reference: https://pypi.org/project/PyYAML/5.4.1/
    Signed-off-by: Cleber Rosa <crosa@redhat.com>
    clebergnu committed Nov 28, 2024
    Configuration menu
    Copy the full SHA
    e072aac View commit details
    Browse the repository at this point in the history
  4. selftests/check.py: use more meaningful names for the job-api suites

    The number based naming of the job-api related suites do not provide
    clear information on what it is about.  This uses a more meaningful
    name for them.
    
    Signed-off-by: Cleber Rosa <crosa@redhat.com>
    clebergnu committed Nov 28, 2024
    Configuration menu
    Copy the full SHA
    5d0bc37 View commit details
    Browse the repository at this point in the history
  5. selftests: drop job-api test variant that may exceed sqlite3's own li…

    …mits
    
    The sqlite3 module (and actually, even the non-python binary with the
    same name), have "interesting" limitations when it comes to the
    database path.
    
    When the test that creates the journal file, and checks for it, runs
    as part of an RPM build, the extra directories (/buildir/...) exceed
    the path size limit.
    
    While it would be possible to check if the "logdir" path, plus the
    name of the journal database path, would eventually exceed the sqlite3
    limits, this logic would be exclusive for one test variant.
    
    IMO it does not justify adding such logic to keep a test that has
    considerably low value.
    
    Signed-off-by: Cleber Rosa <crosa@redhat.com>
    clebergnu committed Nov 28, 2024
    Configuration menu
    Copy the full SHA
    22d647a View commit details
    Browse the repository at this point in the history
  6. python-avocado.spec: remove markupsafe version pinning on Fedora 42

    During RPM builds on Fedora 42 (really rawhide at this time), the RPM
    package dependency system provides MarkupSafe > 3.0.0 (currently
    3.0.2).  So, we remove the pinning, or else, the build would fail due
    to a version requirement conflict.
    
    Signed-off-by: Cleber Rosa <crosa@redhat.com>
    clebergnu committed Nov 28, 2024
    Configuration menu
    Copy the full SHA
    8f006bc View commit details
    Browse the repository at this point in the history