Skip to content

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

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]#175
richm merged 1 commit intomainfrom
tox-lsr-3.17.1

Conversation

@richm
Copy link
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 configuration to use tox-lsr 3.17.1 and ensure container tests and dependencies run correctly.

Bug Fixes:

  • Fix broken container-based integration tests by always setting up required plugins instead of conditionally skipping them.

Enhancements:

  • Bump tox-lsr dependency from 3.17.0 to 3.17.1 across GitHub workflows.
  • Add community.general collection requirement with a supported version range.
  • Correct indentation in the container support check within the qemu-kvm integration workflow.

CI:

  • Align all GitHub Actions workflows to install tox-lsr 3.17.1 for consistent testing behavior.

…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

sourcery-ai bot commented Mar 13, 2026

Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

Updates CI workflows to use tox-lsr 3.17.1 and adjusts container integration test settings so that required Ansible connection plugins are always configured, plus adds an explicit community.general collection dependency.

Sequence diagram for container tests ensuring connection_plugin setup via tox_lsr_3_17_1

sequenceDiagram
  actor Developer
  participant GithubActions as Github_Actions_Workflow
  participant Pip as pip3
  participant ToxLsr as tox_lsr_3_17_1
  participant AnsibleTest as ansible_test_container

  Developer->>GithubActions: Push_changes_trigger_workflow
  GithubActions->>Pip: Install_tox_lsr_version_3_17_1
  Pip-->>GithubActions: tox_lsr_3_17_1_installed

  GithubActions->>ToxLsr: Run_container_test_environment_setup
  ToxLsr->>ToxLsr: Install_connection_plugin_if_missing
  ToxLsr->>ToxLsr: Set_ANSIBLE_CONNECTION_PLUGINS_env_var
  ToxLsr-->>GithubActions: Environment_ready_for_container_tests

  GithubActions->>AnsibleTest: Run_container_integration_tests
  AnsibleTest->>AnsibleTest: Use_configured_connection_plugin
  AnsibleTest-->>GithubActions: Report_test_results_to_workflow
  GithubActions-->>Developer: CI_status_with_fixed_container_tests
Loading

File-Level Changes

Change Details Files
Ensure container integration tests always configure required Ansible connection plugins instead of skipping callback/connection plugin setup on subsequent runs.
  • Remove use of SKIP_CALLBACK_PLUGINS environment variable before and between test runs in the qemu-kvm integration workflow so callback/connection plugin setup is never skipped
  • Retain SKIP_REQUIREMENTS toggle so dependency installation can still be skipped on subsequent test runs while plugin setup remains idempotent
.github/workflows/qemu-kvm-integration-tests.yml
Bump tox-lsr dependency to 3.17.1 in CI workflows to pick up fixes for container tests and other tooling.
  • Update pip install of tox-lsr from 3.17.0 to 3.17.1 in the qemu-kvm integration tests workflow
  • Update tox-lsr version from 3.17.0 to 3.17.1 in the ansible-lint workflow
  • Update tox-lsr version from 3.17.0 to 3.17.1 in the ansible-managed-var-comment workflow
  • Update tox-lsr version from 3.17.0 to 3.17.1 in the 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
Tidy qemu-kvm integration workflow script indentation for containerbuild tag support detection.
  • Indent the inner if block that checks for the 'containerbuild' galaxy tag using yq to match surrounding shell code styling
.github/workflows/qemu-kvm-integration-tests.yml
Declare an explicit, version-bounded dependency on community.general in collection requirements.
  • Add community.general to collection-requirements with a supported version range '>=6.6.0,<12.0.0' to ensure required modules/plugins are available and compatible in tests and CI
meta/collection-requirements.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 - I've left some high level feedback:

  • The tox-lsr version is hardcoded separately in multiple workflows; consider defining it once via a shared environment variable, composite action, or reusable workflow so future version bumps only require a single change.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- The tox-lsr version is hardcoded separately in multiple workflows; consider defining it once via a shared environment variable, composite action, or reusable workflow so future version bumps 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 76396ee into main Mar 13, 2026
12 checks passed
@richm richm deleted the tox-lsr-3.17.1 branch March 13, 2026 16:02
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