From b6b909675fa43fc30c5284a4d9fbc1106e288b51 Mon Sep 17 00:00:00 2001 From: thomascorthals Date: Thu, 29 Oct 2026 21:43:31 +0100 Subject: [PATCH 1/2] =?UTF-8?q?Solr=2010.0=20=E2=86=92=2010.1=20for=20inte?= =?UTF-8?q?gration=20tests?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/run-tests.yml | 4 ++-- composer.json | 1 - examples/execute_all.php | 2 +- tests/Integration/AbstractTechproductsTestCase.php | 2 ++ tests/Integration/Fixtures/conf/schema9.patch | 4 ++-- tests/Integration/Fixtures/conf/solrconf10.patch | 4 ++-- 6 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 741ca6e9d..0a01087f8 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -59,12 +59,12 @@ jobs: ref: branch_9_11 path: lucene-solr - - name: Checkout solr 10.0 + - name: Checkout solr 10.1 if: matrix.solr == 10 uses: actions/checkout@v6 with: repository: apache/solr - ref: branch_10_0 + ref: branch_10_1 path: lucene-solr - name: Start Solr ${{ matrix.solr }} in ${{ matrix.mode }} mode diff --git a/composer.json b/composer.json index 71a524125..97691cf1a 100755 --- a/composer.json +++ b/composer.json @@ -36,7 +36,6 @@ "phpstan/phpstan-phpunit": "^2.0", "phpunit/phpunit": "^10.5", "rawr/phpunit-data-provider": "^3.3", - "roave/security-advisories": "dev-master", "spomky-labs/cbor-php": "^3.1", "symfony/event-dispatcher": "^5.0 || ^6.0 || ^7.0 || ^8.0" }, diff --git a/examples/execute_all.php b/examples/execute_all.php index b5f1cac08..b54668bc1 100644 --- a/examples/execute_all.php +++ b/examples/execute_all.php @@ -205,7 +205,7 @@ ]; // @todo Update Luke response parser for changes in SOLR-8127 - if (9 === $solrVersion) { + if (9 <= $solrVersion) { $skipForCloud[] = '2.11.1-luke-query-index.php'; $skipForCloud[] = '2.11.2-luke-query-all-fields.php'; $skipForCloud[] = '2.11.2.1-luke-query-field-details.php'; diff --git a/tests/Integration/AbstractTechproductsTestCase.php b/tests/Integration/AbstractTechproductsTestCase.php index edeef4397..bcb969d45 100644 --- a/tests/Integration/AbstractTechproductsTestCase.php +++ b/tests/Integration/AbstractTechproductsTestCase.php @@ -4629,6 +4629,8 @@ public function testExtractIntoDocument(bool $usePostBigExtractRequestPlugin): v $extract = self::$client->createExtract(); $extract->setUprefix('attr_'); + // defaults to "ignore_" in solrconfig.xml but ignored fields were broken when Solr 10.1 was released + $extract->addFieldMapping('div', 'attr_div'); $extract->setCommit(true); $extract->setCommitWithin(0); $extract->setOmitHeader(false); diff --git a/tests/Integration/Fixtures/conf/schema9.patch b/tests/Integration/Fixtures/conf/schema9.patch index 835bc6ab0..77d92f23f 100644 --- a/tests/Integration/Fixtures/conf/schema9.patch +++ b/tests/Integration/Fixtures/conf/schema9.patch @@ -2,7 +2,7 @@ diff --git a/solr/server/solr/configsets/sample_techproducts_configs/conf/manage index 190214aebad..7a76a28276a 100644 --- a/solr/server/solr/configsets/sample_techproducts_configs/conf/managed-schema.xml +++ b/solr/server/solr/configsets/sample_techproducts_configs/conf/managed-schema.xml -@@ -118,7 +118,9 @@ +@@ -119,7 +119,9 @@ @@ -13,7 +13,7 @@ index 190214aebad..7a76a28276a 100644 @@ -11,7 +11,7 @@ index 17d07d3c23c..d130a823f00 100644 true -@@ -698,6 +698,39 @@ +@@ -699,6 +698,39 @@ 5 From 61078b2c3d95732e525284475efa18740d6fb339 Mon Sep 17 00:00:00 2001 From: thomascorthals Date: Sat, 7 Nov 2026 14:16:08 +0100 Subject: [PATCH 2/2] Add Solr issue SOLR-18627 to comment about ignored fields --- tests/Integration/AbstractTechproductsTestCase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Integration/AbstractTechproductsTestCase.php b/tests/Integration/AbstractTechproductsTestCase.php index bcb969d45..0b2d2d2be 100644 --- a/tests/Integration/AbstractTechproductsTestCase.php +++ b/tests/Integration/AbstractTechproductsTestCase.php @@ -4629,7 +4629,7 @@ public function testExtractIntoDocument(bool $usePostBigExtractRequestPlugin): v $extract = self::$client->createExtract(); $extract->setUprefix('attr_'); - // defaults to "ignore_" in solrconfig.xml but ignored fields were broken when Solr 10.1 was released + // defaults to "ignore_" in solrconfig.xml but ignored fields throw NPE in Solr 10.1 (SOLR-18627) $extract->addFieldMapping('div', 'attr_div'); $extract->setCommit(true); $extract->setCommitWithin(0);