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:
- name: System Information
run: |
hostname
cat /proc/cpuinfo
cat /proc/meminfo
df
- name: Checkout Code
uses: actions/checkout@v2
- name: Cache Maven Dependencies
@ -93,6 +95,17 @@ jobs:
${{ env.MAVEN_COMMAND }}
${{ env.MAVEN_PROFILES }}
${{ 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:
timeout-minutes: 120
@ -101,8 +114,10 @@ jobs:
steps:
- name: System Information
run: |
hostname
top -l 1 | grep PhysMem
sysctl machdep.cpu
df
- name: Checkout Code
uses: actions/checkout@v2
- name: Cache Maven Dependencies
@ -139,6 +154,17 @@ jobs:
${{ env.MAVEN_COMMAND }}
${{ env.MAVEN_PROFILES }}
${{ 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:
timeout-minutes: 120
@ -148,6 +174,7 @@ jobs:
- name: System Information
run: |
systeminfo
df
- name: Setup Git
run: |
git config --global core.autocrlf false
@ -191,3 +218,14 @@ jobs:
run: >-
${{ env.MAVEN_COMMAND }}
${{ 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>
</excludes>
<redirectTestOutputToFile>true</redirectTestOutputToFile>
<forkNode implementation="org.apache.maven.plugin.surefire.extensions.SurefireForkNodeFactory" />
<argLine combine.children="append">-Xmx1g
-Djava.net.preferIPv4Stack=true
-Duser.language=${user.language}