NIFI-9586 Removed Surefire ForkNodeFactory configuration

- Falling back to default LegacyForkNodeFactory due to SUREFIRE-1800
- Added upload of Surefire results on automated build failures

This closes #5675

Signed-off-by: David Handermann <exceptionfactory@apache.org>
This commit is contained in:
Paul Grey 2022-01-18 19:05:18 -05:00 committed by exceptionfactory
parent 1d353435a5
commit 70aa719cbf
No known key found for this signature in database
GPG Key ID: 29B6A52D2AAE8DBA
2 changed files with 38 additions and 1 deletions

View File

@ -55,8 +55,10 @@ jobs:
steps: steps:
- name: System Information - name: System Information
run: | run: |
hostname
cat /proc/cpuinfo cat /proc/cpuinfo
cat /proc/meminfo cat /proc/meminfo
df
- name: Checkout Code - name: Checkout Code
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Cache Maven Dependencies - name: Cache Maven Dependencies
@ -93,6 +95,17 @@ jobs:
${{ env.MAVEN_COMMAND }} ${{ env.MAVEN_COMMAND }}
${{ env.MAVEN_PROFILES }} ${{ env.MAVEN_PROFILES }}
${{ env.MAVEN_PROJECTS }} ${{ env.MAVEN_PROJECTS }}
- name: Upload Test Reports
uses: actions/upload-artifact@v2
with:
name: surefire-reports-ubuntu-en
path: |
./**/target/surefire-reports/*.txt
./**/target/surefire-reports/*.xml
retention-days: 3
if: failure()
- name: Post Disk Usage
run: df
macos-build-jp: macos-build-jp:
timeout-minutes: 120 timeout-minutes: 120
@ -101,8 +114,10 @@ jobs:
steps: steps:
- name: System Information - name: System Information
run: | run: |
hostname
top -l 1 | grep PhysMem top -l 1 | grep PhysMem
sysctl machdep.cpu sysctl machdep.cpu
df
- name: Checkout Code - name: Checkout Code
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Cache Maven Dependencies - name: Cache Maven Dependencies
@ -139,6 +154,17 @@ jobs:
${{ env.MAVEN_COMMAND }} ${{ env.MAVEN_COMMAND }}
${{ env.MAVEN_PROFILES }} ${{ env.MAVEN_PROFILES }}
${{ env.MAVEN_PROJECTS }} ${{ env.MAVEN_PROJECTS }}
- name: Upload Test Reports
uses: actions/upload-artifact@v2
with:
name: surefire-reports-macos-jp
path: |
./**/target/surefire-reports/*.txt
./**/target/surefire-reports/*.xml
retention-days: 3
if: failure()
- name: Post Disk Usage
run: df
windows-build: windows-build:
timeout-minutes: 120 timeout-minutes: 120
@ -148,6 +174,7 @@ jobs:
- name: System Information - name: System Information
run: | run: |
systeminfo systeminfo
df
- name: Setup Git - name: Setup Git
run: | run: |
git config --global core.autocrlf false git config --global core.autocrlf false
@ -191,3 +218,14 @@ jobs:
run: >- run: >-
${{ env.MAVEN_COMMAND }} ${{ env.MAVEN_COMMAND }}
${{ env.MAVEN_PROJECTS }} ${{ env.MAVEN_PROJECTS }}
- name: Upload Test Reports
uses: actions/upload-artifact@v2
with:
name: surefire-reports-windows-fr
path: |
./**/target/surefire-reports/*.txt
./**/target/surefire-reports/*.xml
retention-days: 3
if: failure()
- name: Post Disk Usage
run: df

View File

@ -622,7 +622,6 @@
<exclude>**/*ITSpec.class</exclude> <exclude>**/*ITSpec.class</exclude>
</excludes> </excludes>
<redirectTestOutputToFile>true</redirectTestOutputToFile> <redirectTestOutputToFile>true</redirectTestOutputToFile>
<forkNode implementation="org.apache.maven.plugin.surefire.extensions.SurefireForkNodeFactory" />
<argLine combine.children="append">-Xmx1g <argLine combine.children="append">-Xmx1g
-Djava.net.preferIPv4Stack=true -Djava.net.preferIPv4Stack=true
-Duser.language=${user.language} -Duser.language=${user.language}