Commit Graph

103 Commits

Author SHA1 Message Date
Anuraag Agrawal 8d74baa2e4
Run tests with javaagent. (#1643)
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-01-04 13:13:24 -08:00
Anuraag Agrawal 785cb91286
Have bytebuddy task depend on resources. (#1940) 2020-12-18 15:23:18 +09:00
Mateusz Rzeszutek cd58ac816e
Muzzle should add SPI classes defined in helperResourceNames as references (#1918) 2020-12-16 21:54:04 -08:00
Anuraag Agrawal 6ab51c1194
Enable caching of bytebuddy cache. (#1764) 2020-11-26 10:25:28 +09:00
Ago Allikmaa e5f0779d1a
ByteBuddy tasks no longer resolve dependencies at config time. (#1715) 2020-11-20 19:24:52 -08:00
Anuraag Agrawal 9ac34bce67
Prepare a single test bootstrap jar at top level. (#1635)
* Prepare a single test bootstrap jar at top level.

* Apply suggestions from code review

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>

* Add comment

* Use buildDir instead of build

* Testing SDK also in bootstrap

* Remove sdk from testing bootstrap loader

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2020-11-16 11:25:40 +09:00
Ago Allikmaa 995e2caee0
Update ByteBuddy to 1.10.18, adjust to new ByteBuddy gradle plugin (#1596)
* Adjust for use with ByteBuddy 1.10.18

* Fix language choices for ByteBuddy transformation.

* Remove no longer used MuzzleCodeGenerationPlugin$NoOp
2020-11-12 12:34:06 +02:00
Anuraag Agrawal c6eee70660
Update to latest snapshot. (#1524) 2020-10-29 18:54:09 -07:00
Pavol Loffay bdf2a91290
Rename printReferences gradle task to printMuzzleReferences (#1517)
Signed-off-by: Pavol Loffay <p.loffay@gmail.com>
2020-10-29 15:37:38 +09:00
Anuraag Agrawal a2dccf2316
Update to latest SDK snapshot. (#1479) 2020-10-26 19:29:46 -07:00
Anuraag Agrawal f6ad05b8e3
Update to latest SDK snapshot (#1384)
* Update to latest SDK snapshot

* Use published snapshot

* Fixes

* Cleans

* spotless

* Most

* Clean

* Merge

* Temporarily remove context interop

* WIP

* Prepare for intercepting propagated span

* Bump SDK

* IDE updates

* Lots

* compileJava

* Done?

* bar

* Spot

* drugs

* Groovy--

* green for me

* Spot

* Remove grpc import

* Scrub
2020-10-25 15:14:32 +09:00
Nikita Salnikov-Tarnovski 7d77b2dc37
Prefer mavenCentral over jcenter (#1440)
* Prefer mavenCentral over jcenter

* Skip broken version for muzzle
2020-10-21 18:59:29 +03:00
Pavol Loffay 137df965ac
Make muzzle task depend on instrumentation project runtimeclasspath (#1408)
Signed-off-by: Pavol Loffay <p.loffay@gmail.com>
2020-10-21 11:46:48 +03:00
Nikita Salnikov-Tarnovski a5aba2d8f5
Use proper case for muzzle skip version check (#1420) 2020-10-19 11:49:50 -07:00
Nikita Salnikov-Tarnovski 29ec067ef5
Actually use requested number of versions to test muzzle (#1396) 2020-10-16 11:16:04 -07:00
Mateusz Rzeszutek ee0e0a9697
Muzzle improvements: docs, javadocs, renamings and minor refactoring (#1379) 2020-10-14 16:49:51 -07:00
Trask Stalnaker 7ecc9bb37b
Rename "auto" to "javaagent" in modules (#1370) 2020-10-13 12:32:13 -07:00
Trask Stalnaker 1b51d4a6b1
Rename packages (#1367) 2020-10-11 13:54:35 -07:00
Trask Stalnaker 4624584979
Update spotless config (#1349)
* Apply spotless to buildSrc

* Apply spotless

* Update spotless version

* Apply spotless

* Another spotless update

* Apply spotless
2020-10-09 07:21:28 +03:00
Anuraag Agrawal bb26c17733
Don't mount context in gRPC instrumentation since gRPC automatically … (#1343)
* Don't mount context in gRPC instrumentation since gRPC automatically does it, better.

* Small cleanup

* Try different approach to keep out of bootstrap
2020-10-09 11:52:20 +09:00
Anuraag Agrawal f2194a928c
Update to latest snapshot. (#1304) 2020-10-04 19:41:10 -07:00
Anuraag Agrawal 210c669643
Remove AgentSpecification (#1291) 2020-09-30 17:34:29 +09:00
Anuraag Agrawal c1556fa359
Use platformClassLoader as muzzle parent instead of bootstrap. (#1183) 2020-09-09 17:57:03 +09:00
Nikita Salnikov-Tarnovski c0cd7ca23b
Removing some gralde warnings (#1094) 2020-08-26 19:58:55 -07:00
Nikita Salnikov-Tarnovski 2cdd3e3b95
Gradle cache will ignore bootstrap class path for tests (#1080)
* More attempts to fix cache misses

* Pressing Alt-Enter
2020-08-21 17:02:27 +03:00
Trask Stalnaker 7159d04b8d
Change groovy import order (#1013)
* Update docs

* Format all groovy code

* Organize imports
2020-08-15 23:19:27 -07:00
Trask Stalnaker 414213f2d1
Remove final from parameters (#1003) 2020-08-15 22:35:51 -07:00
Trask Stalnaker f893ca540b
Scripted package renaming (#988) 2020-08-15 21:55:01 -07:00
Trask Stalnaker bf9c160570
Rename javaagent modules (#952) 2020-08-12 22:50:14 -07:00
Trask Stalnaker b5fbf90977
Extract instrumentation api module (#884) 2020-08-09 22:52:33 -07:00
Trask Stalnaker 2c786ab1a1
Fix WithSpan annotation instrumentation (#929) 2020-08-09 21:46:50 -07:00
Trask Stalnaker e0d1382d5b
Revert "Split muzzle across multiple executors" (#899)
This reverts commit 74cd2fdd3d.
2020-08-05 17:00:32 -07:00
Anuraag Agrawal ad3963303d
Merge integration tests back into test. (#871) 2020-08-02 15:41:47 +09:00
Anuraag Agrawal 87bf97da70
Generate bootstrap jar with gradle instead of when running tests. (#840)
* Generate bootstrap jar with gradle instead of when running tests.

* kill all semicolons

* docs

* docs

* ByteCodeTest

* Use latestDepTest classpath for its bootstrap jar

* Rename package

* Reformat comment

* Bootstrap jar absolute path

* Save bootstrap jar to reports dir.

* Debug

* Debug

* Use project.getBuildDir

* Restore

* Revert

* testFieldInjection is instrumentation test too.

* Split out bytecode tests for testing-common

* Apply jacoco configuration to all tests.

* Add note that jacoco may be causing frustration.

* YOLO alert - Hope my guess at the reason is correct

* Apply suggestions from code review

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2020-08-02 10:17:52 +09:00
Helen Y 86c438b154
Remove final from local variables (#732)
* Remove final from local variables
2020-07-20 13:53:34 +09:00
Nikita Salnikov-Tarnovski b77fb267f3
Gradle warnings (#659)
* More gradle warnings fixes

* Disable javadoc where it is definitely not needed

* Polish
2020-07-10 07:57:54 +03:00
Anuraag Agrawal f3ed2d320a
Replace deprecated configurations in buildSrc (#653) 2020-07-09 17:00:45 +09:00
Tyler Benson 4a943c8411 Use Spotless for formatting (DataDog/dd-trace-java#1619) 2020-06-30 11:15:48 -07:00
Laplie Anderson 74cd2fdd3d Split muzzle across multiple executors (DataDog/dd-trace-java#1549) 2020-06-23 14:08:44 -07:00
Nikita Salnikov-Tarnovski c248f140aa
Artifactory and bintray publish (#403)
* Artifactory and bintray publish

* Delegate version management to Nebula

* Proposal of new release process

* New CI jobs for releasing

* Fix nebula versioning

* Polish

* Fix CI

* Publish snapshot from master must depend on test_8

* Fix repo name

* Restore version file creation

* Use correct env variable for Bintray credentials

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2020-06-09 07:56:12 +03:00
Tyler Benson 77ae5434d5 Attempt to improve muzzle time by randomly ignoring versions until 10 remain (DataDog/dd-trace-java#1451) 2020-05-26 11:54:57 -07:00
Nikita Salnikov-Tarnovski 6cfe2256ef
Use java 11 for compilation (#390)
* Allow compiling of everything with java 11

* Instruct CircleCI to use java 11 be default

* Forbid running some tests on java11

* Muzzle uses ClassLoader.platformClassLoader as parent for user-space classloader
2020-05-14 15:13:30 -07:00
Trask Stalnaker ce3d764ffa Merge commit '437e0f343dcd66ac344556c03bd340ce791b1fdd' into correct-history 2020-04-21 12:55:51 -07:00
Tyler Benson 401ff4d419 Remove some repositories...
Too many caused OOM in CI.
2020-04-20 23:42:05 -04:00
Tyler Benson 2743e64fd3 Exclude more weird versions. 2020-04-20 21:59:24 -04:00
Tyler Benson 70f5ff7244 Add the ability to skip specific versions for muzzle
This makes it much easier to bypass bad versions than splitting out the muzzle definition.
2020-04-20 16:36:57 -04:00
Tyler Benson 6dae05f6ee Add jCenter as a muzzle repository to catch things that are different from Maven Central
For example in the latest release `jetty-server`'s version list was messed up:
https://repo1.maven.org/maven2/org/glassfish/jersey/core/jersey-server/maven-metadata.xml
but still available in jcenter:
https://jcenter.bintray.com/org/glassfish/jersey/core/jersey-server/maven-metadata.xml
2020-04-20 13:02:49 -04:00
Trask Stalnaker d24159c8d2 Merge tag 'v0.48.0' into dd-merge 2020-04-12 15:20:10 -07:00
Brian Devins-Suresh 08e9f8c6e2 Undo star import 2020-03-26 10:10:32 -04:00
Brian Devins-Suresh 89a0761ab4 Add typesafe repo and skip bad builds 2020-03-26 10:10:31 -04:00