Skip to content

ci: tox-lsr 3.17.1 - previous update broke container tests, this fixes them [citest_skip]#265

Merged
richm merged 1 commit intomainfrom
tox-lsr-3.17.1
Mar 13, 2026
Merged

ci: tox-lsr 3.17.1 - previous update broke container tests, this fixes them [citest_skip]#265
richm merged 1 commit intomainfrom
tox-lsr-3.17.1

Conversation

@richm
Copy link
Copy Markdown
Contributor

@richm richm commented Mar 13, 2026

tox-lsr 3.17.1 has a fix for the broken container tests

There was one shell function for both setting up the callback plugins and the connection plugin.
When this function was skipped, the ANSIBLE_CONNECTION_PLUGINS environment variable was not
set, so all subsequent tests failed. The connection plugin must be present and the env. var.
must be set in order to run any container tests. The code was fixed to ensure that there is
always a connection plugin installed in the correct location and that ANSIBLE_CONNECTION_PLUGINS
is always set and contains this path.

Also, setting up the callback plugins and the connection plugin is already idempotent, so no
reason to skip them.

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

Summary by Sourcery

Update CI workflows to use tox-lsr 3.17.1 and ensure container test plugins are always configured.

CI:

  • Bump tox-lsr version from 3.17.0 to 3.17.1 across GitHub Actions workflows.
  • Adjust qemu-kvm integration test workflow to always configure callback/connection plugins instead of conditionally skipping them.
  • Fix minor indentation in the container support detection shell snippet in the qemu-kvm integration workflow.

…s them [citest_skip]

tox-lsr 3.17.1 has a fix for the broken container tests

There was one shell function for both setting up the callback plugins and the connection plugin.
When this function was skipped, the ANSIBLE_CONNECTION_PLUGINS environment variable was not
set, so all subsequent tests failed.  The connection plugin must be present and the env. var.
must be set in order to run any container tests.  The code was fixed to ensure that there is
always a connection plugin installed in the correct location and that ANSIBLE_CONNECTION_PLUGINS
is always set and contains this path.

Also, setting up the callback plugins and the connection plugin is already idempotent, so no
reason to skip them.

Signed-off-by: Rich Megginson <rmeggins@redhat.com>
@richm richm self-assigned this Mar 13, 2026
@sourcery-ai
Copy link
Copy Markdown

sourcery-ai bot commented Mar 13, 2026

Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

Updates GitHub Actions workflows to use tox-lsr 3.17.1 so container tests get a properly installed connection plugin and ANSIBLE_CONNECTION_PLUGINS set, and stops skipping callback/connection plugin setup between test runs in qemu-kvm integration tests.

Sequence diagram for CI container tests with tox_lsr 3_17_1 connection plugin setup

sequenceDiagram
    actor Developer
    participant GitHub_Actions as GitHub_Actions_Workflow
    participant tox_lsr as tox_lsr_3_17_1
    participant Ansible as Ansible_Test_Harness
    participant Container as Container_Tests

    Developer->>GitHub_Actions: push_changes
    GitHub_Actions->>GitHub_Actions: pip_install_tox_lsr(version_3_17_1)

    GitHub_Actions->>tox_lsr: invoke_test_environment_setup
    tox_lsr->>tox_lsr: install_connection_plugin_if_missing
    tox_lsr->>tox_lsr: ensure_callback_plugins_installed
    tox_lsr->>tox_lsr: set_env_ANSIBLE_CONNECTION_PLUGINS
    tox_lsr-->>GitHub_Actions: environment_ready

    GitHub_Actions->>Ansible: run_ansible_tests
    Ansible->>Container: run_container_based_tests
    Container-->>Ansible: test_results
    Ansible-->>GitHub_Actions: summarize_results
    GitHub_Actions-->>Developer: CI_status_report
Loading

Flow diagram for idempotent plugin setup in qemu_kvm integration tests

flowchart TD
    A[start_qemu_kvm_integration_workflow]
    B[install_tox_lsr_3_17_1_via_pip]
    C[run_plugin_setup_step]
    D[connection_plugin_present?]
    E[install_connection_plugin]
    F[callback_plugins_present?]
    G[install_callback_plugins]
    H[set_ANSIBLE_CONNECTION_PLUGINS_env_var]
    I[run_qemu_kvm_container_tests]
    J[collect_and_report_results]

    A --> B --> C --> D
    D -->|yes| F
    D -->|no| E --> F
    F -->|yes| H
    F -->|no| G --> H
    H --> I --> J --> A
Loading

File-Level Changes

Change Details Files
Update CI workflows to use tox-lsr 3.17.1 instead of 3.17.0.
  • Bump tox-lsr version in qemu-kvm integration test workflow.
  • Bump tox-lsr version in ansible-lint workflow.
  • Bump tox-lsr version in ansible-managed-var-comment workflow.
  • Bump tox-lsr version in ansible-test workflow.
.github/workflows/qemu-kvm-integration-tests.yml
.github/workflows/ansible-lint.yml
.github/workflows/ansible-managed-var-comment.yml
.github/workflows/ansible-test.yml
Adjust qemu-kvm integration test workflow logic to ensure callback/connection plugins are always configured.
  • Fix indentation of the containerbuild tag check to be correctly nested under the image comparison condition.
  • Stop exporting SKIP_CALLBACK_PLUGINS for the first test run.
  • Stop setting SKIP_CALLBACK_PLUGINS=true for subsequent test runs, allowing plugin setup to remain enabled and idempotent across all runs.
.github/workflows/qemu-kvm-integration-tests.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
Copy Markdown

@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 - I've left some high level feedback:

  • The tox-lsr version string is duplicated across multiple workflows; consider centralizing it via a reusable workflow, composite action, or a single workflow env variable so future upgrades only require changing it in one place.
  • Since SKIP_CALLBACK_PLUGINS is no longer used in the workflow, double-check that there are no remaining references to this variable or its behavior in any scripts or tooling invoked by these jobs to avoid confusion.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- The tox-lsr version string is duplicated across multiple workflows; consider centralizing it via a reusable workflow, composite action, or a single workflow env variable so future upgrades only require changing it in one place.
- Since SKIP_CALLBACK_PLUGINS is no longer used in the workflow, double-check that there are no remaining references to this variable or its behavior in any scripts or tooling invoked by these jobs to avoid confusion.

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 864384a into main Mar 13, 2026
13 checks passed
@richm richm deleted the tox-lsr-3.17.1 branch March 13, 2026 16:07
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