Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1895 commits
Select commit Hold shift + click to select a range
4dd6708
Update comment on Config class to show new functionality
labbati Jun 3, 2019
076c2b1
Removing synchronized as the load properties method no longer set the…
labbati Jun 3, 2019
bfd9680
Fix typos
labbati Jun 3, 2019
da05772
Add properties file to a comment listing all the source of configuration
labbati Jun 3, 2019
12dc7c4
Remove unused imports
labbati Jun 6, 2019
40f8247
improve(tests) adjusted tests per new span attributes added
Voronenko Jun 13, 2019
a2a9bec
Enable '**' support in logs collection scripts
mar-kolya Jun 13, 2019
0562b2a
Merge pull request #874 from DataDog/tyler/jackson-update
tylerbenson Jun 13, 2019
ec3b586
Merge pull request #866 from DataDog/tyler/jdbc-instance
tylerbenson Jun 13, 2019
fc30bad
Merge pull request #875 from DataDog/mar-kolya/fix-artifacts-collection
mar-kolya Jun 13, 2019
f5f3386
Make Akka client test more stable
mar-kolya Jun 13, 2019
a0fc549
Collect more debugging info
mar-kolya Jun 12, 2019
075b300
Merge pull request #863 from DataDog/labbati/non-static-config
labbati Jun 13, 2019
b112043
Merge pull request #876 from DataDog/mar-kolya/make-akka-test-more-st…
mar-kolya Jun 13, 2019
16709c0
Preserve .gradle in workspace
mar-kolya Jun 13, 2019
ca57aad
Run latestDepTests in a separate job
tylerbenson Jun 12, 2019
d6719ed
Replace Mongo tests with updated tests.
tylerbenson Jun 11, 2019
d26edd6
Ensure gradle runs base mongo test first
tylerbenson Jun 12, 2019
2530544
Set minimum version and fix var name.
tylerbenson Jun 13, 2019
75b626a
fix tests
tylerbenson Jun 13, 2019
66126bb
Merge pull request #873 from DataDog/tyler/separate-latest-tests
tylerbenson Jun 13, 2019
3be6868
Update Mongo instance name and remove memcache instance name
tylerbenson Jun 13, 2019
709a548
Merge pull request #877 from DataDog/mar-kolya/collect-jvm-cores
mar-kolya Jun 13, 2019
5e81ca7
Merge pull request #879 from DataDog/mar-kolya/preserver-dot-gradle-i…
mar-kolya Jun 13, 2019
51d552a
Merge pull request #871 from DataDog/tyler/update-mongo-tests
tylerbenson Jun 13, 2019
7e2f85d
Fix latest test
tylerbenson Jun 13, 2019
4c5793b
Add `dd.trace.db.client.split-by-instance` Config
tylerbenson Jun 13, 2019
68567cd
Merge pull request #880 from DataDog/tyler/mongo-instance
tylerbenson Jun 13, 2019
a4d53b0
Update Cassandra Tests and more instance name cleanup
tylerbenson Jun 13, 2019
f578c9c
Remove system properties and envs left-over in Config tests
labbati Jun 14, 2019
4fc3520
initial pipeline
Voronenko Jun 14, 2019
b2ce9ad
initial pipeline
Voronenko Jun 14, 2019
edf807d
temporary disabled smoke tests
Voronenko Jun 14, 2019
57b496e
improve(pipeline) collecting tests results
Voronenko Jun 14, 2019
9a76b80
improve(pipeline) collecting tests results
Voronenko Jun 14, 2019
3ce3c7c
Merge pull request #882 from DataDog/tyler/cassandra-testing
tylerbenson Jun 14, 2019
f37e4a2
Revert "Collect more debugging info"
mar-kolya Jun 14, 2019
350ff9b
Merge pull request #884 from DataDog/mar-kolya/do-not-collect-cores
mar-kolya Jun 14, 2019
e8246f6
Merge pull request #881 from DataDog/tyler/instance-name
tylerbenson Jun 14, 2019
2c24075
Additional testing for split-by-instance config
tylerbenson Jun 14, 2019
59b43ac
improve(pipeline) collecting tests results
Voronenko Jun 14, 2019
fb50b63
improve(pipeline) collecting tests results
Voronenko Jun 14, 2019
d0b3214
Be more friendly for config file to unix users using tilde for home
labbati Jun 17, 2019
a3be0cb
Merge branch 'master' of github.com:DataDog/dd-trace-java into labbat…
labbati Jun 17, 2019
d865a1a
Format code
labbati Jun 17, 2019
22c8fde
experimenting with tests
Voronenko Jun 17, 2019
19fac87
picking artifact
Voronenko Jun 17, 2019
b3a913e
picking artifact
Voronenko Jun 17, 2019
d9f0d37
picking artifact
Voronenko Jun 17, 2019
82e6e81
picking artifact
Voronenko Jun 17, 2019
5f134ba
picking artifact
Voronenko Jun 17, 2019
7fc5132
Add support for forcing JDK to run tests on
mar-kolya Jun 14, 2019
808e965
Add Zulu to circleci build
mar-kolya Jun 14, 2019
72cad28
Merge pull request #862 from DataDog/labbati/config-file
labbati Jun 17, 2019
a9a623d
Configure system logger to log timestamp
mar-kolya Jun 17, 2019
5b220a5
improve(tests) allowing tests to use docker
Voronenko Jun 17, 2019
b43f6e9
Version 0.30.0
labbati Jun 17, 2019
3057507
improve(caching) basic caching
Voronenko Jun 17, 2019
591529b
improve(caching) basic caching
Voronenko Jun 17, 2019
0fae7b7
improve(caching) basic caching
Voronenko Jun 17, 2019
e415ac6
improve(caching) basic caching
Voronenko Jun 17, 2019
4aac4bc
improve(caching) basic caching
Voronenko Jun 17, 2019
af0e5b7
improve(caching) basic caching
Voronenko Jun 17, 2019
cc00424
improve(caching) basic caching
Voronenko Jun 17, 2019
896d485
Begin 0.31.0
labbati Jun 17, 2019
736cb9c
Merge pull request #888 from DataDog/mar-kolya/make-test-setup-more-f…
mar-kolya Jun 17, 2019
c1ba2f2
improve(gitlab) temporary eliminated caches
Voronenko Jun 18, 2019
6b8dd73
improve(pid span) do not put pid span if pid is not detected or zero
Voronenko Jun 18, 2019
d3266e9
Merge pull request #889 from DataDog/mar-kolya/log-time-stamp
mar-kolya Jun 18, 2019
22477ef
Add basic support for log4j ThreadContext for log injection.
labbati Jun 13, 2019
d9eb480
Rename log4j2 module to reflect library name
labbati Jun 13, 2019
8d562f9
Rename log4j package removing the left-over from sl4j original class
labbati Jun 13, 2019
dcf0f57
Add support for log4j 1.x
labbati Jun 20, 2019
34d589e
Create a reusable log context listener to be used for slf4j, log4j1 a…
labbati Jun 20, 2019
ecdf666
Refactor log4jX instrumentations
labbati Jun 20, 2019
c2bd5ee
Remove method that was copied and pasted from slf4j instrumentation …
labbati Jun 20, 2019
4d1d5d1
Introduce the mandatory test suite that a supported logging library …
labbati Jun 20, 2019
b7393df
Remove jms functionality brought in by log4j1.X dependency
labbati Jun 20, 2019
cba8ba1
Refactor classes of log injection services to improve readability
labbati Jun 20, 2019
27b4db8
Remove legacy transitive dependencies no longer bundled with the JVM …
labbati Jun 21, 2019
0916a00
Fixed unnecessary semi-colon in groovy class
labbati Jun 21, 2019
d0f17e4
Rename log context injection test base
labbati Jun 21, 2019
34ac31c
Improve smoke test app log file naming
mar-kolya Jun 21, 2019
d804068
Add "http.query.string" and "http.fragment.string" to DDTags
randomanderson Jun 21, 2019
ad822d8
Fix imports to match project style
randomanderson Jun 21, 2019
bf7bbf3
Fix akka-http instrumentation.
Jun 21, 2019
2e66aea
Fix formatting issue
randomanderson Jun 21, 2019
ac7abcd
Fix expression to include tracing of log4j1 MDC in agent installer
labbati Jun 21, 2019
f279a61
Minor fixes to typos and code styles
labbati Jun 21, 2019
8ee6d26
Rename log4j 1 and 2 instrumentation to log4j1 and log4j2 respectively
labbati Jun 21, 2019
9e345ef
Merge pull request #898 from DataDog/landerson/http-decorator-constants
randomanderson Jun 21, 2019
eaf0a33
Merge pull request #897 from DataDog/mar-kolya/smoke-test-file-naming
mar-kolya Jun 21, 2019
f01d473
Merge pull request #894 from DataDog/labbati/log4j
labbati Jun 21, 2019
bece631
improve build
Voronenko Jun 24, 2019
5ae98a8
improve build
Voronenko Jun 24, 2019
8b0d5e1
improve(tests) collect test artifacts always
Voronenko Jun 24, 2019
99f4c66
improve(tests) collect test artifacts always
Voronenko Jun 24, 2019
27e0e44
Calculate depth per handler class in netty channel pipeline instrumen…
labbati Jun 24, 2019
d58c252
Add tests for netty channel handlers added through channel initializers
labbati Jun 24, 2019
8022d0e
Remove redundant .class suffixes in groovy test files
labbati Jun 24, 2019
681420a
Remove SuperPool instrumentation.
Jun 24, 2019
5a16e52
Add crash dumps to gitignore
mar-kolya Jun 24, 2019
58da60a
Fix typo in comment
labbati Jun 24, 2019
0caf9af
Merge tag 'v0.30.0' into trace-branding-29-1-wip-30
Voronenko Jun 25, 2019
f4b4573
improve(test) temporary supressed test
Voronenko Jun 25, 2019
cc5d8ee
improve(local runner) improved troubleshouting for local gitlab runner
Voronenko Jun 25, 2019
68caf52
Run tests on zulu11
mar-kolya Jun 25, 2019
c53468e
improve(local runner) improved troubleshouting for local gitlab runner
Voronenko Jun 25, 2019
d0603a0
chore(caches) commented cache
Voronenko Jun 26, 2019
5f14d61
chore(artifacts) extracting into lib
Voronenko Jun 26, 2019
c5272fd
chore(tests) limited to 8
Voronenko Jun 26, 2019
bf0c855
chore(tests) limited to 8
Voronenko Jun 26, 2019
072caca
improve(tests) temporary suppressed test
Voronenko Jun 26, 2019
9afcc87
improve(tests) temporary suppressed test
Voronenko Jun 26, 2019
d5227cd
Merge pull request #900 from DataDog/labbati/reactor-08
labbati Jun 26, 2019
dbd5618
improve(tests) activated caches
Voronenko Jun 26, 2019
44f80d1
improve(tests) troubleshouting build
Voronenko Jun 26, 2019
7288e20
improve(tests) troubleshouting build
Voronenko Jun 26, 2019
10d4c07
improve(tests) troubleshouting build
Voronenko Jun 26, 2019
c8612b6
Merge pull request #901 from DataDog/mar-kolya/gitignore-crashes
mar-kolya Jun 26, 2019
86691cb
Merge pull request #902 from DataDog/mar-kolya/run-tests-on-zulu11
mar-kolya Jun 26, 2019
65d4369
improve(test) debug build
Voronenko Jun 27, 2019
475f16f
improve(test) debug build
Voronenko Jun 27, 2019
b4f508a
improve(test) debug build
Voronenko Jun 27, 2019
15cfd88
improve(test) debug build
Voronenko Jun 27, 2019
82ee6ce
improve(test) deactivated parallelism in debug build
Voronenko Jun 27, 2019
353bc32
improve(test) deactivated parallelism in debug build
Voronenko Jun 27, 2019
d3270b4
chore(readme) notes on launching infra
Voronenko Jul 2, 2019
c03c530
chore(tests) reverted simple test
Voronenko Jul 2, 2019
94b2e91
Fix hibernate DTD urls
mar-kolya Jul 2, 2019
ffe4aab
Specify version of hibernate-annotation
mar-kolya Jul 2, 2019
2afc606
Merge pull request #904 from DataDog/mar-kolya/fix-hibernate-urls
mar-kolya Jul 2, 2019
426bb68
build trigger
Voronenko Jul 3, 2019
2027027
Explitely run JmxFetch app as a daemon
labbati Jul 3, 2019
a0bf53a
Upgrade gradle to 5.5
mar-kolya Jul 5, 2019
6eccc63
branding step
Voronenko Jul 5, 2019
d7ac6cb
branding step
Voronenko Jul 5, 2019
60ee97b
branding step
Voronenko Jul 5, 2019
1e35ae4
improve(branding) pipeline
Voronenko Jul 5, 2019
f3c5889
branding step
Voronenko Jul 5, 2019
f626f54
improve(branding) artifact name
Voronenko Jul 5, 2019
637120c
Merge pull request #907 from DataDog/mar-kolya/update-gradle
mar-kolya Jul 8, 2019
058c4ec
Trace 'records(TopicPartitions)` in kafka consumer
mar-kolya Jul 8, 2019
2e62ca8
Merge pull request #908 from DataDog/mar-kolya/kafka-trace-records
mar-kolya Jul 8, 2019
2e41e94
Update jmxfetch to version 0.30.0
labbati Jul 8, 2019
f53b14b
Stub google http client integration
randomanderson Jul 8, 2019
30916ac
Implementation
randomanderson Jul 8, 2019
d97b1c2
Fix package
randomanderson Jul 8, 2019
caa7e44
Passing tests. Modify escaping of spaces in urls
randomanderson Jul 9, 2019
b62266f
First draft of jersey 1.19 client instrumentation
labbati Jul 10, 2019
0f5dd24
Add tests for Jersey V1 client
labbati Jul 10, 2019
3ab63e7
Some refactoring in tests
labbati Jul 10, 2019
c16a084
Enable tracing of jax-rs client in sun package
labbati Jul 10, 2019
f484295
Kafka instrumentation: make return type more general in instrumentati…
mar-kolya Jul 10, 2019
5526fd0
Jersey client 1.9 cleanup
tylerbenson Jul 10, 2019
4486c3a
Change jax-rs-client project names to match versions
tylerbenson Jul 10, 2019
5624cef
fix check
tylerbenson Jul 10, 2019
aa33030
Send jvm vendor as header to agent (#909)
randomanderson Jul 10, 2019
4501dbe
Merge pull request #899 from dpratt/fix-akka-http
tylerbenson Jul 10, 2019
a13e4a0
Merge pull request #910 from DataDog/labbati/jersey-1.19
tylerbenson Jul 10, 2019
b2fc949
Revert "Trace 'records(TopicPartitions)` in kafka consumer"
tylerbenson Jul 10, 2019
142477e
Merge branch 'master' into mar-kolya/kafka-trace-records
mar-kolya Jul 10, 2019
3e8b652
Instrument records(TopicPartition) in kafka consumer
mar-kolya Jul 11, 2019
765b76b
Fix kafka-streaming tests broken by records(TopicPartition) instrumen…
mar-kolya Jul 11, 2019
3ecc7c1
Wait for traces in kafka streams tests
mar-kolya Jul 11, 2019
f4aa8be
Make kafka streams test more stable
mar-kolya Jul 11, 2019
b3c970d
Formatting fix
mar-kolya Jul 11, 2019
e3b4ffb
Update gradle to 5.5.1
mar-kolya Jul 12, 2019
1abd507
Merge pull request #913 from DataDog/mar-kolya/update-gradle
mar-kolya Jul 12, 2019
82ee01c
Implement instrumentation for async requests
randomanderson Jul 12, 2019
8a7336a
Use 1.19.0 as first supported version
randomanderson Jul 12, 2019
9813093
Merge pull request #912 from DataDog/revert-908-mar-kolya/kafka-trace…
tylerbenson Jul 12, 2019
2121349
Merge branch 'master' into mar-kolya/kafka-trace-records
mar-kolya Jul 12, 2019
6516bd7
Minor comment update
mar-kolya Jul 12, 2019
0eab468
Remove unnecessary semicolons
randomanderson Jul 12, 2019
65c6b1f
Merge pull request #911 from DataDog/mar-kolya/kafka-trace-records
mar-kolya Jul 12, 2019
833e811
Merge pull request #1 from DataDog/master
gygabyte Jul 13, 2019
ec93146
Merge pull request #885 from DataDog/tyler/instance-name-testing
tylerbenson Jul 15, 2019
5b3d4b8
Merge pull request #905 from DataDog/labbati/jmx-as-daemon
labbati Jul 15, 2019
3191eb7
Avoid Jetty 10
mar-kolya Jul 15, 2019
1fbe395
Avoid Jetty 10 in servlet-3 test
mar-kolya Jul 15, 2019
3884cc0
Merge pull request #915 from DataDog/mar-kolya/avoid-jetty-10
mar-kolya Jul 15, 2019
747f758
Remove default instance
tylerbenson Jul 15, 2019
e08e3a7
Allow null to be set in Scope for Span
tylerbenson Jul 16, 2019
36487a0
Remove version from gradle wrapper definition
mar-kolya Jul 16, 2019
615bce0
Merge pull request #919 from DataDog/mar-kolya/remove-gradle-version
mar-kolya Jul 16, 2019
7d6bdcc
Merge pull request #916 from DataDog/tyler/remove-ss-default
tylerbenson Jul 16, 2019
369658c
Initial cgroups parsing implementation
randomanderson Jul 16, 2019
d74ffc3
Parsing tests from RFC and reference impl
randomanderson Jul 16, 2019
9dbe3a0
Fix part of path to match
randomanderson Jul 16, 2019
4853801
Add container id headers to request builder
randomanderson Jul 16, 2019
d03a2a9
Change to @Getter/@Setter to be above coverage threshold
randomanderson Jul 16, 2019
719bf0a
Remove reference to private repo
randomanderson Jul 17, 2019
5956f51
Change container info to a singleton ContainerInfo
randomanderson Jul 17, 2019
fb5e9c9
Merge pull request #920 from DataDog/landerson/container-tagging
randomanderson Jul 17, 2019
0f9b28d
Merge pull request #914 from DataDog/landerson/google-http-client
randomanderson Jul 17, 2019
ab7786d
Minor javadoc fix
mar-kolya Jul 17, 2019
05af20d
Merge pull request #921 from DataDog/mar-kolya/fix-javadoc
mar-kolya Jul 18, 2019
41a2e7b
Cli Application smoke test
randomanderson Jul 18, 2019
e99b974
Don't use isAlive() in tests and do more in the CLI app
randomanderson Jul 18, 2019
17d26a4
Assert span not null and use NoopSpan instead.
tylerbenson Jul 18, 2019
8909e7d
Java 7 complains about this type
randomanderson Jul 18, 2019
7409973
Java 7 doesn't have Process.waitFor(time) so use Spock's timeout
randomanderson Jul 18, 2019
13b794c
Merge pull request #917 from DataDog/tyler/null-span-in-scope
tylerbenson Jul 18, 2019
2e51afc
Merge pull request #2 from DataDog/master
gygabyte Jul 18, 2019
2627a45
unit tests for records(TopicPartition) method of kafka-clients instru…
Jul 18, 2019
331b8c8
Add resource name to the @Trace annotation
randomanderson Jul 19, 2019
1214b90
Add a sleep to ensure everything is started up
randomanderson Jul 19, 2019
ef5a006
changes requested: remove iterator() implementation from TracingList.…
Jul 19, 2019
d101bea
Add DDSpanBuilder to helper classes of both instrumentations
randomanderson Jul 19, 2019
ace9b53
Merge pull request #924 from gygabyte/master
tylerbenson Jul 19, 2019
cad2a3d
Set resource name in a way that doesn't need to reference DDSpanBuilder
randomanderson Jul 19, 2019
6ccb0d7
Change the scope for the netty client callback
tylerbenson Jun 15, 2019
0e83304
Update Ratpack latest test
tylerbenson Jun 15, 2019
53ef8f0
Additional testing for Vert.x
tylerbenson Jun 17, 2019
e692605
Fix formatting
tylerbenson Jul 10, 2019
ea4fc4a
Use NoopSpan instead of null for null parent.
tylerbenson Jul 18, 2019
22dc305
Merge pull request #925 from DataDog/landerson/resourcename-on-annota…
randomanderson Jul 19, 2019
f853916
Get hostname in a smarter way
randomanderson Jul 19, 2019
7571b77
Merge pull request #886 from DataDog/tyler/netty-client-callback
tylerbenson Jul 22, 2019
797003b
Moved Spring Webflux instrumentation code to server subpackage
May 3, 2019
091648d
Enable tracing for Spring Webflux WebClient
May 9, 2019
0e9edb1
Aligned instrumentation names between DefaultWebClientInstrumentation…
May 15, 2019
e4560ba
Instrument all subtypes of ExchangeFunction instead of only ExchangeF…
May 15, 2019
f5f8fe1
Add javadoc to clarify usage of this class
May 15, 2019
35b924b
Replace span.log with span.tag
May 15, 2019
ac11bba
Replace operation name with static value
May 15, 2019
23b8caa
Add decorator hooks during lifecycle of Publisher
May 15, 2019
872a099
Remove onPeerConnection decorator call
May 15, 2019
7059cca
Add test for spring webflux webclient
May 15, 2019
8f96205
Add Javadoc to rawStatusCode method that is not part of ClientRespons…
May 16, 2019
bc51f04
Replace hasSuperType with safeHasSuperType
May 16, 2019
633db43
Fix typo rawStatusCode in javadoc
Jun 7, 2019
0043efa
Add documentation on conditions when DefaultWebClientAdvice is not ap…
Jun 7, 2019
fff8006
Remove unused private method
Jun 7, 2019
aaba3fc
Fix trace propagation
tylerbenson Jun 14, 2019
e19d402
Merge pull request #927 from DataDog/better-hostname-detection
randomanderson Jul 22, 2019
0a79235
Merge pull request #831 from johanvandeweerd/issue-614-spring-webclie…
tylerbenson Jul 23, 2019
b6c3d9a
Remove the request with a short sleep
randomanderson Jul 24, 2019
b57282d
Merge pull request #922 from DataDog/landerson/cli-test
randomanderson Jul 25, 2019
0d1bf5e
Limit Vert.x tests to 3.x
tylerbenson Jul 25, 2019
df68f8a
Merge pull request #930 from DataDog/tyler/limit-vertx
tylerbenson Jul 25, 2019
e987276
Version 0.31.0
tylerbenson Jul 25, 2019
9ee659d
STAC-5314 Publish java trace client to S3 (#10)
jglad20 Jul 29, 2019
5442ce9
Merge tag 'v0.31.0' of https://github.com/DataDog/dd-trace-java into …
Voronenko Jul 30, 2019
1e26a88
chore(branding) adjusted rules
Voronenko Jul 30, 2019
1532d60
chore(branding) adjusted rules
Voronenko Jul 30, 2019
b8f5746
chore(pipeline) moving failed stages to tech debt card
Voronenko Jul 30, 2019
69e8388
chore(pipeline) moving failed stages to tech debt card
Voronenko Jul 30, 2019
5b58bee
chore(pipeline) moving failed stages to tech debt card
Voronenko Jul 30, 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
  •  
  •  
  •  
4 changes: 4 additions & 0 deletions .cd-builders/runner-gitlab/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
build-base:
docker build -t stackstate/stackstate-agent-runner-circle:tracejava_base base/
push-base:
docker push stackstate/stackstate-agent-runner-circle:tracejava_base
6 changes: 6 additions & 0 deletions .cd-builders/runner-gitlab/base/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM circleci/openjdk:8

RUN sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0x219BD9C9
RUN echo 'deb http://repos.azulsystems.com/debian stable main' | sudo tee -a /etc/apt/sources.list.d/zulu.list
RUN sudo apt-get update
RUN sudo apt-get install zulu-7 zulu-9 zulu-10 zulu-11
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
35 changes: 35 additions & 0 deletions .circleci/collect_reports.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#!/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/ || true
}

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

echo "Copying gitlab debug output to /tmp/gitlabrunner_out"
mkdir -p /tmp/gitlabrunner_out >/dev/null 2>&1
rm -rf /tmp/gitlabrunner_out/* >/dev/null 2>&1
cp -a $REPORTS_DIR/. /tmp/gitlabrunner_out/ || true
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 \;
19 changes: 19 additions & 0 deletions .circleci/collect_results_gitlab.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/usr/bin/env bash

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

# set -e

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

echo "saving test results into $TEST_RESULTS_DIR/results"
mkdir -p $TEST_RESULTS_DIR/results
find $CI_PROJECT_DIR/**/build/test-results -name \*.xml -exec cp {} $TEST_RESULTS_DIR/results \; || true
echo find $CI_PROJECT_DIR/**/build/test-results -name \*.xml || true

echo "Copying gitlab debug output to /tmp/gitlabrunner_out"
mkdir -p /tmp/gitlabrunner_out >/dev/null 2>&1
rm -rf /tmp/gitlabrunner_out/* >/dev/null 2>&1
cp -a $TEST_RESULTS_DIR/. /tmp/gitlabrunner_out/ >/dev/null 2>&1
Loading