← Back to Pull requests

Fixes 840 | Sync test env with group #1036

Closed
unknown closed this pull request without merging on Sep 13, 2026 15:06 UTC
View on GitHub
unknown unknown commented on Sep 11, 2026 00:16 UTC
Author

Hello. I stumbled upon this issue when trying to run parallel tests in CI with shared services and use

bundle exec parallel_rspec -n ${TEST_PIPELINES} --only-group ${GROUP_INDEX} --verbose ./spec

This fixes https://github.com/grosser/parallel_tests/issues/840

I couldn't think of a better name for the flag... I considered --sync-group-index, but ultimately ended with this longer one to ensure it being more descriptive of the action is doing.

<details><summary>More details about the bug</summary>
<p>

I tried passing TEST_ENV_NUMBER, but this would always get overwritten to nil due to how the code is written. Before, the VM had isolated services for the DB & Redis, which we need in our application. But this is consuming a lot of compute. So, we need to share the resources which allows the system to work better. Unfortunately, due to flaky specs, I can't see myself being able to run bundle exec rake parallel:spec[${TEST_PIPELINES}] because this could take hours. Whereas breaking the tests like this, in parallel tests in CI, we can retry in much shorter test groups to rule out, and track flaky specs.

</p>
</details>

Checklist


  • Feature branch is up-to-date with master (if not - rebase it).

  • Added tests.

  • Added an entry to the [Changelog](../blob/master/CHANGELOG.md) if the new

  • code introduces user-observable changes.
  • Update Readme.md when cli options are changed
  • Diff: 182 lines (+136 / -46) across 2 files Reviewer: grosser Review duration: 3769m
    All Vouch review confidence checks passed
    Residual risk 0.15 = Change Risk (0.36) × (1 − Review Confidence (0.57)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.36 · 182 lines diff across 2 files
    0.36
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    56%
    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.312
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #1036"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 56.8% 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: 35.6% (MEDIUM) · Higher = larger blast radius
    35.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: 56.8% · Lower = rushed or shallow review
    56.8%
    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: 15.4% · Safe to merge
    15.4%