From 48887579245272e03128149c839705649ec90155 Mon Sep 17 00:00:00 2001 From: "Doroszlai, Attila" Date: Sun, 7 Jul 2024 17:36:15 +0200 Subject: [PATCH 1/2] HDDS-11112. Verify javadoc creation in CI --- .github/workflows/ci.yml | 4 ++-- hadoop-ozone/dev-support/checks/build.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 830707dce287..5fecb41438ad 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -142,7 +142,7 @@ jobs: distribution: 'temurin' java-version: ${{ matrix.java }} - name: Run a full build - run: hadoop-ozone/dev-support/checks/build.sh -Pdist -Psrc ${{ inputs.ratis_args }} + run: hadoop-ozone/dev-support/checks/build.sh -Pdist -Psrc -Dmaven.javadoc.skip=true ${{ inputs.ratis_args }} env: DEVELOCITY_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }} - name: Store binaries for tests @@ -218,7 +218,7 @@ jobs: distribution: 'temurin' java-version: ${{ matrix.java }} - name: Compile Ozone using Java ${{ matrix.java }} - run: hadoop-ozone/dev-support/checks/build.sh -Dskip.npx -Dskip.installnpx -Djavac.version=${{ matrix.java }} ${{ inputs.ratis_args }} + run: hadoop-ozone/dev-support/checks/build.sh -Pdist -Dskip.npx -Dskip.installnpx -Djavac.version=${{ matrix.java }} ${{ inputs.ratis_args }} env: OZONE_WITH_COVERAGE: false DEVELOCITY_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }} diff --git a/hadoop-ozone/dev-support/checks/build.sh b/hadoop-ozone/dev-support/checks/build.sh index a9fe7702c90f..f9938e703874 100755 --- a/hadoop-ozone/dev-support/checks/build.sh +++ b/hadoop-ozone/dev-support/checks/build.sh @@ -18,7 +18,7 @@ cd "$DIR/../../.." || exit 1 : ${OZONE_WITH_COVERAGE:="false"} -MAVEN_OPTIONS='-V -B -Dmaven.javadoc.skip=true -DskipTests -DskipDocs --no-transfer-progress' +MAVEN_OPTIONS='-V -B -DskipTests -DskipDocs --no-transfer-progress' if [[ "${OZONE_WITH_COVERAGE}" == "true" ]]; then MAVEN_OPTIONS="${MAVEN_OPTIONS} -Pcoverage" From 6490fad2d3d1b0df7149da3742c597c8d6c1d3aa Mon Sep 17 00:00:00 2001 From: "Doroszlai, Attila" Date: Wed, 10 Jul 2024 08:51:22 +0200 Subject: [PATCH 2/2] skip javadoc in flaky-test-check and repeat-acceptance --- .github/workflows/intermittent-test-check.yml | 2 +- .github/workflows/repeat-acceptance.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/intermittent-test-check.yml b/.github/workflows/intermittent-test-check.yml index f4020db9508a..5de5654aced3 100644 --- a/.github/workflows/intermittent-test-check.yml +++ b/.github/workflows/intermittent-test-check.yml @@ -115,7 +115,7 @@ jobs: java-version: 8 - name: Build (most) of Ozone run: | - args="-Dskip.npx -Dskip.installnpx -DskipShade" + args="-Dskip.npx -Dskip.installnpx -DskipShade -Dmaven.javadoc.skip=true" if [[ "${{ github.event.inputs.ratis-ref }}" != "" ]]; then args="$args -Dratis.version=${{ needs.ratis.outputs.ratis-version }}" args="$args -Dratis.thirdparty.version=${{ needs.ratis.outputs.thirdparty-version }}" diff --git a/.github/workflows/repeat-acceptance.yml b/.github/workflows/repeat-acceptance.yml index 5c0edd3d71d1..1c6fc3797edb 100644 --- a/.github/workflows/repeat-acceptance.yml +++ b/.github/workflows/repeat-acceptance.yml @@ -108,7 +108,7 @@ jobs: distribution: 'temurin' java-version: ${{ env.JAVA_VERSION }} - name: Run a full build - run: hadoop-ozone/dev-support/checks/build.sh -Pdist -Psrc + run: hadoop-ozone/dev-support/checks/build.sh -Pdist -Psrc -Dmaven.javadoc.skip=true env: DEVELOCITY_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }} - name: Store binaries for tests