Skip to content

Commit

Permalink
Generate test reports to monitor performance (2600hz#6380)
Browse files Browse the repository at this point in the history
* Generate test reports to monitor performance

CircleCI has a nifty 'insights' tool that can ingest test reports
generated in XML (see eunit's eunit_surefire for format).

This change includes the generation of those XML files when running
eunit tests and instructing CircleCI to ingest them for reporting
purposes.

Eventually I would like kazoo_proper to also generate these types of
files so we can track performance of those tests as well.

* find TEST-*.xml

* update per-app CI configs

* document the sed command

* run eunit in parallel

* timings werid
  • Loading branch information
jamesaimonetti authored Mar 13, 2020
1 parent 2fca2ce commit 8762cc3
Show file tree
Hide file tree
Showing 42 changed files with 460 additions and 13 deletions.
10 changes: 10 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,16 @@ jobs:
- run:
name: Running Eunit/Proper tests
command: make eunit
- run:
name: Save test results
command: |
mkdir -p ~/test-results/junit/
find . -type f -name "TEST-*.xml" -exec cp {} ~/test-results/junit/ \;
when: always
- store_test_results:
path: ~/test-results
- store_artifacts:
path: ~/test-results/junit/
## disabling this for now until we figure out why it is crashing, and how to set token
# - run:
# name: Uploading Coverage Report
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ compile_commands.json
/make/.deps.mk.*
/make/circleci
/core/*/cover/*.html
/core/*/cover/*.xml
/applications/*/cover/*.html
/applications/*/cover/*.xml

/applications/crossbar/priv/couchdb/schemas/port_requests.to_scheduled.json

Expand Down
11 changes: 11 additions & 0 deletions applications/acdc/.circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,17 @@ jobs:
- run:
name: Running Eunit tests
command: make -C "$KAZOO_ROOT/$APP_PATH" eunit
- run:
name: Save test results
command: |
mkdir -p ~/test-results/junit/
find . -type f -name "TEST-*.xml" -exec cp {} ~/test-results/junit/ ;
when: always
- store_test_results:
path: ~/test-results
- store_artifacts:
path: ~/test-results/junit/

## disabling this for now until we figure out why it is crashing, and how to set token
# - run:
# name: Uploading Coverage Report
Expand Down
11 changes: 11 additions & 0 deletions applications/ananke/.circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,17 @@ jobs:
- run:
name: Running Eunit tests
command: make -C "$KAZOO_ROOT/$APP_PATH" eunit
- run:
name: Save test results
command: |
mkdir -p ~/test-results/junit/
find . -type f -name "TEST-*.xml" -exec cp {} ~/test-results/junit/ ;
when: always
- store_test_results:
path: ~/test-results
- store_artifacts:
path: ~/test-results/junit/

## disabling this for now until we figure out why it is crashing, and how to set token
# - run:
# name: Uploading Coverage Report
Expand Down
11 changes: 11 additions & 0 deletions applications/blackhole/.circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,17 @@ jobs:
- run:
name: Running Eunit tests
command: make -C "$KAZOO_ROOT/$APP_PATH" eunit
- run:
name: Save test results
command: |
mkdir -p ~/test-results/junit/
find . -type f -name "TEST-*.xml" -exec cp {} ~/test-results/junit/ ;
when: always
- store_test_results:
path: ~/test-results
- store_artifacts:
path: ~/test-results/junit/

## disabling this for now until we figure out why it is crashing, and how to set token
# - run:
# name: Uploading Coverage Report
Expand Down
11 changes: 11 additions & 0 deletions applications/braintree/.circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,17 @@ jobs:
- run:
name: Running Eunit tests
command: make -C "$KAZOO_ROOT/$APP_PATH" eunit
- run:
name: Save test results
command: |
mkdir -p ~/test-results/junit/
find . -type f -name "TEST-*.xml" -exec cp {} ~/test-results/junit/ ;
when: always
- store_test_results:
path: ~/test-results
- store_artifacts:
path: ~/test-results/junit/

## disabling this for now until we figure out why it is crashing, and how to set token
# - run:
# name: Uploading Coverage Report
Expand Down
11 changes: 11 additions & 0 deletions applications/call_inspector/.circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,17 @@ jobs:
- run:
name: Running Eunit tests
command: make -C "$KAZOO_ROOT/$APP_PATH" eunit
- run:
name: Save test results
command: |
mkdir -p ~/test-results/junit/
find . -type f -name "TEST-*.xml" -exec cp {} ~/test-results/junit/ ;
when: always
- store_test_results:
path: ~/test-results
- store_artifacts:
path: ~/test-results/junit/

## disabling this for now until we figure out why it is crashing, and how to set token
# - run:
# name: Uploading Coverage Report
Expand Down
11 changes: 11 additions & 0 deletions applications/callflow/.circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,17 @@ jobs:
- run:
name: Running Eunit tests
command: make -C "$KAZOO_ROOT/$APP_PATH" eunit
- run:
name: Save test results
command: |
mkdir -p ~/test-results/junit/
find . -type f -name "TEST-*.xml" -exec cp {} ~/test-results/junit/ ;
when: always
- store_test_results:
path: ~/test-results
- store_artifacts:
path: ~/test-results/junit/

## disabling this for now until we figure out why it is crashing, and how to set token
# - run:
# name: Uploading Coverage Report
Expand Down
11 changes: 11 additions & 0 deletions applications/camper/.circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,17 @@ jobs:
- run:
name: Running Eunit tests
command: make -C "$KAZOO_ROOT/$APP_PATH" eunit
- run:
name: Save test results
command: |
mkdir -p ~/test-results/junit/
find . -type f -name "TEST-*.xml" -exec cp {} ~/test-results/junit/ ;
when: always
- store_test_results:
path: ~/test-results
- store_artifacts:
path: ~/test-results/junit/

## disabling this for now until we figure out why it is crashing, and how to set token
# - run:
# name: Uploading Coverage Report
Expand Down
11 changes: 11 additions & 0 deletions applications/cccp/.circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,17 @@ jobs:
- run:
name: Running Eunit tests
command: make -C "$KAZOO_ROOT/$APP_PATH" eunit
- run:
name: Save test results
command: |
mkdir -p ~/test-results/junit/
find . -type f -name "TEST-*.xml" -exec cp {} ~/test-results/junit/ ;
when: always
- store_test_results:
path: ~/test-results
- store_artifacts:
path: ~/test-results/junit/

## disabling this for now until we figure out why it is crashing, and how to set token
# - run:
# name: Uploading Coverage Report
Expand Down
11 changes: 11 additions & 0 deletions applications/cdr/.circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,17 @@ jobs:
- run:
name: Running Eunit tests
command: make -C "$KAZOO_ROOT/$APP_PATH" eunit
- run:
name: Save test results
command: |
mkdir -p ~/test-results/junit/
find . -type f -name "TEST-*.xml" -exec cp {} ~/test-results/junit/ ;
when: always
- store_test_results:
path: ~/test-results
- store_artifacts:
path: ~/test-results/junit/

## disabling this for now until we figure out why it is crashing, and how to set token
# - run:
# name: Uploading Coverage Report
Expand Down
11 changes: 11 additions & 0 deletions applications/conference/.circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,17 @@ jobs:
- run:
name: Running Eunit tests
command: make -C "$KAZOO_ROOT/$APP_PATH" eunit
- run:
name: Save test results
command: |
mkdir -p ~/test-results/junit/
find . -type f -name "TEST-*.xml" -exec cp {} ~/test-results/junit/ ;
when: always
- store_test_results:
path: ~/test-results
- store_artifacts:
path: ~/test-results/junit/

## disabling this for now until we figure out why it is crashing, and how to set token
# - run:
# name: Uploading Coverage Report
Expand Down
10 changes: 10 additions & 0 deletions applications/crossbar/.circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,16 @@ jobs:
- run:
name: Running Eunit tests
command: make -C "$KAZOO_ROOT/$APP_PATH" eunit
- run:
name: Save test results
command: |
mkdir -p ~/test-results/junit/
find . -type f -name "TEST-*.xml" -exec cp {} ~/test-results/junit/ ;
when: always
- store_test_results:
path: ~/test-results
- store_artifacts:
path: ~/test-results/junit/
## disabling this for now until we figure out why it is crashing, and how to set token
# - run:
# name: Uploading Coverage Report
Expand Down
11 changes: 11 additions & 0 deletions applications/doodle/.circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,17 @@ jobs:
- run:
name: Running Eunit tests
command: make -C "$KAZOO_ROOT/$APP_PATH" eunit
- run:
name: Save test results
command: |
mkdir -p ~/test-results/junit/
find . -type f -name "TEST-*.xml" -exec cp {} ~/test-results/junit/ ;
when: always
- store_test_results:
path: ~/test-results
- store_artifacts:
path: ~/test-results/junit/

## disabling this for now until we figure out why it is crashing, and how to set token
# - run:
# name: Uploading Coverage Report
Expand Down
11 changes: 11 additions & 0 deletions applications/ecallmgr/.circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,17 @@ jobs:
- run:
name: Running Eunit tests
command: make -C "$KAZOO_ROOT/$APP_PATH" eunit
- run:
name: Save test results
command: |
mkdir -p ~/test-results/junit/
find . -type f -name "TEST-*.xml" -exec cp {} ~/test-results/junit/ ;
when: always
- store_test_results:
path: ~/test-results
- store_artifacts:
path: ~/test-results/junit/

## disabling this for now until we figure out why it is crashing, and how to set token
# - run:
# name: Uploading Coverage Report
Expand Down
11 changes: 11 additions & 0 deletions applications/edr/.circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,17 @@ jobs:
- run:
name: Running Eunit tests
command: make -C "$KAZOO_ROOT/$APP_PATH" eunit
- run:
name: Save test results
command: |
mkdir -p ~/test-results/junit/
find . -type f -name "TEST-*.xml" -exec cp {} ~/test-results/junit/ ;
when: always
- store_test_results:
path: ~/test-results
- store_artifacts:
path: ~/test-results/junit/

## disabling this for now until we figure out why it is crashing, and how to set token
# - run:
# name: Uploading Coverage Report
Expand Down
11 changes: 11 additions & 0 deletions applications/fax/.circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,17 @@ jobs:
- run:
name: Running Eunit tests
command: make -C "$KAZOO_ROOT/$APP_PATH" eunit
- run:
name: Save test results
command: |
mkdir -p ~/test-results/junit/
find . -type f -name "TEST-*.xml" -exec cp {} ~/test-results/junit/ ;
when: always
- store_test_results:
path: ~/test-results
- store_artifacts:
path: ~/test-results/junit/

## disabling this for now until we figure out why it is crashing, and how to set token
# - run:
# name: Uploading Coverage Report
Expand Down
11 changes: 11 additions & 0 deletions applications/frontier/.circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,17 @@ jobs:
- run:
name: Running Eunit tests
command: make -C "$KAZOO_ROOT/$APP_PATH" eunit
- run:
name: Save test results
command: |
mkdir -p ~/test-results/junit/
find . -type f -name "TEST-*.xml" -exec cp {} ~/test-results/junit/ ;
when: always
- store_test_results:
path: ~/test-results
- store_artifacts:
path: ~/test-results/junit/

## disabling this for now until we figure out why it is crashing, and how to set token
# - run:
# name: Uploading Coverage Report
Expand Down
11 changes: 11 additions & 0 deletions applications/hangups/.circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,17 @@ jobs:
- run:
name: Running Eunit tests
command: make -C "$KAZOO_ROOT/$APP_PATH" eunit
- run:
name: Save test results
command: |
mkdir -p ~/test-results/junit/
find . -type f -name "TEST-*.xml" -exec cp {} ~/test-results/junit/ ;
when: always
- store_test_results:
path: ~/test-results
- store_artifacts:
path: ~/test-results/junit/

## disabling this for now until we figure out why it is crashing, and how to set token
# - run:
# name: Uploading Coverage Report
Expand Down
11 changes: 11 additions & 0 deletions applications/hotornot/.circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,17 @@ jobs:
- run:
name: Running Eunit tests
command: make -C "$KAZOO_ROOT/$APP_PATH" eunit
- run:
name: Save test results
command: |
mkdir -p ~/test-results/junit/
find . -type f -name "TEST-*.xml" -exec cp {} ~/test-results/junit/ ;
when: always
- store_test_results:
path: ~/test-results
- store_artifacts:
path: ~/test-results/junit/

## disabling this for now until we figure out why it is crashing, and how to set token
# - run:
# name: Uploading Coverage Report
Expand Down
11 changes: 11 additions & 0 deletions applications/jonny5/.circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,17 @@ jobs:
- run:
name: Running Eunit tests
command: make -C "$KAZOO_ROOT/$APP_PATH" eunit
- run:
name: Save test results
command: |
mkdir -p ~/test-results/junit/
find . -type f -name "TEST-*.xml" -exec cp {} ~/test-results/junit/ ;
when: always
- store_test_results:
path: ~/test-results
- store_artifacts:
path: ~/test-results/junit/

## disabling this for now until we figure out why it is crashing, and how to set token
# - run:
# name: Uploading Coverage Report
Expand Down
11 changes: 11 additions & 0 deletions applications/konami/.circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,17 @@ jobs:
- run:
name: Running Eunit tests
command: make -C "$KAZOO_ROOT/$APP_PATH" eunit
- run:
name: Save test results
command: |
mkdir -p ~/test-results/junit/
find . -type f -name "TEST-*.xml" -exec cp {} ~/test-results/junit/ ;
when: always
- store_test_results:
path: ~/test-results
- store_artifacts:
path: ~/test-results/junit/

## disabling this for now until we figure out why it is crashing, and how to set token
# - run:
# name: Uploading Coverage Report
Expand Down
Loading

0 comments on commit 8762cc3

Please sign in to comment.