Skip to content

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

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]#331
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 test execution flags for container integration tests.

Bug Fixes:

  • Ensure container integration tests always configure required connection plugins by no longer skipping the plugin setup step between test runs.

CI:

  • Bump tox-lsr dependency from 3.17.0 to 3.17.1 across GitHub Actions workflows.
  • Fix minor indentation in qemu-kvm integration tests workflow script.
  • Stop toggling SKIP_CALLBACK_PLUGINS in qemu-kvm integration tests workflow to keep plugin setup consistently enabled.

…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, which fixes container tests by ensuring the Ansible connection plugin is always installed and its environment variable set, and removes skipping of callback/connection plugin setup between test runs.

Sequence diagram for CI container tests with tox_lsr_3_17_1 ensuring connection plugin setup

sequenceDiagram
  participant GHA as GitHub_Actions
  participant Install as Step_install_tox_lsr
  participant Tox as tox_lsr_3_17_1
  participant Tests as Step_run_container_tests
  participant AT as ansible_test

  GHA->>Install: run pip_install_tox_lsr_3_17_1
  Install->>Tox: invoke_tox_for_tests
  activate Tox
  Tox->>Tox: setup_callback_plugins()
  Tox->>Tox: setup_connection_plugin()
  Tox->>Tox: set_env_ANSIBLE_CONNECTION_PLUGINS(path_to_connection_plugin)
  deactivate Tox

  GHA->>Tests: run_container_tests_job
  Tests->>AT: execute_ansible_test_with_env
  AT->>AT: read_ANSIBLE_CONNECTION_PLUGINS
  AT->>AT: load_connection_plugin
  AT-->>Tests: container_tests_pass
Loading

File-Level Changes

Change Details Files
Update all CI workflows to use tox-lsr 3.17.1 to pick up container test fixes.
  • Bump tox-lsr version from 3.17.0 to 3.17.1 in qemu-kvm integration tests workflow.
  • Bump tox-lsr version from 3.17.0 to 3.17.1 in ansible-lint workflow.
  • Bump tox-lsr version from 3.17.0 to 3.17.1 in ansible-managed-var-comment workflow.
  • Bump tox-lsr version from 3.17.0 to 3.17.1 in ansible-test workflow.
  • Bump tox-lsr version 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 container callback/connection plugin setup is always executed during qemu-kvm integration tests.
  • Remove use of SKIP_CALLBACK_PLUGINS flag before first test execution.
  • Remove re-enabling of SKIP_CALLBACK_PLUGINS for subsequent test runs to keep plugin setup idempotent and always executed.
.github/workflows/qemu-kvm-integration-tests.yml
Minor shell script formatting fix in qemu-kvm integration workflow.
  • Fix indentation of conditional checking for the 'containerbuild' galaxy tag to improve readability and correctness.
.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 (now 3.17.1) is duplicated across several workflows; consider centralizing this in a reusable workflow or composite action so future upgrades only require a single change.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- The tox-lsr version string (now 3.17.1) is duplicated across several workflows; consider centralizing this in a reusable workflow or composite action so future upgrades only require a single change.

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