Skip to content

Comments

ci: Add Fedora 42; use tox-lsr 3.9.0; use lsr-report-errors for qemu tests#218

Merged
richm merged 1 commit intomainfrom
changes-20250519
May 19, 2025
Merged

ci: Add Fedora 42; use tox-lsr 3.9.0; use lsr-report-errors for qemu tests#218
richm merged 1 commit intomainfrom
changes-20250519

Conversation

@richm
Copy link
Contributor

@richm richm commented May 19, 2025

Add Fedora 42 to testing farm test matrix, drop Fedora 40

Use tox-lsr 3.9.0 for the --lsr-report-errors-url argument.

Add the argument --lsr-report-errors-url DEFAULT to the qemu test so that
the errors will be written to the output log. This uses the output callback
https://github.com/linux-system-roles/auto-maintenance/blob/main/callback_plugins/lsr_report_errors.py

Use the check_logs.py script
https://github.com/linux-system-roles/auto-maintenance/blob/main/check_logs.py
with the --github-action-format argument to format the errors
in a github action friendly manner.

Rename the log files -FAIL.log or -SUCCESS.log depending on status.
This is compatible with the way the testing farm log files are named, and
makes it easy to tell if a test passed or failed from the log file name.

Upload README.html as artifacts of the build_docs job for debugging

Signed-off-by: Rich Megginson rmeggins@redhat.com

Summary by Sourcery

Enhance CI by adding Fedora 42, dropping Fedora 40, upgrading tox-lsr to 3.9.0, improving QEMU test error reporting and log naming, and uploading documentation artifacts.

New Features:

  • Add Fedora-42 to the CI testing matrix and remove Fedora-40
  • Upload generated README.html as an artifact in the documentation build

Enhancements:

  • Bump tox-lsr dependency to v3.9.0 in all workflows
  • Enable QEMU tests to report errors via --lsr-report-errors-url and integrate check_logs.py for GitHub Action-friendly formatting
  • Rename test log files to include -SUCCESS.log or -FAIL.log suffixes based on test outcome

Build:

  • Upload README.html as an artifact in build_docs workflow

CI:

  • Update Fedora platform matrix in tft.yml
  • Upgrade tox-lsr installation in ansible-lint, ansible-test, and other CI workflows

…tests

Add Fedora 42 to testing farm test matrix, drop Fedora 40

Use tox-lsr 3.9.0 for the `--lsr-report-errors-url` argument.

Add the argument `--lsr-report-errors-url DEFAULT` to the qemu test so that
the errors will be written to the output log.  This uses the output callback
https://github.com/linux-system-roles/auto-maintenance/blob/main/callback_plugins/lsr_report_errors.py

Use the check_logs.py script
https://github.com/linux-system-roles/auto-maintenance/blob/main/check_logs.py
with the `--github-action-format` argument to format the errors
in a github action friendly manner.

Rename the log files `-FAIL.log` or `-SUCCESS.log` depending on status.
This is compatible with the way the testing farm log files are named, and
makes it easy to tell if a test passed or failed from the log file name.

Upload README.html as artifacts of the build_docs job for debugging

Signed-off-by: Rich Megginson <rmeggins@redhat.com>
@richm richm self-assigned this May 19, 2025
@sourcery-ai
Copy link

sourcery-ai bot commented May 19, 2025

Reviewer's Guide

This PR updates CI workflows by bumping tox-lsr to 3.9.0, adding Fedora 42 and removing Fedora 40 from the testing matrix, enhancing QEMU integration tests with lsr-report-errors integration, custom log naming and formatted error reporting, and uploading the generated README.html as a build artifact.

File-Level Changes

Change Details Files
Upgrade tox-lsr to version 3.9.0 across CI jobs
  • Updated pip install URL to reference tox-lsr@3.9.0
  • Standardized tox-lsr installation in integration, lint, plugin-scan, and ansible-test workflows
.github/workflows/qemu-kvm-integration-tests.yml
.github/workflows/ansible-lint.yml
.github/workflows/ansible-managed-var-comment.yml
.github/workflows/ansible-test.yml
Add Fedora 42 support and remove Fedora 40 from test matrix
  • Enhanced yq logic to include Fedora-42 in supported_platforms
  • Updated matrix include entries to replace Fedora-40 with Fedora-42
.github/workflows/tft.yml
Enhance QEMU integration tests for error reporting and log handling
  • Added --lsr-report-errors-url DEFAULT flag to tox invocation
  • Renamed test logs to use -SUCCESS.log and -FAIL.log suffixes
  • Replaced manual grep parsing with check_logs.py using --github-action-format
.github/workflows/qemu-kvm-integration-tests.yml
Upload built README.html as a CI artifact
  • Added an upload-artifact step for README.html in the build_docs job
.github/workflows/build_docs.yml

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @richm - I've reviewed your changes and they look great!

Here's what I looked at during the review
  • 🟢 General issues: all looks good
  • 🟢 Security: all looks good
  • 🟢 Review instructions: all looks good
  • 🟢 Testing: all looks good
  • 🟢 Documentation: all looks good

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@richm richm merged commit 3572435 into main May 19, 2025
24 checks passed
@richm richm deleted the changes-20250519 branch May 19, 2025 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant