Skip to content
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

Merge dd-master into master #14

Closed
wants to merge 3,412 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
3412 commits
Select commit Hold shift + click to select a range
3b14a1c
Simplify @Bean annotation
dougqh Sep 25, 2019
ed7165a
Merge pull request #1010 from DataDog/landerson/couchbase-n
randomanderson Sep 25, 2019
05c9510
Minor optimization to avoid using BigInteger if possible
tylerbenson Sep 26, 2019
088878f
Use tracer from field instead of GlobalTracer
tylerbenson Sep 26, 2019
eb05fc7
Adjusting support version of spring-data
dougqh Sep 26, 2019
45f6edf
/ -> .
dougqh Sep 26, 2019
4d287c6
googleJavaFormat
dougqh Sep 26, 2019
56cebb1
Switched to extending JpaRepository
dougqh Sep 26, 2019
5cb0cc7
Preparing for ElasticSearch test
dougqh Sep 26, 2019
d192811
Fixing muzzle version
dougqh Sep 26, 2019
ac557ed
operationName -> resourceName
dougqh Sep 26, 2019
b91648d
googleJavaFormat
dougqh Sep 27, 2019
48b7018
googleJavaFormat
dougqh Sep 27, 2019
1b1cc34
Switching setResourceName -> setTag
dougqh Sep 27, 2019
82d60c2
Fix codeNarc
tylerbenson Sep 27, 2019
23e058e
Merge pull request #1015 from DataDog/tyler/use-tracer
tylerbenson Sep 27, 2019
91cbb67
Merge pull request #1016 from DataDog/tyler/parse-optimization
tylerbenson Sep 27, 2019
9771a6c
Merge pull request #1009 from DataDog/tyler/integ-core-update
tylerbenson Sep 27, 2019
3780cec
Adding setAsync
dougqh Sep 30, 2019
aeef4f4
Removing unused dependency
dougqh Sep 30, 2019
8b42d28
Removing unnecessary test code
dougqh Sep 30, 2019
02c2d43
spring-data -> spring-data-1.9
dougqh Sep 30, 2019
ec9e220
Cleaning up gradle file
dougqh Oct 1, 2019
0dc63d7
Changing test set-up timing
dougqh Oct 1, 2019
85240a9
Revert "Changing test set-up timing"
dougqh Oct 1, 2019
78f2036
Introduced lazy proxy around DocRepository
dougqh Oct 1, 2019
dfcf9c6
Enabling spring-data integration in test
dougqh Oct 2, 2019
001d1d8
codenarc
dougqh Oct 2, 2019
f785fb2
Pin spring-kafka at 2.2
dougqh Oct 3, 2019
6b98564
Merge pull request #1023 from DataDog/dougqh/pin-spring-kafka
dougqh Oct 4, 2019
6203091
Wrap class setup spans in a trace for another race condition
randomanderson Oct 3, 2019
ecc2ee7
Change default for spring analytics to be off
randomanderson Oct 3, 2019
831fa5c
Disable ratpack events by default
randomanderson Oct 3, 2019
6f4ff22
Update tests to play nice with latest version
randomanderson Oct 4, 2019
95ec449
Remove unused variables
randomanderson Oct 4, 2019
91c0da5
Merge pull request #1025 from DataDog/landerson/vertx-test-update
randomanderson Oct 7, 2019
b971a1a
Merge pull request #1021 from DataDog/landerson/couchbase-test-setup-…
randomanderson Oct 7, 2019
0d6fe9d
Merge pull request #1022 from DataDog/landerson/spring-analytics
randomanderson Oct 7, 2019
82180c2
Add support for jax-rs AsyncResponse
tylerbenson Sep 27, 2019
828e211
Remove debug println
tylerbenson Oct 7, 2019
8e75eeb
Update bytebuddy to 1.10.1
mar-kolya Oct 7, 2019
1e5f0ac
Minor comment clarification
mar-kolya Oct 7, 2019
91db347
Merge pull request #1027 from DataDog/mar-kolya/update-bytebuddy
mar-kolya Oct 7, 2019
1b40500
Merge pull request #1017 from DataDog/tyler/jax-rs-async
tylerbenson Oct 7, 2019
0b32d65
Rename license file
mar-kolya Oct 7, 2019
654e09e
Merge pull request #1028 from DataDog/mar-kolya/update-bytebuddy
mar-kolya Oct 7, 2019
5719a78
Make trace annotation instrumentation async propagating
randomanderson Oct 7, 2019
584f181
Fix OSGi bootstrap delegation property
randomanderson Oct 7, 2019
9ef3332
Extract base test class and move Config class changes there.
tylerbenson Oct 7, 2019
717c440
Merge pull request #1029 from DataDog/landerson/osgi-bootdelegation-prop
randomanderson Oct 7, 2019
b01bef7
Merge branch 'master' into dougqh/spring-data-support
dougqh Oct 8, 2019
5edff68
Propagating exception
dougqh Oct 8, 2019
2463221
Merge pull request #1030 from DataDog/tyler/base-test
tylerbenson Oct 8, 2019
d5021e0
Add test case with netty
randomanderson Oct 8, 2019
01b9220
Clarifying comment
dougqh Oct 8, 2019
e696aa7
Test - no span for Object methods
dougqh Oct 8, 2019
3e6419d
Fixing latestDepTest
dougqh Oct 8, 2019
a20e624
Merge pull request #1031 from DataDog/landerson/trace-annotation-async
randomanderson Oct 8, 2019
63ef181
Simplifying latestDepTest dependencies
dougqh Oct 8, 2019
7dbad68
Merge pull request #1014 from DataDog/dougqh/spring-data-support
dougqh Oct 8, 2019
a6200f9
Upgrade Jackson to 2.10.0
tylerbenson Oct 9, 2019
5fecfa3
Merge pull request #1035 from DataDog/tyler/jackson-upgrade
tylerbenson Oct 9, 2019
048864c
new configuation key for setting debug log level
cecile75 Oct 8, 2019
a08253d
log level configuration tests
cecile75 Oct 9, 2019
b6ad038
log level configuration tests (2)
cecile75 Oct 9, 2019
63c6db0
Ensure baggage can always be added to
Oct 9, 2019
526a9e2
log level configuration tests - fct names codenarc
cecile75 Oct 10, 2019
ce8e061
Merge pull request #1037 from autonomic-ai/wtran/fix-baggage
randomanderson Oct 10, 2019
2ebbab2
Merge pull request #1033 from DataDog/cecile/loglevelconfiguration
cecile75 Oct 10, 2019
a5bce0c
Avoid using ConcurrentLinkedDeque.size
tylerbenson Oct 10, 2019
cfa05b0
Merge pull request #1038 from DataDog/tyler/fix-size-operation
tylerbenson Oct 10, 2019
4679b07
Decrease cache size and make soft values
tylerbenson Oct 10, 2019
ad79db6
Avoid loading `Config` in `DDSpecification`
mar-kolya Oct 10, 2019
97e14cb
Merge pull request #1040 from DataDog/mar-kolya/avoid-loading-bootstr…
tylerbenson Oct 11, 2019
9ee74fb
Merge pull request #1039 from DataDog/tyler/cache-size
tylerbenson Oct 11, 2019
22e8887
Make sure flush cannot happen after disruptor shutdown
mar-kolya Oct 11, 2019
1ce38ba
Disable flush when writer has been shutdown
mar-kolya Oct 11, 2019
ecc57ff
`DDCachingPoolStrategy.size()` is not precise, use `find` instead
mar-kolya Oct 11, 2019
c8b62c4
Merge pull request #1041 from DataDog/mar-kolya/fix-dd-agent-writer-r…
mar-kolya Oct 11, 2019
015a7bf
Merge pull request #1042 from DataDog/mar-kolya/make-cache-provider-t…
mar-kolya Oct 11, 2019
8293276
Version 0.34.0
tylerbenson Oct 11, 2019
6512c4b
Begin 0.35.0
tylerbenson Oct 11, 2019
017b960
Add compatibility tests for OpenTracing 0.31.0
tylerbenson Oct 10, 2019
757961e
Initial implementation of agent internal API.
tylerbenson Oct 8, 2019
61151d4
Changes requested in review
tylerbenson Oct 15, 2019
7b6737f
Make AgentTracer constructor private.
tylerbenson Oct 15, 2019
397299f
Merge pull request #1044 from DataDog/tyler/ot-compat-test
tylerbenson Oct 16, 2019
6e0af7c
Dont instrument `@Decorator`s or CDI breaks
randomanderson Oct 16, 2019
8971040
Supertypes are not always available. Only check the current class fo…
randomanderson Oct 17, 2019
ad009ee
Merge pull request #1032 from DataDog/tyler/agent-internal-api
tylerbenson Oct 17, 2019
f2c5ae2
Latest version requires at least 1 bean
randomanderson Oct 17, 2019
c8f3a26
Merge pull request #1045 from DataDog/landerson/decorator-errors
randomanderson Oct 17, 2019
6b2a4d9
Add (failing) tests for methods that were not instrumented
randomanderson Oct 9, 2019
557d45a
Changes required for OT 0.32
tylerbenson Jan 3, 2019
126dc67
Update AgentApi to OT 0.32.0
tylerbenson Oct 17, 2019
53962a3
Merge pull request #641 from DataDog/tyler/ot-32
tylerbenson Oct 17, 2019
3ae2bc7
Add instrumentation for all of ApacheHttpClient methods
randomanderson Oct 18, 2019
296916a
Avoid submitting a job if executor is shutdown
tylerbenson Oct 18, 2019
38a14ec
Merge pull request #1048 from DataDog/tyler/avoid-shutdown-submit
tylerbenson Oct 18, 2019
d635e6d
Merge pull request #1047 from DataDog/landerson/apache-httpclient-mis…
randomanderson Oct 18, 2019
f734fc6
Reduce tracer log line length - make name nicer
tylerbenson Oct 19, 2019
f67e3b9
Migrate base decorators to new agent api
trask Oct 19, 2019
3b8a514
Update akka-http-10.0 to new agent api
trask Oct 19, 2019
9ffde5d
Update apache-httpasyncclient-4 to new agent api
trask Oct 19, 2019
887633f
Update apache-httpclient-4 to new agent api
trask Oct 19, 2019
09cdc17
Update aws-java-sdk-1.11.0 to new agent api
trask Oct 19, 2019
ad0185d
Update aws-java-sdk-2.2 to new agent api
trask Oct 19, 2019
d40c5dc
Update couchbase-2.0 to new agent api
trask Oct 19, 2019
2c7609f
Update couchbase-2.6 to new agent api
trask Oct 19, 2019
44f06ed
Update datastax-cassandra-3 to new agent api
trask Oct 19, 2019
4ca63b7
Update dropwizard to new agent api
trask Oct 19, 2019
9775a94
Update elasticsearch to new agent api
trask Oct 19, 2019
120937d
Update google-http-client to new agent api
trask Oct 19, 2019
74fda2e
Update grizzly-2 to new agent api
trask Oct 19, 2019
50dcc5b
Update grpc-1.5 to new agent api
trask Oct 19, 2019
d3c8341
Update hibernate to new agent api
trask Oct 19, 2019
45e8b7f
Update http-url-connection to new agent api
trask Oct 19, 2019
e7bfbf8
Update hystrix-1.4 to new agent api
trask Oct 19, 2019
7c954ec
Update java-concurrent to new agent api
trask Oct 19, 2019
244dc69
Update jax-rs-annotations-1 to new agent api
trask Oct 19, 2019
5ce96d9
Update jax-rs-annotations-2 to new agent api
trask Oct 19, 2019
b1f4818
Update jax-rs-client-1.9 to new agent api
trask Oct 19, 2019
769873b
Update jax-rs-client-2.0 to new agent api
trask Oct 19, 2019
308409f
Update jdbc to new agent api
trask Oct 19, 2019
1e81929
Update jedis-1.4 to new agent api
trask Oct 19, 2019
b3a8608
Update jetty-8 to new agent api
trask Oct 19, 2019
6b23ffb
Update jms to new agent api
trask Oct 19, 2019
b536523
Update jsp-2.3 to new agent api
trask Oct 19, 2019
7259e28
Update kafka-clients-0.11 to new agent api
trask Oct 19, 2019
5f0a2ae
Update kafka-streams-0.11 to new agent api
trask Oct 19, 2019
95f91f8
Update lettuce-5 to new agent api
trask Oct 19, 2019
b576c39
Update mongo to new agent api
trask Oct 19, 2019
bb500f9
Update netty-4.0 to new agent api
trask Oct 19, 2019
6a7bafe
Update netty-4.1 to new agent api
trask Oct 19, 2019
9d51a80
Update okhttp-3 to new agent api
trask Oct 19, 2019
4691396
Update play-2.4 to new agent api
trask Oct 19, 2019
7460c32
Update play-2.6 to new agent api
trask Oct 19, 2019
462a663
Update rabbitmq-amqp-2.7 to new agent api
trask Oct 19, 2019
9775ae5
Update ratpack-1.4 to new agent api
trask Oct 19, 2019
4e4a9c9
Update reactor-core-3.1 to new agent api
trask Oct 19, 2019
7cb209b
Update rxjava-1 to new agent api
trask Oct 19, 2019
4a2517a
Update servlet-2 to new agent api
trask Oct 19, 2019
a5c54c5
Update servlet-3 to new agent api
trask Oct 19, 2019
9b14f71
Update sparkjava-2.3 to new agent api
trask Oct 19, 2019
7775c1e
Update spring-data-1.9 to new agent api
trask Oct 19, 2019
51fe9f4
Update spring-web to new agent api
trask Oct 19, 2019
f0c29ad
Update spring-webflux to new agent api
trask Oct 19, 2019
05e6544
Update spymemcached-2.12 to new agent api
trask Oct 19, 2019
377df7b
Update trace-annotation to new agent api
trask Oct 19, 2019
4118566
Update twilio to new agent api
trask Oct 19, 2019
299c396
Update testing module to new agent api
trask Oct 19, 2019
b0c5b2c
Remove deprecated methods
trask Oct 19, 2019
81707e1
Treat empty proc file as not running in container
randomanderson Oct 21, 2019
8ee6ab2
Merge pull request #1052 from DataDog/landerson/empty-proc-file
randomanderson Oct 21, 2019
3f0a280
Merge pull request #1051 from DataDog/tyler/logging
tylerbenson Oct 21, 2019
f6d2c1c
Fix two beforeFinish() calls
trask Oct 3, 2019
cc31c5a
Remove unused code
trask Oct 3, 2019
8bb0f2c
Use header objects directly where possible
trask Oct 22, 2019
0107551
Remove outdated comment
trask Oct 22, 2019
30367c7
Split up MessagePropertyTextMap
trask Oct 22, 2019
35255b5
Version 0.35.0
dougqh Oct 22, 2019
dade0f3
Begin 0.36.0
dougqh Oct 23, 2019
29f7288
Merge pull request #1020 from trask/agent-api
tylerbenson Oct 23, 2019
7db4602
Fix jax-rs-client minimum supported version
tylerbenson Oct 23, 2019
08ca0fa
Merge pull request #1056 from DataDog/tyler/fix-jaxrsclient-version
tylerbenson Oct 23, 2019
fbd16d8
Add assert to ensure muzzle range not empty and update spring-data
tylerbenson Oct 22, 2019
079dfd2
ES deploy workaround.
tylerbenson Oct 23, 2019
cef320a
Merge pull request #1054 from DataDog/tyler/muzzle-spring-data-fix
tylerbenson Oct 23, 2019
8938a0e
Remove opentracing-api.md
randomanderson Oct 24, 2019
441b1ec
Merge pull request #1059 from DataDog/landerson/startmanual-doc
randomanderson Oct 24, 2019
a8ca47e
Skip spring controller and dropwizard trace if no trace present
tylerbenson Oct 24, 2019
3a9ef21
Merge pull request #1060 from DataDog/tyler/consistent-return
tylerbenson Oct 25, 2019
d45b571
Remove unused code
trask Oct 19, 2019
a9d3360
Remove test dependency on GlobalTracer
trask Oct 3, 2019
99ddc49
Remove baggage item test
trask Oct 3, 2019
002db5a
Introduce Tags class
trask Oct 3, 2019
9182b64
Switch to new Tags class in tests
trask Oct 3, 2019
86bd979
Switch to new Tags class in instrumetation
trask Oct 3, 2019
a45dc34
Remove testing module dependencies on GlobalTracer
trask Oct 4, 2019
da80be6
Switch to new Tags class in testing module
trask Oct 4, 2019
5bf5950
Remove dependency on Tracer
trask Oct 3, 2019
e06bb1d
Remove OpenTracing gradle dependency
trask Oct 3, 2019
e32bf18
Organize imports
trask Oct 4, 2019
8c558fa
Format
trask Oct 4, 2019
8236b94
Update gradle to 5.6.3
mar-kolya Oct 25, 2019
71cb23f
Introducing DDApi.Response
dougqh Oct 25, 2019
30a9872
Introducing DDAgentWriter.Monitor
dougqh Oct 25, 2019
22ac1ed
Adding configuration variables needed for StatsD metric support
dougqh Oct 25, 2019
5d090b1
Merge pull request #1062 from DataDog/mar-kolya/update-gradle
mar-kolya Oct 25, 2019
101e519
Adding StatsDMonitor
dougqh Oct 25, 2019
00fe40f
Merge pull request #1026 from trask/dd-next
tylerbenson Oct 25, 2019
7ae5de1
Refactor Servlet Advice
tylerbenson Oct 25, 2019
fa80fee
Refactor JAX-RS Annotation and Spring Controller/Handler Instrumentation
tylerbenson Oct 25, 2019
b30d857
Merge pull request #1065 from DataDog/tyler/refactor-servlet
tylerbenson Oct 25, 2019
96f6c42
Adding StatsD tests
dougqh Oct 25, 2019
df387b4
Merge pull request #1064 from DataDog/tyler/spring-controller-refactor
tylerbenson Oct 25, 2019
4251561
Add new integration for Servlet Filters, HttpServlet, and RequestDisp…
tylerbenson Oct 25, 2019
a3a1467
Add span when calling DataSource.getConnection with a trace.
tylerbenson Oct 25, 2019
6703bd9
Fix servlet propagation for “tail-call” situations
tylerbenson Oct 26, 2019
813a9b9
Update unixsocket dependenxy
mar-kolya Oct 28, 2019
e8064d9
Merge pull request #1063 from DataDog/dougqh/health-metrics1
dougqh Oct 28, 2019
a2d8296
Merge pull request #1066 from DataDog/tyler/servlet-prop
tylerbenson Oct 28, 2019
a903f20
Merge pull request #1050 from DataDog/tyler/servlet-depth
tylerbenson Oct 28, 2019
e4bc90d
Merge pull request #1067 from DataDog/tyler/db-connection
tylerbenson Oct 28, 2019
607dd55
Attempt to remove span-ordering race condition with NettyClientTest
tylerbenson Oct 28, 2019
4df2fe8
Merge pull request #1068 from DataDog/mar-kolya/update-unixsocket-lib
mar-kolya Oct 28, 2019
5cdbaaf
Merge pull request #1069 from DataDog/tyler/netty-client-race
tylerbenson Oct 28, 2019
61441e1
Remove calls to removed methods
randomanderson Oct 29, 2019
6ae6113
Merge pull request #1070 from DataDog/landerson/ot-33-compat
randomanderson Oct 29, 2019
69f4570
Version 0.36.0
dougqh Oct 29, 2019
733342d
Begin 0.37.0
dougqh Oct 29, 2019
d8bd12b
This patch fixes NPE in jaxrs instrument which occurs when we use int…
fujigon Oct 25, 2019
b0e7e6a
- fix test compile setting
fujigon Oct 28, 2019
8e48a70
Fix jax-rs Path annotation inheritance
tylerbenson Oct 30, 2019
8a2594e
Add "testCircularRedirects" option to HttpClientTest
randomanderson Oct 30, 2019
6885849
Merge pull request #1061 from fujigon/feature/fix-npe-in-jaxrs-inst-f…
tylerbenson Oct 30, 2019
64d6d39
Merge pull request #1074 from DataDog/landerson/circular-redirect
randomanderson Oct 31, 2019
3a1d331
WSClient instrumentation
randomanderson Oct 30, 2019
68f8607
Fix latestDepTest dependencies
randomanderson Oct 31, 2019
86ed30d
Fix scopemanager comaptability for OT 0.33.0
tylerbenson Oct 31, 2019
0e825d7
Merge pull request #1076 from DataDog/tyler/isolate-deprecated-usage
tylerbenson Nov 1, 2019
9e26da8
wsclient -> play-ws
randomanderson Nov 1, 2019
92f62ca
Fix scala warning
mar-kolya Nov 4, 2019
466fdf2
Merge pull request #1077 from DataDog/mar-kolya/fix-scala-warning
mar-kolya Nov 4, 2019
cfc19fa
Change String ids to BigInteger ids
randomanderson Nov 4, 2019
bf4587c
Missed a few test helper methods
randomanderson Nov 4, 2019
a3cd467
Merge pull request #1075 from DataDog/landerson/wsclient
randomanderson Nov 4, 2019
e7ac8e7
Only generate ids up to 2^63 - 1
randomanderson Nov 4, 2019
bc2978e
Use groovy literals for BigInteger
randomanderson Nov 4, 2019
74fd6b6
Allow decorators to parse string values on tags.
tylerbenson Nov 4, 2019
4ba0ca0
Merge pull request #1078 from DataDog/landerson/big-integer-ids
randomanderson Nov 4, 2019
4f853f5
Rename config key for beta/experimental instrumentation.
tylerbenson Nov 4, 2019
da8aa5c
Merge pull request #1079 from DataDog/tyler/decorator-parse-strings
tylerbenson Nov 5, 2019
2d3b644
Merge pull request #1080 from DataDog/tyler/rename-beta-configs
tylerbenson Nov 5, 2019
7f5b270
Call class loading callbacks from onComplete
mar-kolya Nov 5, 2019
acfa861
Fix some typos
mar-kolya Nov 5, 2019
f236c0e
Reformat some comments
mar-kolya Nov 5, 2019
b31778a
Do not use `printStackTrace()`
mar-kolya Nov 5, 2019
415a875
Add generic is-before-java9 check
mar-kolya Nov 5, 2019
270a440
Excluded classes generated by Eclipse Sisu
dougqh Nov 5, 2019
c1dad60
Disable zulu8 test for time being due to test incompatibility
tylerbenson Nov 5, 2019
0b4b07b
Disable zulu8 test for time being due to test incompatibility
tylerbenson Nov 5, 2019
64a9f2f
Merge pull request #1083 from DataDog/tyler/zulu-disable
tylerbenson Nov 5, 2019
94d3b82
Merge pull request #1081 from DataDog/mar-kolya/minor-cleanup
tylerbenson Nov 5, 2019
599d1e0
Merge pull request #1082 from DataDog/dougqh/sisu-exclusion
dougqh Nov 6, 2019
2432a92
Remove experimental jdbc and servlet integrations until further evalu…
tylerbenson Nov 6, 2019
b002f0c
Merge pull request #1085 from DataDog/tyler/remove-beta-integrations
tylerbenson Nov 6, 2019
5dc0088
Version 0.37.0
tylerbenson Nov 6, 2019
b93e142
Begin 0.38.0
tylerbenson Nov 6, 2019
a9c5bca
Merge dd-master
trask Nov 15, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
15 changes: 15 additions & 0 deletions .circleci/collect_libs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env bash

# Save all important libs into (project-root)/libs
# This folder will be saved by circleci and available after test runs.

set -x
set -e

LIBS_DIR=./libs/
mkdir -p $LIBS_DIR >/dev/null 2>&1

for lib_path in workspace/*/build/libs; do
echo "saving libs in $lib_path"
cp $lib_path/*.jar $LIBS_DIR/
done
30 changes: 30 additions & 0 deletions .circleci/collect_reports.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/usr/bin/env bash

# Save all important reports into (project-root)/reports
# This folder will be saved by circleci and available after test runs.

set -e
#Enable '**' support
shopt -s globstar

REPORTS_DIR=./reports
mkdir -p $REPORTS_DIR >/dev/null 2>&1

cp /tmp/hs_err_pid*.log $REPORTS_DIR || true

function save_reports () {
project_to_save=$1
echo "saving reports for $project_to_save"

report_path=$REPORTS_DIR/$project_to_save
mkdir -p $report_path
cp -r workspace/$project_to_save/build/reports/* $report_path/
}

shopt -s globstar

for report_path in workspace/**/build/reports; do
report_path=${report_path//workspace\//}
report_path=${report_path//\/build\/reports/}
save_reports $report_path
done
15 changes: 15 additions & 0 deletions .circleci/collect_results.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env bash

# Save all important reports and artifacts into (project-root)/results
# This folder will be saved by circleci and available after test runs.

set -e
#Enable '**' support
shopt -s globstar

TEST_RESULTS_DIR=./results
mkdir -p $TEST_RESULTS_DIR >/dev/null 2>&1

echo "saving test results"
mkdir -p $TEST_RESULTS_DIR/results
find workspace/**/build/test-results -name \*.xml -exec cp {} $TEST_RESULTS_DIR \;
Loading