Commit Graph

182 Commits

Author SHA1 Message Date
Anuraag Agrawal 971ca8b19c
Update to OTel 1.6 (#4120)
* Update to OTel 1.6

* Example build

* More example

* More example
2021-09-14 20:12:18 +09:00
Nikita Salnikov-Tarnovski 3ae6b46930
Simpler test agent (#3974)
* Trying to simplify testing agent

* Simplified and verified it works

* spotless

* Code review comments

* spotless
2021-09-08 14:11:02 -07:00
Trask Stalnaker 1fd3d777af
Sync spotless configuration with otel-java repo (#3989)
* Sync spotless configuration with otel-java repo

* Remove googleJavaFormat version in buildSrc too
2021-08-29 21:14:31 -07:00
Trask Stalnaker d90d7c80f3
Use new HelperResourceBuilder (#3976)
* Use new HelperResourceBuilder

* Use latest to avoid merge conflict
2021-08-27 09:48:16 -07:00
Trask Stalnaker 20c72f3e98
Format kotlin gradle files (#3942)
* Add ktlint for kotlinGradle

* ktlint fails on wildcard imports

* Auto-format kotlin gradle files
2021-08-25 13:43:57 +09:00
Trask Stalnaker 3525733ea8
Enable strict context check in tests by default (#3822) 2021-08-23 17:40:02 -07:00
Trask Stalnaker 052d00d059
Fix maven publishing of agent-for-testing module (#3892) 2021-08-22 09:56:19 -07:00
Nikita Salnikov-Tarnovski 539f104869
Smoke tests were accidentally enabled if testJavaVersion was provided (#3830) 2021-08-12 19:32:14 +03:00
Nikita Salnikov-Tarnovski d73710b4dc
Run tests on j9 JVM during CI (#3764)
* During PR runs tests on j9 JVM as well

* Run test matrix on J9 as well
2021-08-12 11:13:42 +03:00
Mateusz Rzeszutek d13d1cf226
Bump muzzle plugins version (#3824) 2021-08-11 23:27:17 +03:00
Mateusz Rzeszutek 421fec4cfe
Bump gradle-plugins to 0.4 (and fix one more thing in ReferencesPrinter) (#3818)
* Bump gradle-plugins to 0.4 (and fix one more thing in ReferencesPrinter)

* Use context class loader

* func -> action
2021-08-11 16:06:54 +02:00
Nikita Salnikov-Tarnovski 5d51f03140
Use freshly released muzzle plugins (#3770) 2021-08-05 08:48:04 +03:00
Nikita Salnikov-Tarnovski 6e706778fd
Remove old muzzle check plugin (#3741)
* Remove old muzzle check plugin

* Polish
2021-08-03 09:21:50 +03:00
Nikita Salnikov-Tarnovski 1785db5331
Extension snapshot (#3625)
* Try to build examples against locally published snapshot

* Always build examples against latest snapshot

* Add Gradle init script to remove sonatype repo

* Build examples against locally published version only during nightly builds

* Update distro demo to the latest snapshot as well
2021-07-28 15:50:27 +03:00
Lauri Tulmin ff5472a822
Limit number of concurrently running docker tests (#3664)
* Limit number of concurrently running docker tests

* rename heavy to testcontainers

* use shorter expression
2021-07-27 15:41:39 -07:00
Mateusz Rzeszutek ed9e1a0cb3
Move instrumentation specific classes out of javaagent-instrumentation-api (#3604) 2021-07-27 12:56:59 -07:00
Trask Stalnaker 59e46477dd
Add basic jmh overhead test (#3672)
* Add basic jmh overhead test

* Move javaagent arg to gradle file

* Rename module to benchmark-overhead-jmh

* Add imports

* Add comment

* Add benchmark for noop api
2021-07-26 12:55:18 -07:00
Nikita Salnikov-Tarnovski 0f43c160e1
Very crude fix for publishing problem with agent-for-testing (#3675) 2021-07-26 21:05:26 +03:00
Nikita Salnikov-Tarnovski 6a2ee3255a
Extract muzzle check plugin (#3657)
* Extract muzzle check plugin
2021-07-26 12:37:14 +03:00
Nikita Salnikov-Tarnovski c6f9bef90e
Use published muzzle generation plugin (#3639)
* Use published muzzle generation plugin
2021-07-22 11:46:49 +03:00
Nikita Salnikov-Tarnovski a55e048451
Convert ReferenceCollectorTest to JUnit (#3644)
* Convert ReferenceCollectorTest to JUnit

* User AssertJ

* Polish
2021-07-21 19:36:46 +03:00
Lauri Tulmin 79d12e1f97
Remove build/** from spotless kotlin exludes (#3647) 2021-07-21 19:22:11 +03:00
Anuraag Agrawal 574a3f7750
Use ArgumentsProvider for agent test JVM args to allow sharing of remote build cache. (#3631) 2021-07-20 15:23:43 +09:00
Trask Stalnaker 344e205720
Help out Intellij (#3595) 2021-07-16 15:55:30 +09:00
Mateusz Rzeszutek 9a3734f8ed
Clean up bootstrap dependencies and build scripts (#3570)
* Clean up bootstrap dependencies and build scripts

* add evaluationDependsOn()

* Resolve configuration later

* remove the javaagentLibs config

* Fix muzzle bootstrap classpath

* Fix after rebase

* Try javaagentLibs once again
2021-07-15 18:56:36 +02:00
Nikita Salnikov-Tarnovski a079ff3832
Fix naming of muzzle tasks (#3589)
`assertPass` property is always present because we set to a default value right in the constructor.
2021-07-15 17:04:40 +03:00
Trask Stalnaker f02130f3e3
Disable SystemOut errorprone check when running locally (#3579) 2021-07-15 10:12:03 +03:00
Anuraag Agrawal 136b8aa22c
Fix disableErrorProne (#3575) 2021-07-15 09:17:54 +03:00
Nikita Salnikov-Tarnovski cbfd7e1a02
Trying to extract codegen plugin (#3521)
* Muzzle code generation moved to a separate plugin
* Restored old MuzzleCodeGenerationPlugin to use until the new one is published
* The simplest dependency management possible

Co-authored-by: Anuraag Agrawal <aanuraag@amazon.co.jp>
2021-07-14 17:08:47 +03:00
Mateusz Rzeszutek 229d8adc49
Publish shaded OpenTelemetry API and annotations for muzzle (#3555)
* Publish shaded OpenTelemetry API and annotations for muzzle

* code review
2021-07-14 15:33:07 +02:00
Mateusz Rzeszutek 3d1e782fc5
Instrumentation-specific bootstrap classes (#3495)
* Instrumentation-specific bootstrap classes

* try to move bootstrap modules dependency to javaagent
2021-07-13 09:34:02 +02:00
Trask Stalnaker d0cb08a37b
Rename javaagent-api artifact to javaagent-instrumentation-api (#3513)
* part 1

* part 2

* Undo change in examples

* Spotless
2021-07-12 21:53:49 -07:00
Anuraag Agrawal f601863d12
Merge Java TraceUtils into extension and switch to Instrumenter API. (#3532)
* Merge Java TraceUtils into extension and switch to Instrumenter API.

* Woah
2021-07-10 13:21:12 +09:00
Anuraag Agrawal 9ed19062c3
Parse disableErrorProne as boolean (#3530) 2021-07-09 17:14:13 +09:00
Trask Stalnaker dddb39b1e2
Make coreJdk property internal (#3512) 2021-07-07 08:23:15 +03:00
Anuraag Agrawal 3fc5d71771
Don't publish testing -all jar. (#3493) 2021-07-05 14:12:04 -07:00
Anuraag Agrawal 8eb24f9886
Split up build logic to plugins that can eventually be published and … (#3474)
* Split up build logic to plugins that can eventually be published and this-repo-specific stuff.

* Muzzle

* compileOnly

* Typo
2021-07-05 16:18:45 +09:00
Anuraag Agrawal 44f2354d41
Allow disabling thread details and disable for most tests. (#3464) 2021-07-01 08:31:27 -07:00
Anuraag Agrawal 3cfa086ffd
Migrate nullaway config to plugin (#3462) 2021-07-01 18:13:16 +09:00
Anuraag Agrawal d53e62b4dc
Remove noShadowPublish (#3426) 2021-06-29 16:55:53 +09:00
Anuraag Agrawal 761b9c280b
Migrate instrumentation gradle files to kotlin (#3414)
* Migrate instrumentation gradle files to kotlin

* Convert

* Muzzle
2021-06-28 17:27:12 +09:00
Anuraag Agrawal 220ea414e3
Migrate codegen to be a plugin (#3401) 2021-06-25 08:35:59 +09:00
Anuraag Agrawal deb0e255cf
Use plugins block everywhere for applying plugins (#3386)
* Use plugins block everywhere for applying plugins

* Actually it's library instrumentation
2021-06-24 11:13:35 +09:00
Anuraag Agrawal eb897a80d9
Migrate muzzle plugin to kotlin script. (#3388)
* Migrate muzzle plugin to kotlin script.

* Update listInstrumentations

* bootstrap not tooling
2021-06-24 11:12:56 +09:00
Anuraag Agrawal 1ecd15b443
Extract errorprone configuration to separate plugin (#3387) 2021-06-23 10:15:44 -07:00
Anuraag Agrawal c1388c9c4c
Migrate muzzle data classes to kotlin. (#3385)
* Migrate muzzle data classes to kotlin.

* Kotlin Regex

* More Kotlin Regex
2021-06-23 15:36:53 +09:00
Anuraag Agrawal 9e763d69a7
Extract build plugin for instrumentation testing projects that aren't muzzled / published. (#3354) 2021-06-19 11:04:33 +09:00
Anuraag Agrawal 97254f04d1
Update to Gradle 7.1 (#3344) 2021-06-17 10:37:57 -07:00
Anuraag Agrawal 80f43b7a6a
Migrate javaagent-instrumentation to plugin (#3328)
* Migrate instrumentation.gradle to plugin

* Migrate usages

* Remove old

* Fix

* Revert example

* afterEvaluate

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-06-17 23:13:14 +09:00
Anuraag Agrawal 8e6a464cb8
Add artifact clauses to shadow publish (#3342) 2021-06-17 20:41:03 +09:00