Skip to content

ci: tox-lsr 3.17.0 - container test improvements, use ansible 2.20 for fedora 43#263

Closed
richm wants to merge 1 commit intomainfrom
ci-container-improvements
Closed

ci: tox-lsr 3.17.0 - container test improvements, use ansible 2.20 for fedora 43#263
richm wants to merge 1 commit intomainfrom
ci-container-improvements

Conversation

@richm
Copy link
Copy Markdown
Contributor

@richm richm commented Mar 10, 2026

tox-lsr 3.17.0 has some container test improvements - better output, faster runs

Use Ansible 2.20 for qemu/container tests on fedora 43

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

Summary by Sourcery

Update CI workflows to use tox-lsr 3.17.0 and Ansible 2.20 for Fedora 43 test scenarios, and optimize container test runs via environment flags.

CI:

  • Bump tox-lsr version from 3.16.0 to 3.17.0 across GitHub Actions workflows.
  • Switch Fedora 43 qemu and container test matrices to use Ansible Core 2.20 images.
  • Adjust container test job environment variables to run full setup on the first test and skip certain steps on subsequent tests for faster runs.

…r fedora 43

tox-lsr 3.17.0 has some container test improvements - better output, faster runs

Use Ansible 2.20 for qemu/container tests on fedora 43

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

sourcery-ai bot commented Mar 10, 2026

Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

Updates CI workflows to use tox-lsr 3.17.0 and Ansible 2.20 for Fedora 43 images, while refining container test execution behavior for faster runs and clearer output in qemu-kvm integration tests.

Sequence diagram for qemu-kvm integration tests with tox-lsr 3.17.0 and Ansible 2.20

sequenceDiagram
  actor Dev as Developer
  participant GH as GitHub_Actions
  participant Job as qemu-kvm_integration_job
  participant Tox as Tox
  participant TL as Tox_lsr_3_17_0
  participant An as Ansible_2_20
  participant C as Fedora_43_Container
  participant Q as QEMU_KVM_VM

  Dev->>GH: Push_commit_or_open_PR
  GH->>Job: Start_qemu-kvm_integration_tests

  Job->>Job: Checkout_repository
  Job->>Job: Set_up_Python_environment
  Job->>Tox: Invoke_tox
  Tox->>TL: Load_tox-lsr_3_17_0_plugins

  TL->>C: Start_or_prepare_test_container
  TL->>An: Configure_ansible_2_20_for_tests
  An->>C: Run_playbooks_in_container

  TL->>Q: Start_QEMU_KVM_VM_for_integration_tests
  An->>Q: Execute_integration_test_playbooks

  Q-->>TL: Test_results_with_improved_output
  TL-->>Job: Aggregated_results_and_logs
  Job-->>GH: Job_status_and_artifacts
  GH-->>Dev: CI_status_checks_updated
Loading

Flow diagram for updated ansible-test CI workflow

flowchart TD
  start[Trigger_ansible-test_workflow]
  checkout[actions_checkout]
  setup_python[Set_up_Python_environment]
  install_tox_lsr[Install_tox_and_tox-lsr_3_17_0]
  pull_image[Pull_Fedora_43_test_container]
  configure_ansible[Configure_Ansible_2_20]
  run_tox[Run_tox_envs_for_ansible-tests]
  run_container_tests[Run_container_based_ansible_tests]
  improved_output[Produce_improved_container_test_output]
  finish[Publish_results_and_finish]

  start --> checkout --> setup_python --> install_tox_lsr --> pull_image --> configure_ansible --> run_tox --> run_container_tests --> improved_output --> finish
Loading

File-Level Changes

Change Details Files
Bump tox-lsr from 3.16.0 to 3.17.0 across CI workflows.
  • Update tox-lsr version in qemu-kvm integration tests workflow install step.
  • Update tox-lsr version in ansible-lint workflow install step.
  • Update tox-lsr version in ansible-managed-var-comment workflow install step.
  • Update tox-lsr version in ansible-test workflow install step.
.github/workflows/qemu-kvm-integration-tests.yml
.github/workflows/ansible-lint.yml
.github/workflows/ansible-managed-var-comment.yml
.github/workflows/ansible-test.yml
Use Ansible 2.20 for Fedora 43 qemu and container test scenarios.
  • Change Fedora 43 qemu image env from qemu-ansible-core-2-19 to qemu-ansible-core-2-20.
  • Change Fedora 43 container image env from container-ansible-core-2-19 to container-ansible-core-2-20.
  • Change Fedora 43 bootc container image env from container-ansible-core-2-19 to container-ansible-core-2-20.
.github/workflows/qemu-kvm-integration-tests.yml
Adjust container test loop environment flags to align with new tox-lsr behavior and speed up subsequent runs.
  • Remove previous LSR_CONTAINER_PROFILE and LSR_CONTAINER_PRETTY overrides.
  • Introduce SKIP_REQUIREMENTS and SKIP_CALLBACK_PLUGINS flags with initial false values before the test loop.
  • Enable SKIP_REQUIREMENTS and SKIP_CALLBACK_PLUGINS after each test iteration to skip these steps on subsequent 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:

  • In the container test loop, consider adding a brief comment or link explaining why it is safe to skip requirements and callback plugins after the first run, so future maintainers understand the guarantees about test isolation and environment reuse.
  • Since the SKIP_REQUIREMENTS and SKIP_CALLBACK_PLUGINS flags are tightly coupled to tox-lsr 3.17.0 behavior, it may be worth guarding their use (or documenting in the workflow) so that future tox-lsr bumps don’t inadvertently change semantics without revisiting this logic.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- In the container test loop, consider adding a brief comment or link explaining why it is safe to skip requirements and callback plugins after the first run, so future maintainers understand the guarantees about test isolation and environment reuse.
- Since the SKIP_REQUIREMENTS and SKIP_CALLBACK_PLUGINS flags are tightly coupled to tox-lsr 3.17.0 behavior, it may be worth guarding their use (or documenting in the workflow) so that future tox-lsr bumps don’t inadvertently change semantics without revisiting this logic.

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
Copy link
Copy Markdown
Contributor Author

richm commented Mar 11, 2026

cockpit full packages is also affected by the pcs-web-ui scriptlet systemd issue on fedora 43 bootc containers:

2026-03-11T00:08:11+0000 [2] INFO [scriptlet] System has not been booted with systemd as init system (PID 1). Can't operate.
2026-03-11T00:08:11+0000 [2] INFO [scriptlet] Failed to connect to system scope bus via local transport: Host is down
2026-03-11T00:08:11+0000 [2] WARNING [rpm] %posttrans(pcs-web-ui-0.12.1-5.fc43.noarch) scriptlet failed, exit status 1
2026-03-11T00:08:11+0000 [2] INFO RPM callback stop %posttrans scriptlet "pcs-web-ui-0:0.12.1-5.fc43.noarch" return code 1
2026-03-11T00:08:11+0000 [2] WARNING RPM callback non-critical error in %posttrans scriptlet "pcs-web-ui-0:0.12.1-5.fc43.noarch"

@richm richm closed this Mar 11, 2026
@richm richm deleted the ci-container-improvements branch March 11, 2026 00:13
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