Repository navigation
Conversation
Every .bats file has a CATS port under solr/packaging/src/test, and the rolling upgrade test lives on as solr/docker's RollingUpgradeTest. - 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
|
Automated PR readiness judgements (LLM-generated; may be wrong; not updated on later pushes).
|
Note in cats.adoc and the packaging README that the BATS suites were replaced and removed, and keep the "no new .bats files" rule in AGENTS.md for agents trained on the old layout.
|
I think, if this is supposed to be a worklog, it might be better in JIRA if you don't expect this work to actually happen IN this PR. I supposed we can edit and draw lines through each item as we make progress and do the accounting work in the description? For example, I want to update the status on the SOLR-16957.... |
Not a worklog, just for reference. I haver posted a review comment on each of the above listed open PRs, so each PR owner will have some context as to how to proceed. Nothing more to do in the context of this PR. I'm investigating the CI check failures... |
There was a problem hiding this comment.
I guess with AI especially, we are going to see our dev-docs start expanding quickly... (I only make this comment because the "scalar openapi explorer" pr also adds this).. We may in the future need some stort of plan around this!
epugh
left a comment
There was a problem hiding this comment.
I think the one big question for me is the package name of .shell. versus .cats.? This is looking great...
| fi | ||
|
|
||
| # This helps with debugging when running bats tests however the whole script is not compliant yet | ||
| # This helps with debugging when running shell tests however the whole script is not compliant yet |
There was a problem hiding this comment.
interesting that "the whole script is not compliant yet", that seems like a great place to spend some tokens to get to done..
| * <p>Focused on verifying how DocumentCategorizerUpdateProcessorFactory is set up to run. | ||
| * | ||
| * <p>See test_opennlp.bats for a complete system test of DocumentCategorizerUpdateProcessorFactory. | ||
| * <p>See {@code org.apache.solr.shell.OpenNlpTest} in solr/packaging for a complete system test of |
There was a problem hiding this comment.
I wonder if the package should have been org.apache.solr.cats.OpenNlpTest? I was a bit surprised and then figured it out... I know it's a "shell", but really, in my head it's a "CATS" test... not a "shell" test....
| env("SOLR_INCLUDE", solrIncludeFile.toString()); | ||
| run("solr start"); | ||
| run("solr create -c COLL_NAME -d \"" + analysisExtrasConf() + "\"") | ||
| copyResource( |
There was a problem hiding this comment.
I wonder if we could have a method called copyResourceForCATS and just pass in one variable? If we see the same path duplicated, that seems odd... copyResourceForCATS("analysis_extras_config/conf/solrconfig.xml");
| // each variant's SOLR_HOMEs, port-block counter and failure snapshots apart; picocli selects the | ||
| // CLI implementation, or null to take whatever bin/solr defaults to. | ||
| // Shared configuration for the CATS suites. outputName keeps each variant's SOLR_HOMEs, port-block | ||
| // counter and failure snapshots apart; picocli selects the CLI implementation, or null to take |
There was a problem hiding this comment.
small tweak, but "picocli selects the CLI"? Maybe "Defaults to picocli as the CLI implementation"?
| - For BATS shell integration tests in `solr/packaging/test/`: | ||
| - Always use `run <command>` followed by `assert_output --partial "..."` or `refute_output --partial "..."` instead of capturing output into local variables and using `[[ ]]` comparisons | ||
| - Avoid patterns like `local var=$(cmd | grep ...); [[ "$var" == *"..."* ]]` — use `run cmd` + `assert_output`/`refute_output` instead | ||
| - Shell tests for `bin/solr`/`bin\solr.cmd` are CATS suites (`SolrCatsTestCase`); BATS was removed, don't add `.bats` files. |
There was a problem hiding this comment.
Do we need the BATS were removed text? I guess for now, and maybe in a year we remove it...
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
These are the open PRs that add or modify BATS tests:
Current,
.batschanges need porting to CATStest_start_solr.bats.test_help.bats.test_start_solr.bats.test_secure_example.bats.SOLR-8442: Make security easier WIP #5107 (@epugh, draft): SOLR-8442: Make security easier WIP. TouchesWONT BE MERGED.test_secure_example.batsandtest_ssl.bats.<str name="hideStackTrace">${solr.hideStackTrace:false}</str>. Touchestest_start_solr.bats.tk:chunksinto adense_vectorfield #4863 (@epugh, draft): Solr Cell: index Tika 4.xtk:chunksinto adense_vectorfield. Touchestest_extraction.bats.test_security_agent.bats, which needs a new CATS suite.test_ubi.bats, which needs a new CATS suite.SOLR-18094 Support running embedded-zk in "ensemble" mode with new node role #2391 (@gerlowskija, draft): SOLR-18094 Support running embedded-zk in "ensemble" mode with new node role. TouchesDONE!test_assert.bats.bats_helper.bash,test_config.bats,test_create_collection.bats,test_delete_collection.bats,test_packages.bats(new),test_ssl.batsandtest_status.bats. Last updated May 2026.Likely candidates for closing now that BATS is gone
solr/dockerasRollingUpgradeTest.tk:chunksinto adense_vectorfield #4863 carries the Tika 4 work.SOLR-16957: Test user managed cluster with a twist! #1875 (@epugh): SOLR-16957: Test user managed cluster with a twist! The PR contains onlyWON'T BE MERGED, CLOSED.test_scenario_loosely_coupled_clusters.batsand was last updated October 2025.