← Back to Pull requests

SOLR-18645: Remove the BATS suites, replaced by CATS #5369

Closed
unknown closed this pull request without merging on Nov 25, 2026 14:57 UTC
View on GitHub
unknown unknown commented on Nov 20, 2026 12:23 UTC
Author

Now that CATS is in, it's time to remove the cometing BATS suite. Every .bats file has a CATS port under solr/packaging/src/test

  • Delete solr/packaging/test, the BatsTask, integrationTestsPicocli, downloadBats and the bats-* versions

  • Keep integrationTests as an alias for catsTests, for the Jenkins Solr-TestIntegration jobs

  • Move analysis_extras_config into src/test-files for ModulesTest

  • Drop the deprecated BATS workflow, its labeler rule and the BATS docs
  • These are the open PRs that add or modify BATS tests:

    Current, .bats changes need porting to CATS

  • #5346 (@janhoy): SOLR-9714: Let each node have its own stop port. Touches test_start_solr.bats.

  • #5337 (@iprithv): SOLR-18649 SOLR-18654: fix CLI help and missing-subcommand exit codes. Touches test_help.bats.

  • #5333 (@epugh): SOLR-11966: Add to node role "zookeeper" for embedded Zookeeper, optimize shutdown ordering. Touches test_start_solr.bats.

  • #5329 (@epugh): SOLR-18659: Secure embedded ZooKeeper automatically when SSL is on. Touches test_secure_example.bats.

  • ~~#5107 (@epugh, draft): SOLR-8442: Make security easier WIP. Touches test_secure_example.bats and test_ssl.bats.~~ WONT BE MERGED.

  • #4893 (@epugh): SOLR-17864: Provide backwards support for <str name="hideStackTrace">${solr.hideStackTrace:false}</str>. Touches test_start_solr.bats.

  • #4863 (@epugh, draft): Solr Cell: index Tika 4.x tk:chunks into a dense_vector field. Touches test_extraction.bats.

  • #4471 (@janhoy, draft): SOLR-17767: Add a security Java Agent (SIP-24). Adds test_security_agent.bats, which needs a new CATS suite.

  • #2452 (@epugh, draft): User Behavior Insights implementation for Apache Solr. Adds test_ubi.bats, which needs a new CATS suite.

  • ~~#2391 (@gerlowskija, draft): SOLR-18094 Support running embedded-zk in "ensemble" mode with new node role. Touches test_assert.bats.~~ DONE!

  • #1951 (@HoustonPutman, draft): Port defaulting should be the same for all tools. Touches bats_helper.bash, test_config.bats, test_create_collection.bats, test_delete_collection.bats, test_packages.bats (new), test_ssl.bats and test_status.bats. Last updated May 2026.
  • Likely candidates for closing now that BATS is gone

  • #5299 (@nick-boss-tech, draft): SOLR-18609: Packaging BATS tests accept failures they should catch: harden the assertions. The PR is entirely about BATS assertions. Any weak assertion it found is worth checking against the CATS port before closing.

  • #4280 (@dsmiley, draft): Exclude test_rolling_upgrade from integrationTests; add testSmokeBats task. Superseded: the rolling upgrade test now lives in solr/docker as RollingUpgradeTest.

  • #4853 (@solrbot): Revamp Solr Extraction Module to work with Tika 4 - abandoned. The title already says abandoned, and #4863 carries the Tika 4 work.

  • ~~#1875 (@epugh): SOLR-16957: Test user managed cluster with a twist! The PR contains only test_scenario_loosely_coupled_clusters.bats and was last updated October 2025.~~ WON'T BE MERGED, CLOSED.
  • Diff: 378 lines (+283 / -95) across 4 files Reviewer: janhoy Review duration: 7354m
    All Vouch review confidence checks passed
    Residual risk 0.17 = Change Risk (0.43) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.43 · 378 lines diff across 4 files
    0.43
    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%
    60%
    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.355
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #5369"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% 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: 42.9% (MEDIUM) · Higher = larger blast radius
    42.9%
    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: 60.5% · Lower = rushed or shallow review
    60.5%
    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: 17.0% · Safe to merge
    17.0%
    Repository