← Back to Pull requests

tests(ruyi-pytest): calculate ruyi install timeout by pkg count #503

Merged
weilinfox merged 1 files (2 lines) on Sep 25, 2026 13:06 UTC
View on GitHub
weilinfox weilinfox commented on Sep 24, 2026 03:30 UTC
Author

Summary by Sourcery

Enhancements:

  • Adjust the pytest installation timeout calculation to account for the number of packages being installed.
  • Diff: 2 lines (+1 / -1) across 1 files Reviewer: xen0n Review duration: 2016m
    All Vouch review confidence checks passed
    Residual risk 0.02 = Change Risk (0.10) × (1 − Review Confidence (0.84)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.10 · 2 lines diff across 1 files
    0.10
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.79 · 1 substantive comment(s)
    0.79
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 50%
    83%
    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.066
    Real PR Conversation Timeline
    4 items
    sourcery-ai[bot] sourcery-ai[bot] commented on Sep 24, 2026 03:30 UTC
    Bot

    <!-- Generated by sourcery-ai[bot]: start review_guide -->

    <details>
    <summary>Reviewer's guide (collapsed on small PRs)</summary>

    Reviewer's Guide

    The test harness now calculates the ruyi install timeout dynamically from the package count, making installation timing less dependent on a fixed timeout.

    File-Level Changes

    | Change | Details | Files |
    | ------ | ------- | ----- |
    | Adjust the pytest dependency installation timeout based on the number of packages being installed. | <ul><li>Update the test harness reference to incorporate package-count-driven timeout calculation.</li></ul> | tests/ruyi-pytest |

    </details>

    ---

    <details>
    <summary>Tips and commands</summary>

    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

  • [Contact our support team](mailto:support@sourcery.ai) for questions or feedback.

  • Visit our documentation for detailed guides and information.

  • Keep in touch with the Sourcery team by following us on X/Twitter, LinkedIn or GitHub.
  • </details>

    <!-- Generated by sourcery-ai[bot]: end review_guide -->

    sourcery-ai[bot] sourcery-ai[bot] commented on Sep 24, 2026 03:31 UTC
    Reviewer

    Hey - I've reviewed your changes and they look great!

    ***

    <details>
    <summary>Sourcery is free for open source - if you like our reviews please consider sharing them ✨</summary>

  • X

  • Mastodon

  • LinkedIn

  • Facebook
  • </details>

    xen0n xen0n approved these changes on Sep 25, 2026 13:05 UTC
    Approved Reviewer

    Approved these changes.

    Reviewers
    Assignees
    weilinfox weilinfox
    Labels
    risk: low confidence: 83.9% 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: 9.6% (LOW) · Higher = larger blast radius
    9.6%
    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: 83.9% · Lower = rushed or shallow review
    83.9%
    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: 2% · Safe to merge
    2%
    Repository