Skip to content

Add reporting for release CodeBuild jobs #2833

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 9, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion buildspecs/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,11 @@ phases:
cd test/module-path-tests
mvn package
mvn exec:exec -P mock-tests
fi
fi
finally:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TIL about "finally"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same!

- mkdir -p codebuild-test-reports
- find ./ -name 'TEST-*.xml' -type f -exec cp {} codebuild-test-reports/ \;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't there HTML output as well?

Copy link
Contributor Author

@dagnir dagnir Nov 9, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The reports only process the XML files; they're used to generate the dashboards, instead of just displaying the artifacts.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, cool, I didn't know that they generated dashboards.

reports:
UnitTests:
files:
- 'codebuild-test-reports/**/*'
9 changes: 8 additions & 1 deletion buildspecs/integ-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,11 @@ phases:
cd test/module-path-tests
mvn package
mvn exec:exec -P integ-tests
fi
fi
finally:
- mkdir -p codebuild-test-reports
- find ./ -name 'TEST-*.xml' -type f -exec cp {} codebuild-test-reports/ \;
reports:
IntegTests:
files:
- 'codebuild-test-reports/**/*'
9 changes: 8 additions & 1 deletion buildspecs/stability-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,11 @@ phases:

build:
commands:
- mvn clean install -P stability-tests -pl :stability-tests --am
- mvn clean install -P stability-tests -pl :stability-tests --am
finally:
- mkdir -p codebuild-test-reports
- find ./ -name 'TEST-*.xml' -type f -exec cp {} codebuild-test-reports/ \;
reports:
StabilityTests:
files:
- 'codebuild-test-reports/**/*'