Skip to content

Commit c95158a

Browse files
committed
Add reporting for release CodeBuild jobs
Trawling through the logs looking for the tests that failed is time consuming, especially because tests are run in parallel, making the logs harder to follow. This uses the test result dashboarding feature from CodeBuild to make it much easier and faster to find tests that failed during a release.
1 parent de77ae5 commit c95158a

File tree

3 files changed

+36
-3
lines changed

3 files changed

+36
-3
lines changed

buildspecs/build.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,15 @@ phases:
1515
cd test/module-path-tests
1616
mvn package
1717
mvn exec:exec -P mock-tests
18-
fi
18+
fi
19+
# Codebuild doesn't have good support for mixed formats within the same
20+
# directory tree so just excluding these for now. Only the TCK tests are
21+
# based on TestNG.
22+
- find ./ -name testng-native-results -prune -type d -exec rm -r {} \;
23+
- find ./ -name testng-junit-results -prune -type d -exec rm -r {} \;
24+
25+
reports:
26+
UnitTests:
27+
files:
28+
- '**/*'
29+
base-directory: '**/*/target/surefire-reports' # Location of the reports

buildspecs/integ-test.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,15 @@ phases:
2323
cd test/module-path-tests
2424
mvn package
2525
mvn exec:exec -P integ-tests
26-
fi
26+
fi
27+
# Codebuild doesn't have good support for mixed formats within the same
28+
# directory tree so just excluding these for now. Only the TCK tests are
29+
# based on TestNG.
30+
- find ./ -name testng-native-results -prune -type d -exec rm -r {} \;
31+
- find ./ -name testng-junit-results -prune -type d -exec rm -r {} \;
32+
33+
reports:
34+
IntegTests:
35+
files:
36+
- '**/*'
37+
base-directory: '**/*/target/surefire-reports' # Location of the reports

buildspecs/stability-test.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,15 @@ phases:
77

88
build:
99
commands:
10-
- mvn clean install -P stability-tests -pl :stability-tests --am
10+
- mvn clean install -P stability-tests -pl :stability-tests --am
11+
# Codebuild doesn't have good support for mixed formats within the same
12+
# directory tree so just excluding these for now. Only the TCK tests are
13+
# based on TestNG.
14+
- find ./ -name testng-native-results -prune -type d -exec rm -r {} \;
15+
- find ./ -name testng-junit-results -prune -type d -exec rm -r {} \;
16+
17+
reports:
18+
StabilityTests:
19+
files:
20+
- '**/*'
21+
base-directory: '**/*/target/surefire-reports' # Location of the reports

0 commit comments

Comments
 (0)