Skip to content

Commit 0882e4b

Browse files
authored
TIKA-4809: run the e2e CI job through install so the plugin zip resolves
2 parents 7d6fe60 + 1883084 commit 0882e4b

1 file changed

Lines changed: 13 additions & 5 deletions

File tree

.github/workflows/main-jdk17-build.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ jobs:
5050

5151
e2e-tests:
5252
runs-on: ubuntu-latest
53-
timeout-minutes: 30
53+
# full-reactor install added; 30 was tight for it
54+
timeout-minutes: 45
5455
needs: build
5556
strategy:
5657
matrix:
@@ -64,8 +65,15 @@ jobs:
6465
distribution: 'temurin'
6566
java-version: ${{ matrix.java }}
6667
cache: 'maven'
68+
# Full reactor, not -pl ... -am: the e2e modules need tika-pipes-plugins zips, and a
69+
# zip-type dependency never matches a jar-packaging reactor module, so -am treats every
70+
# plugin zip as external and skips building those modules entirely. install (not verify)
71+
# because the assembly sets attach=false (TIKA-4723) and an install-phase install-file is
72+
# what puts each zip in the local repo. Tests are skipped here; the build job owns them.
73+
- name: Install all modules (produces the plugin zips)
74+
run: mvn clean install -DskipTests -B "-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn"
75+
# -pl must name the leaf modules: tika-e2e-tests is an aggregator pom, and Maven does
76+
# not pull in a selected aggregator's children, so this job built two pom-only modules
77+
# and ran zero tests while reporting green.
6778
- name: Run E2E Tests
68-
# -pl must name the leaf modules: tika-e2e-tests is an aggregator pom, and Maven
69-
# does not pull in a selected aggregator's children, so this job built two pom-only
70-
# modules and ran zero tests while reporting green.
71-
run: mvn -pl :tika-e2e-tests-server,:tika-grpc-e2e-test -am clean verify -Pe2e -B "-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn"
79+
run: mvn -pl :tika-e2e-tests-server,:tika-grpc-e2e-test clean verify -Pe2e -B "-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn"

0 commit comments

Comments
 (0)