← Back to Pull requests

rosdep: add python3-pytest-subtests #55822

Open
unknown opened this pull request with 382 lines diff across 4 files
View on GitHub
unknown unknown commented on Nov 27, 2026 18:35 UTC
Author

<!-- Thank you for contributing a change to the rosdistro. There are two primary types of submissions.
Please select the appropriate template from below: ROSDEP_RULE_TEMPLATE or DOC_INDEX_TEMPLATE

If you're making a new release with bloom please use bloom to create the pull request automatically (except for the naming review request which must be made manually).
If you've already run the release bloom has a --pull-request-only option you can use.-->

<!-- ROSDEP_RULE_TEMPLATE: Submitter Please review the contributing guidelines: https://github.com/ros/rosdistro/blob/master/CONTRIBUTING.md -->

Please add the following dependency to the rosdep database.

Package name:

python3-pytest-subtests (pytest plugin for running subtests, integrated into pytest from 9.0.0 and up)

Package Upstream Source:

https://github.com/pytest-dev/pytest-subtests

Purpose of using this:

This is an pytest plugin to allow for doing multiple subtests in a single test, allowing for the results to be reported independently.
Allowing for more fine grained test results.

This feature was deemed useful enough to integrate into pytest directly from version 9.
As a result, it is being removed from newer (mostly bleeding-edge) distros, most have a fallback package for now.

Distro packaging links:

Links to Distribution Packages

<!-- Replace the REQUIRED areas with the URL to the package. For IF AVAILABLE areas, either put in the URL to the package or state 'not available'.
More info at https://github.com/ros/rosdistro/blob/master/CONTRIBUTING.md#guidelines-for-rosdep-rules -->

  • Debian: https://packages.debian.org/

  • - https://packages.debian.org/trixie/python3-pytest-subtests
  • Ubuntu: https://packages.ubuntu.com/

  • - https://packages.ubuntu.com/jammy/python3-pytest-subtests, https://packages.ubuntu.com/noble/python3-pytest-subtests, https://packages.ubuntu.com/resolute/python3-pytest-subtests
  • Fedora: https://packages.fedoraproject.org/

  • - https://packages.fedoraproject.org/pkgs/python-pytest-subtests/python3-pytest-subtests/
  • Arch: https://www.archlinux.org/packages/

  • - https://archlinux.org/packages/extra/any/python-pytest-subtests/
  • Gentoo: https://packages.gentoo.org/

  • - https://packages.gentoo.org/packages/dev-python/pytest-subtests
  • macOS: https://formulae.brew.sh/

  • - (Not sure...)
  • Alpine: https://pkgs.alpinelinux.org/packages

  • - https://pkgs.alpinelinux.org/package/v3.23/main/x86_64/py3-pytest-subtests (newer versions its included in pytest)
  • NixOS/nixpkgs: https://search.nixos.org/packages

  • - https://search.nixos.org/packages?channel=unstable&query=pytest-sub#show=python314Packages.pytest-subtests
  • openSUSE: https://software.opensuse.org/package/

  • - https://software.opensuse.org/package/python-pytest-subtests
  • RHEL: Find a binary RPM in AlmaLinux or EPEL

  • - (Yes, tested with docker)

    [!NOTE]

    This is the first time, I've done this.

    I tried to cover all bases/platforms, which might have been excessive.

    Diff: 382 lines (+286 / -96) across 4 files Reviewer: clalancette Review duration: 5898m
    All Vouch review confidence checks passed
    Residual risk 0.23 = Change Risk (0.43) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.43 · 382 lines diff across 4 files
    0.43
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    46%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.356
    Shallow Review Depth shallow_review_depth
    0.344
    Real PR Conversation Timeline
    1 comments
    "Review active on #55822"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 46.7% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 43.0% (MEDIUM) · Higher = larger blast radius
    43.0%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 46.7% · Lower = rushed or shallow review
    46.7%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 22.9% · Safe to merge
    22.9%
    Repository