Skip to content

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

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]#156
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 adjust container test setup flags to restore container test execution.

Bug Fixes:

  • Ensure container tests always configure required Ansible connection plugins by no longer skipping the plugin setup via SKIP_CALLBACK_PLUGINS.

CI:

  • Bump tox-lsr dependency from 3.17.0 to 3.17.1 across GitHub Actions workflows.
  • Fix indentation in the container support check within the qemu-kvm integration tests workflow.
  • Stop toggling SKIP_CALLBACK_PLUGINS in the qemu-kvm integration tests workflow to allow consistent plugin initialization.

…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 requested a review from spetrosi as a code owner March 13, 2026 15:27
@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 (which fixes broken container tests) and simplifies test execution by no longer skipping callback/connection plugin setup between test runs in the qemu-kvm integration workflow.

Sequence diagram for CI container tests with tox_lsr_3_17_1 ensuring connection_plugin setup

sequenceDiagram
  participant GA as GitHubActions
  participant W as qemu_kvm_integration_workflow
  participant T as tox
  participant L as tox_lsr_3_17_1
  participant A as Ansible
  participant CP as ConnectionPlugin
  participant E as Env_ANSIBLE_CONNECTION_PLUGINS
  participant C as ContainerTests

  GA->>W: Trigger workflow run
  W->>T: Invoke tox environment
  T->>L: Load tox_lsr configuration

  alt previous_version_3_17_0
    L->>L: Decide to skip plugin_setup in some cases
    L-->>E: ANSIBLE_CONNECTION_PLUGINS not set
    L-->>CP: Connection plugin may not be installed
    L->>A: Run container tests
    A->>C: Execute tests
    C-->>A: Fail due to missing connection plugin
  else fixed_version_3_17_1
    L->>L: Always run plugin_setup (idempotent)
    L->>CP: Ensure connection plugin installed
    L->>E: Set ANSIBLE_CONNECTION_PLUGINS with plugin path
    L->>A: Run container tests
    A->>C: Execute tests
    C-->>A: Tests run successfully using connection plugin
  end
Loading

File-Level Changes

Change Details Files
Update CI to use tox-lsr 3.17.1 so container and related tests pick up the latest fixes.
  • Bump tox-lsr from 3.17.0 to 3.17.1 in qemu-kvm integration tests workflow.
  • Bump tox-lsr from 3.17.0 to 3.17.1 in ansible-lint workflow.
  • Bump tox-lsr from 3.17.0 to 3.17.1 in ansible-managed-var-comment workflow.
  • Bump tox-lsr from 3.17.0 to 3.17.1 in ansible-test workflow.
  • Bump tox-lsr from 3.17.0 to 3.17.1 in python-unit-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
.github/workflows/python-unit-test.yml
Ensure callback/connection plugin setup is always executed during qemu-kvm integration tests so ANSIBLE_CONNECTION_PLUGINS is correctly configured for container tests.
  • Remove SKIP_CALLBACK_PLUGINS environment variable toggling before and after each test run.
  • Keep SKIP_REQUIREMENTS toggling logic but ensure plugin setup is not skipped across iterations.
  • Fix indentation in the containerbuild tag detection shell snippet to maintain proper YAML structure and shell semantics.
.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 is hardcoded in multiple workflows; consider centralizing it (e.g., in a reusable workflow or using a workflow/env variable) so it only needs to be updated in one place next time.
  • Since SKIP_CALLBACK_PLUGINS is no longer exported in qemu-kvm-integration-tests.yml, double-check there are no remaining references to this variable in tox/env scripts or other workflows to avoid dead configuration paths.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- The tox-lsr version is hardcoded in multiple workflows; consider centralizing it (e.g., in a reusable workflow or using a workflow/env variable) so it only needs to be updated in one place next time.
- Since SKIP_CALLBACK_PLUGINS is no longer exported in qemu-kvm-integration-tests.yml, double-check there are no remaining references to this variable in tox/env scripts or other workflows to avoid dead configuration paths.

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 89ac24c into main Mar 13, 2026
14 checks passed
@richm richm deleted the tox-lsr-3.17.1 branch March 13, 2026 16:01
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