From efe2bca4cb4c8a57b5ee3fe6a1525aa33d4aa235 Mon Sep 17 00:00:00 2001 From: Joe Witt Date: Wed, 25 Mar 2020 11:29:17 -0400 Subject: [PATCH] NIFI-7238 Continue to improve Github Actions CI stability --- .github/workflows/ci-workflow.yml | 116 +++++++++++++++--------------- 1 file changed, 58 insertions(+), 58 deletions(-) diff --git a/.github/workflows/ci-workflow.yml b/.github/workflows/ci-workflow.yml index 0e4d979b20..9764c0a036 100644 --- a/.github/workflows/ci-workflow.yml +++ b/.github/workflows/ci-workflow.yml @@ -16,51 +16,51 @@ jobs: uses: actions/cache@v1.1.2 with: path: ~/.npm - key: nix-npm-${{ hashFiles('**/package-lock.json') }} + key: npm-${{ hashFiles('**/package-lock.json') }} restore-keys: | - nix-npm- + npm- - name: Check Maven Com Cache uses: actions/cache@v1.1.2 with: path: ~/.m2/repository/com - key: nix-maven-com-${{ hashFiles('**/pom.xml') }} + key: mvn-com-${{ hashFiles('**/pom.xml') }} restore-keys: | - nix-maven-com- + mvn-com- - name: Check Maven Org Cache uses: actions/cache@v1.1.2 with: path: ~/.m2/repository/org - key: nix-maven-org-${{ hashFiles('**/pom.xml') }} + key: mvn-org-${{ hashFiles('**/pom.xml') }} restore-keys: | - nix-maven-org- + mvn-org- - name: Check Maven Net Cache uses: actions/cache@v1.1.2 with: path: ~/.m2/repository/net - key: nix-maven-net-${{ hashFiles('**/pom.xml') }} + key: mvn-net-${{ hashFiles('**/pom.xml') }} restore-keys: | - nix-maven-net- + mvn-net- - name: Check Maven IO Cache uses: actions/cache@v1.1.2 with: path: ~/.m2/repository/io - key: nix-maven-io-${{ hashFiles('**/pom.xml') }} + key: mvn-io-${{ hashFiles('**/pom.xml') }} restore-keys: | - nix-maven-io- + mvn-io- - name: Check Maven BIZ Cache uses: actions/cache@v1.1.2 with: path: ~/.m2/repository/biz - key: nix-maven-biz-${{ hashFiles('**/pom.xml') }} + key: mvn-biz-${{ hashFiles('**/pom.xml') }} restore-keys: | - nix-maven-biz- + mvn-biz- - name: Check Maven IT Cache uses: actions/cache@v1.1.2 with: path: ~/.m2/repository/it - key: nix-maven-it-${{ hashFiles('**/pom.xml') }} + key: mvn-it-${{ hashFiles('**/pom.xml') }} restore-keys: | - nix-maven-it- + mvn-it- - name: Set up JDK 1.8 FR uses: actions/setup-java@v1.3.0 with: @@ -70,7 +70,7 @@ jobs: MAVEN_OPTS: -Xmx2g -XX:ReservedCodeCacheSize=1g -XX:+UseG1GC -Dorg.slf4j.simpleLogger.defaultLogLevel=WARN -Dmaven.surefire.arguments="-Duser.language=fr -Duser.region=FR -Duser.timezone=Europe/Paris" run: | mvn -version - mvn -T 0.8C install -B -Pcontrib-check,include-grpc -Ddir-only -ntp -ff + mvn -T 0.8C package -B -Pcontrib-check,include-grpc -Ddir-only -ntp -ff -pl -nifi-assembly,-nifi-toolkit/nifi-toolkit-assembly rm -rf ~/.m2/repository/org/apache/nifi ubuntu-build-en: @@ -86,51 +86,51 @@ jobs: uses: actions/cache@v1.1.2 with: path: ~/.npm - key: nix-npm-${{ hashFiles('**/package-lock.json') }} + key: npm-${{ hashFiles('**/package-lock.json') }} restore-keys: | - nix-npm- + npm- - name: Check Maven Com Cache uses: actions/cache@v1.1.2 with: path: ~/.m2/repository/com - key: nix-maven-com-${{ hashFiles('**/pom.xml') }} + key: mvn-com-${{ hashFiles('**/pom.xml') }} restore-keys: | - nix-maven-com- + mvn-com- - name: Check Maven Org Cache uses: actions/cache@v1.1.2 with: path: ~/.m2/repository/org - key: nix-maven-org-${{ hashFiles('**/pom.xml') }} + key: mvn-org-${{ hashFiles('**/pom.xml') }} restore-keys: | - nix-maven-org- + mvn-org- - name: Check Maven Net Cache uses: actions/cache@v1.1.2 with: path: ~/.m2/repository/net - key: nix-maven-net-${{ hashFiles('**/pom.xml') }} + key: mvn-net-${{ hashFiles('**/pom.xml') }} restore-keys: | - nix-maven-net- + mvn-net- - name: Check Maven IO Cache uses: actions/cache@v1.1.2 with: path: ~/.m2/repository/io - key: nix-maven-io-${{ hashFiles('**/pom.xml') }} + key: mvn-io-${{ hashFiles('**/pom.xml') }} restore-keys: | - nix-maven-io- + mvn-io- - name: Check Maven BIZ Cache uses: actions/cache@v1.1.2 with: path: ~/.m2/repository/biz - key: nix-maven-biz-${{ hashFiles('**/pom.xml') }} + key: mvn-biz-${{ hashFiles('**/pom.xml') }} restore-keys: | - nix-maven-biz- + mvn-biz- - name: Check Maven IT Cache uses: actions/cache@v1.1.2 with: path: ~/.m2/repository/it - key: nix-maven-it-${{ hashFiles('**/pom.xml') }} + key: mvn-it-${{ hashFiles('**/pom.xml') }} restore-keys: | - nix-maven-it- + mvn-it- - name: Set up JDK 11 EN uses: actions/setup-java@v1.3.0 with: @@ -140,7 +140,7 @@ jobs: MAVEN_OPTS: -Xmx2g -XX:ReservedCodeCacheSize=1g -XX:+UseG1GC -Dorg.slf4j.simpleLogger.defaultLogLevel=WARN -Dmaven.surefire.arguments="-Duser.language=en -Duser.region=AU -Duser.timezone=Australia/Melbourne" run: | mvn -version - mvn -T 0.8C install -B -Pcontrib-check,include-grpc -Ddir-only -ntp -ff + mvn -T 0.8C package -B -Pcontrib-check,include-grpc -Ddir-only -ntp -ff -pl -nifi-assembly,-nifi-toolkit/nifi-toolkit-assembly rm -rf ~/.m2/repository/org/apache/nifi osx-build-jp: @@ -156,51 +156,51 @@ jobs: uses: actions/cache@v1.1.2 with: path: ~/.npm - key: nix-npm-${{ hashFiles('**/package-lock.json') }} + key: npm-${{ hashFiles('**/package-lock.json') }} restore-keys: | - nix-npm- + npm- - name: Check Maven Com Cache uses: actions/cache@v1.1.2 with: path: ~/.m2/repository/com - key: nix-maven-com-${{ hashFiles('**/pom.xml') }} + key: mvn-com-${{ hashFiles('**/pom.xml') }} restore-keys: | - nix-maven-com- + mvn-com- - name: Check Maven Org Cache uses: actions/cache@v1.1.2 with: path: ~/.m2/repository/org - key: nix-maven-org-${{ hashFiles('**/pom.xml') }} + key: mvn-org-${{ hashFiles('**/pom.xml') }} restore-keys: | - nix-maven-org- + mvn-org- - name: Check Maven Net Cache uses: actions/cache@v1.1.2 with: path: ~/.m2/repository/net - key: nix-maven-net-${{ hashFiles('**/pom.xml') }} + key: mvn-net-${{ hashFiles('**/pom.xml') }} restore-keys: | - nix-maven-net- + mvn-net- - name: Check Maven IO Cache uses: actions/cache@v1.1.2 with: path: ~/.m2/repository/io - key: nix-maven-io-${{ hashFiles('**/pom.xml') }} + key: mvn-io-${{ hashFiles('**/pom.xml') }} restore-keys: | - nix-maven-io- + mvn-io- - name: Check Maven BIZ Cache uses: actions/cache@v1.1.2 with: path: ~/.m2/repository/biz - key: nix-maven-biz-${{ hashFiles('**/pom.xml') }} + key: mvn-biz-${{ hashFiles('**/pom.xml') }} restore-keys: | - nix-maven-biz- + mvn-biz- - name: Check Maven IT Cache uses: actions/cache@v1.1.2 with: path: ~/.m2/repository/it - key: nix-maven-it-${{ hashFiles('**/pom.xml') }} + key: mvn-it-${{ hashFiles('**/pom.xml') }} restore-keys: | - nix-maven-it- + mvn-it- - name: Set up JDK 1.8 JP uses: actions/setup-java@v1.3.0 with: @@ -210,7 +210,7 @@ jobs: MAVEN_OPTS: -Xmx2g -XX:ReservedCodeCacheSize=1g -XX:+UseG1GC -Dorg.slf4j.simpleLogger.defaultLogLevel=WARN -Dmaven.surefire.arguments="-Duser.language=ja -Duser.region=JP -Duser.timezone=Asia/Tokyo" run: | mvn -version - mvn -T 0.8C install -B -Pcontrib-check,include-grpc -Ddir-only -ntp -ff + mvn -T 0.8C package -B -Pcontrib-check,include-grpc -Ddir-only -ntp -ff -pl -nifi-assembly,-nifi-toolkit/nifi-toolkit-assembly rm -rf ~/.m2/repository/org/apache/nifi windows-build: @@ -229,44 +229,44 @@ jobs: uses: actions/cache@v1.1.2 with: path: ~\.m2\repository\com - key: windows-maven-com-${{ hashFiles('**\pom.xml') }} + key: win-mvn-com-${{ hashFiles('**\pom.xml') }} restore-keys: | - windows-maven-com- + win-mvn-com- - name: Check Maven Org Cache uses: actions/cache@v1.1.2 with: path: ~\.m2\repository\org - key: windows-maven-org-${{ hashFiles('**\pom.xml') }} + key: win-mvn-org-${{ hashFiles('**\pom.xml') }} restore-keys: | - windows-maven-org- + win-mvn-org- - name: Check Maven Net Cache uses: actions/cache@v1.1.2 with: path: ~\.m2\repository\net - key: windows-maven-net-${{ hashFiles('**\pom.xml') }} + key: win-mvn-net-${{ hashFiles('**\pom.xml') }} restore-keys: | - windows-maven-net- + win-mvn-net- - name: Check Maven IO Cache uses: actions/cache@v1.1.2 with: path: ~\.m2\repository\io - key: windows-maven-io-${{ hashFiles('**\pom.xml') }} + key: win-mvn-io-${{ hashFiles('**\pom.xml') }} restore-keys: | - windows-maven-io- + win-mvn-io- - name: Check Maven BIZ Cache uses: actions/cache@v1.1.2 with: path: ~\.m2\repository\biz - key: nix-maven-biz-${{ hashFiles('**\pom.xml') }} + key: win-mvn-biz-${{ hashFiles('**\pom.xml') }} restore-keys: | - nix-maven-biz- + win-mvn-biz- - name: Check Maven IT Cache uses: actions/cache@v1.1.2 with: path: ~\.m2\repository\it - key: nix-maven-it-${{ hashFiles('**\pom.xml') }} + key: win-mvn-it-${{ hashFiles('**\pom.xml') }} restore-keys: | - nix-maven-it- + win-mvn-it- - name: Set up JDK 1.8 uses: actions/setup-java@v1.3.0 with: @@ -276,5 +276,5 @@ jobs: MAVEN_OPTS: -Xmx2g -Dorg.slf4j.simpleLogger.defaultLogLevel=WARN -Dmaven.surefire.arguments="-Duser.language=en -Duser.region=US -Duser.timezone=US/Pacific" run: | mvn -version - mvn -T 0.8C install -B -Ddir-only -ntp -ff + mvn -T 0.8C package -B -Ddir-only -ntp -ff -pl -nifi-assembly Remove-Item -path '~\.m2\repository\org\apache\nifi' -recurse -force