Skip to content

Commit 32f2612

Browse files
apmmachinev1vsomeshwaranMdependabot[bot]JonasKunz
authored
post release v1.50.0: update major branch (#3650)
* [maven-release-plugin] prepare for next development iteration * Update cloudfoundry for 1.48.1 release * ci: use .java-version and prepare to use VM with installed tools in BK (#3554) * ci(bk): use specialised VMs (#3555) * Added a note on centralized agent config support for AWS Lambda (#3498) * Bump com.networknt:json-schema-validator from 1.1.0 to 1.3.3 (#3547) * Bump com.networknt:json-schema-validator from 1.1.0 to 1.3.3 Bumps [com.networknt:json-schema-validator](https://github.com/networknt/json-schema-validator) from 1.1.0 to 1.3.3. - [Release notes](https://github.com/networknt/json-schema-validator/releases) - [Changelog](https://github.com/networknt/json-schema-validator/blob/master/CHANGELOG.md) - [Commits](networknt/json-schema-validator@1.1.0...1.3.3) --- updated-dependencies: - dependency-name: com.networknt:json-schema-validator dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Fix compilation * Fix schema version --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jonas Kunz <jonas.kunz@elastic.co> * Fix inheritance for API annotations (#3551) * powershell no-logo (#3556) * security: add permissions block to workflows (#3531) * Bump io.micrometer:micrometer-core from 1.12.2 to 1.12.4 (#3559) Bumps [io.micrometer:micrometer-core](https://github.com/micrometer-metrics/micrometer) from 1.12.2 to 1.12.4. - [Release notes](https://github.com/micrometer-metrics/micrometer/releases) - [Commits](micrometer-metrics/micrometer@v1.12.2...v1.12.4) --- updated-dependencies: - dependency-name: io.micrometer:micrometer-core dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump version.log4j from 2.12.4 to 2.23.1 (#3557) * Bump version.log4j from 2.12.4 to 2.23.1 Bumps `version.log4j` from 2.12.4 to 2.23.1. Updates `org.apache.logging.log4j:log4j-core` from 2.12.4 to 2.23.1 Updates `org.apache.logging.log4j:log4j-slf4j-impl` from 2.12.4 to 2.23.1 --- updated-dependencies: - dependency-name: org.apache.logging.log4j:log4j-core dependency-type: direct:production update-type: version-update:semver-minor - dependency-name: org.apache.logging.log4j:log4j-slf4j-impl dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * restore previous log4j version --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Sylvain Juge <763082+SylvainJuge@users.noreply.github.com> * Add API for instrumenting FAAS and adjust the AWS plugin (#3516) --------- Co-authored-by: Sylvain Juge <763082+SylvainJuge@users.noreply.github.com> * Introduce API for metrics collection that does not depend on agent-core (#3522) * Remove logging API. * Clean up core dependencies from POMs that do not need it. * Add API for handling lambda instrumentation and apply to the AWS plugin. * Move metrics API to tracer. * Factor out JSON DSL for metrics. * Fix import issue. * Fix imports. * Fix imports. * fix formatting --------- Co-authored-by: Sylvain Juge <763082+SylvainJuge@users.noreply.github.com> * differentiate Lambda url from api gateway (#3417) --------- Co-authored-by: Sylvain Juge <763082+SylvainJuge@users.noreply.github.com> * added support to Elastic Load Balancer triggers (#3411) --------- Co-authored-by: Sylvain Juge <763082+SylvainJuge@users.noreply.github.com> * feat: new release process with PRs (#3567) * feat: new release process with PRs Signed-off-by: Adrien Mannocci <adrien.mannocci@elastic.co> * chore: redirect to stderr for both message Signed-off-by: Adrien Mannocci <adrien.mannocci@elastic.co> * chore: apply suggest Signed-off-by: Adrien Mannocci <adrien.mannocci@elastic.co> * ci(chore): use env var instead of prefix v Signed-off-by: Adrien Mannocci <adrien.mannocci@elastic.co> * ci: use maven wrapper instead of direct maven Signed-off-by: Adrien Mannocci <adrien.mannocci@elastic.co> * feat: validate snapshot for snapshot workflow Signed-off-by: Adrien Mannocci <adrien.mannocci@elastic.co> * docs: add new release process Signed-off-by: Adrien Mannocci <adrien.mannocci@elastic.co> --------- Signed-off-by: Adrien Mannocci <adrien.mannocci@elastic.co> * Bump version.aws.sdk from 2.25.0 to 2.25.21 in /apm-agent-plugins (#3574) Bumps `version.aws.sdk` from 2.25.0 to 2.25.21. Updates `software.amazon.awssdk:s3` from 2.25.0 to 2.25.21 Updates `software.amazon.awssdk:sqs` from 2.25.0 to 2.25.21 Updates `software.amazon.awssdk:dynamodb` from 2.25.0 to 2.25.21 --- updated-dependencies: - dependency-name: software.amazon.awssdk:s3 dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: software.amazon.awssdk:sqs dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: software.amazon.awssdk:dynamodb dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump org.awaitility:awaitility from 4.2.0 to 4.2.1 (#3573) Bumps [org.awaitility:awaitility](https://github.com/awaitility/awaitility) from 4.2.0 to 4.2.1. - [Changelog](https://github.com/awaitility/awaitility/blob/master/changelog.txt) - [Commits](awaitility/awaitility@awaitility-4.2.0...awaitility-4.2.1) --- updated-dependencies: - dependency-name: org.awaitility:awaitility dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Add exclusion list option for calling DatabaseMetaData.getUserName (#3568) * use a dummy user for testing * exclusion list option for calling getUserName * changelog and test break fixed * pre release: elastic-apm-agent v1.49.0 (#3576) Co-authored-by: apmmachine <apmmachine@users.noreply.github.com> * ci(fix): use input value instead of env value for post release trigger (#3577) Signed-off-by: Adrien Mannocci <adrien.mannocci@elastic.co> * ci(fix): correct buildkite pipeline trigger (#3578) Signed-off-by: Adrien Mannocci <adrien.mannocci@elastic.co> * post release: elastic-apm-agent v1.49.0 (#3579) Co-authored-by: apmmachine <apmmachine@users.noreply.github.com> * ci(fix): correct release order (#3581) Signed-off-by: Adrien Mannocci <adrien.mannocci@elastic.co> * Bump org.springframework.boot:spring-boot-dependencies from 2.7.16 to 3.2.4 (#3572) * Bump org.springframework.boot:spring-boot-dependencies Bumps [org.springframework.boot:spring-boot-dependencies](https://github.com/spring-projects/spring-boot) from 2.7.16 to 3.2.4. - [Release notes](https://github.com/spring-projects/spring-boot/releases) - [Commits](spring-projects/spring-boot@v2.7.16...v3.2.4) --- updated-dependencies: - dependency-name: org.springframework.boot:spring-boot-dependencies dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Update pom.xml * Update pom.xml * Update pom.xml --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jonas Kunz <jonas.kunz@elastic.co> * buildkite: fallback if home is not available (#3591) * Prevent cycles in inferred spans (#3588) * [ci] add list of published artifacts (#3595) * Bump version.mockito from 5.1.1 to 5.11.0 (#3587) Bumps `version.mockito` from 5.1.1 to 5.11.0. Updates `org.mockito:mockito-core` from 5.1.1 to 5.11.0 - [Release notes](https://github.com/mockito/mockito/releases) - [Commits](mockito/mockito@v5.1.1...v5.11.0) Updates `org.mockito:mockito-subclass` from 5.1.1 to 5.11.0 - [Release notes](https://github.com/mockito/mockito/releases) - [Commits](mockito/mockito@v5.1.1...v5.11.0) --- updated-dependencies: - dependency-name: org.mockito:mockito-core dependency-type: direct:development update-type: version-update:semver-minor - dependency-name: org.mockito:mockito-subclass dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * github-actions: enable provenance for the jar files (#3594) * chore: APM agent json server schema a76e999543efb3ba803c9a57dd13a4f6b... (#3584) ... 3ffa7e1 Made with ❤️️ by updatecli Co-authored-by: apmmachine <apmmachine@users.noreply.github.com> * [ci] fix GH release version tag (#3596) * [ci] fix artifact list path (#3597) * Upgrade JDK compatibility tests (#3599) * Upgrade JDK compatibility tests * Added JDK 23 ea * Attempt to set net.bytebuddy.experimental for EA versions * Remove java 23-ea tests * Bump version.ecs.logging from 1.5.0 to 1.6.0 (#3585) Bumps `version.ecs.logging` from 1.5.0 to 1.6.0. Updates `co.elastic.logging:log4j2-ecs-layout` from 1.5.0 to 1.6.0 - [Release notes](https://github.com/elastic/ecs-logging-java/releases) - [Commits](elastic/ecs-logging-java@v1.5.0...v1.6.0) Updates `co.elastic.logging:logback-ecs-encoder` from 1.5.0 to 1.6.0 - [Release notes](https://github.com/elastic/ecs-logging-java/releases) - [Commits](elastic/ecs-logging-java@v1.5.0...v1.6.0) Updates `co.elastic.logging:log4j-ecs-layout` from 1.5.0 to 1.6.0 - [Release notes](https://github.com/elastic/ecs-logging-java/releases) - [Commits](elastic/ecs-logging-java@v1.5.0...v1.6.0) Updates `co.elastic.logging:jul-ecs-formatter` from 1.5.0 to 1.6.0 - [Release notes](https://github.com/elastic/ecs-logging-java/releases) - [Commits](elastic/ecs-logging-java@v1.5.0...v1.6.0) Updates `co.elastic.logging:jboss-logmanager-ecs-formatter` from 1.5.0 to 1.6.0 - [Release notes](https://github.com/elastic/ecs-logging-java/releases) - [Commits](elastic/ecs-logging-java@v1.5.0...v1.6.0) --- updated-dependencies: - dependency-name: co.elastic.logging:log4j2-ecs-layout dependency-type: direct:production update-type: version-update:semver-minor - dependency-name: co.elastic.logging:logback-ecs-encoder dependency-type: direct:production update-type: version-update:semver-minor - dependency-name: co.elastic.logging:log4j-ecs-layout dependency-type: direct:production update-type: version-update:semver-minor - dependency-name: co.elastic.logging:jul-ecs-formatter dependency-type: direct:production update-type: version-update:semver-minor - dependency-name: co.elastic.logging:jboss-logmanager-ecs-formatter dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump org.apache.logging.log4j:log4j-bom from 2.22.1 to 2.23.1 (#3565) Bumps [org.apache.logging.log4j:log4j-bom](https://github.com/apache/logging-log4j2) from 2.22.1 to 2.23.1. - [Release notes](https://github.com/apache/logging-log4j2/releases) - [Changelog](https://github.com/apache/logging-log4j2/blob/2.x/RELEASE-NOTES.adoc) - [Commits](apache/logging-log4j2@rel/2.22.1...rel/2.23.1) --- updated-dependencies: - dependency-name: org.apache.logging.log4j:log4j-bom dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * github-action: add attestations scope (#3601) * Universal profiling integration: write shared memory (#3598) --------- Co-authored-by: SylvainJuge <763082+SylvainJuge@users.noreply.github.com> * ci(release): tag AWS with the ver prefix (#3606) * release: use tag version for docker build/push (#3600) * Bump version.byte-buddy from 1.14.12 to 1.14.14 (#3608) * Bump version.byte-buddy from 1.14.12 to 1.14.14 Bumps `version.byte-buddy` from 1.14.12 to 1.14.14. Updates `net.bytebuddy:byte-buddy` from 1.14.12 to 1.14.14 - [Release notes](https://github.com/raphw/byte-buddy/releases) - [Changelog](https://github.com/raphw/byte-buddy/blob/master/release-notes.md) - [Commits](raphw/byte-buddy@byte-buddy-1.14.12...byte-buddy-1.14.14) Updates `net.bytebuddy:byte-buddy-agent` from 1.9.16 to 1.14.14 - [Release notes](https://github.com/raphw/byte-buddy/releases) - [Changelog](https://github.com/raphw/byte-buddy/blob/master/release-notes.md) - [Commits](raphw/byte-buddy@byte-buddy-1.9.16...byte-buddy-1.14.14) Updates `net.bytebuddy:byte-buddy-dep` from 1.14.12 to 1.14.14 - [Release notes](https://github.com/raphw/byte-buddy/releases) - [Changelog](https://github.com/raphw/byte-buddy/blob/master/release-notes.md) - [Commits](raphw/byte-buddy@byte-buddy-1.14.12...byte-buddy-1.14.14) --- updated-dependencies: - dependency-name: net.bytebuddy:byte-buddy dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: net.bytebuddy:byte-buddy-agent dependency-type: direct:production update-type: version-update:semver-minor - dependency-name: net.bytebuddy:byte-buddy-dep dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * keep old version --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Sylvain Juge <763082+SylvainJuge@users.noreply.github.com> * Universal Profiling integration: open socket for communication (#3602) * Fix NPE in dropped spans stats (#3590) * fix npe * update changelog * Universal profiling integration: Added serialization of stacktrace IDs as profiler_stack_trace_ids otel attributes (#3607) * release: use explicit container arch (#3611) * Bump version.aws.sdk from 2.25.21 to 2.25.43 in /apm-agent-plugins (#3614) Bumps `version.aws.sdk` from 2.25.21 to 2.25.43. Updates `software.amazon.awssdk:s3` from 2.25.21 to 2.25.43 Updates `software.amazon.awssdk:sqs` from 2.25.21 to 2.25.43 Updates `software.amazon.awssdk:dynamodb` from 2.25.21 to 2.25.43 --- updated-dependencies: - dependency-name: software.amazon.awssdk:s3 dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: software.amazon.awssdk:sqs dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: software.amazon.awssdk:dynamodb dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Add thread dump debug option (#3589) * add thread dump option * Universal profiling integration: Add stacktrace-IDs to transactions (#3615) * add c3p0 to DatabaseMetaDataExclusionList (#3619) * ci(fix): Files or Directories Accessible to External Parties (#3624) * Bump org.springframework.boot:spring-boot-dependencies from 2.7.16 to 3.2.5 (#3610) * Bump org.springframework.boot:spring-boot-dependencies Bumps [org.springframework.boot:spring-boot-dependencies](https://github.com/spring-projects/spring-boot) from 2.7.16 to 3.2.5. - [Release notes](https://github.com/spring-projects/spring-boot/releases) - [Commits](spring-projects/spring-boot@v2.7.16...v3.2.5) --- updated-dependencies: - dependency-name: org.springframework.boot:spring-boot-dependencies dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * keep v2 dependency * keep v2 dependency * keep v2 dependency --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: jackshirazi <jack.shirazi@elastic.co> * Bump org.jctools:jctools-core from 4.0.1 to 4.0.3 (#3618) * Bump org.jctools:jctools-core from 4.0.1 to 4.0.3 Bumps [org.jctools:jctools-core](https://github.com/JCTools/JCTools) from 4.0.1 to 4.0.3. - [Release notes](https://github.com/JCTools/JCTools/releases) - [Changelog](https://github.com/JCTools/JCTools/blob/master/RELEASE-NOTES.md) - [Commits](JCTools/JCTools@v4.0.1...v4.0.3) --- updated-dependencies: - dependency-name: org.jctools:jctools-core dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * remove comment --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Sylvain Juge <763082+SylvainJuge@users.noreply.github.com> * Bump version.mockito from 5.11.0 to 5.12.0 (#3629) Bumps `version.mockito` from 5.11.0 to 5.12.0. Updates `org.mockito:mockito-core` from 5.11.0 to 5.12.0 - [Release notes](https://github.com/mockito/mockito/releases) - [Commits](mockito/mockito@v5.11.0...v5.12.0) Updates `org.mockito:mockito-subclass` from 5.11.0 to 5.12.0 - [Release notes](https://github.com/mockito/mockito/releases) - [Commits](mockito/mockito@v5.11.0...v5.12.0) --- updated-dependencies: - dependency-name: org.mockito:mockito-core dependency-type: direct:development update-type: version-update:semver-minor - dependency-name: org.mockito:mockito-subclass dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump com.networknt:json-schema-validator from 1.3.3 to 1.4.0 (#3628) Bumps [com.networknt:json-schema-validator](https://github.com/networknt/json-schema-validator) from 1.3.3 to 1.4.0. - [Release notes](https://github.com/networknt/json-schema-validator/releases) - [Changelog](https://github.com/networknt/json-schema-validator/blob/master/CHANGELOG.md) - [Commits](networknt/json-schema-validator@1.3.3...1.4.0) --- updated-dependencies: - dependency-name: com.networknt:json-schema-validator dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * github-action: delete opentelemetry workflow (#3630) * buildkite: avoid failing in tear-down failed (#3622) * github-action: use actions/attest-build-provenance (#3631) * Clarify rabbitmq naming mode support (#3633) * ci: build and push Docker image based on Chainguard base image (#3623) * bouncy castle upgrade (#3634) * add symlink in dockerfile for /javaagent.jar for otel operator to find (#3635) * add symlink in dockerfile for /javaagent.jar for otel operator to find * and wolfi too * buildkite: support version 21 for opentelemetry (#3621) * Bump version.testcontainers from 1.19.1 to 1.19.8 (#3641) Bumps `version.testcontainers` from 1.19.1 to 1.19.8. Updates `org.testcontainers:testcontainers-bom` from 1.19.1 to 1.19.8 - [Release notes](https://github.com/testcontainers/testcontainers-java/releases) - [Changelog](https://github.com/testcontainers/testcontainers-java/blob/main/CHANGELOG.md) - [Commits](testcontainers/testcontainers-java@1.19.1...1.19.8) Updates `org.testcontainers:testcontainers` from 1.19.1 to 1.19.8 - [Release notes](https://github.com/testcontainers/testcontainers-java/releases) - [Changelog](https://github.com/testcontainers/testcontainers-java/blob/main/CHANGELOG.md) - [Commits](testcontainers/testcontainers-java@1.19.1...1.19.8) --- updated-dependencies: - dependency-name: org.testcontainers:testcontainers-bom dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: org.testcontainers:testcontainers dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * ci: add some job timeouts (#3638) * Fix too small activation stack for low transaction_max_spans values (#3643) * Exclude new Cisco AppD packages (#3632) * Bump version.okhttp from 3.14.7 to 4.12.0 (#3640) Bumps `version.okhttp` from 3.14.7 to 4.12.0. Updates `com.squareup.okhttp3:okhttp` from 3.14.7 to 4.12.0 - [Changelog](https://github.com/square/okhttp/blob/master/CHANGELOG.md) - [Commits](square/okhttp@parent-3.14.7...parent-4.12.0) Updates `com.squareup.okhttp3:logging-interceptor` from 4.9.1 to 4.12.0 - [Changelog](https://github.com/square/okhttp/blob/master/CHANGELOG.md) - [Commits](square/okhttp@parent-4.9.1...parent-4.12.0) --- updated-dependencies: - dependency-name: com.squareup.okhttp3:okhttp dependency-type: direct:production update-type: version-update:semver-major - dependency-name: com.squareup.okhttp3:logging-interceptor dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump redis.clients:jedis from 1.4.0 to 5.1.2 (#3639) * Bump redis.clients:jedis from 1.4.0 to 5.1.2 Bumps [redis.clients:jedis](https://github.com/redis/jedis) from 1.4.0 to 5.1.2. - [Release notes](https://github.com/redis/jedis/releases) - [Commits](redis/jedis@jedis-1.4.0...v5.1.2) --- updated-dependencies: - dependency-name: redis.clients:jedis dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Update pom.xml * Update pom.xml * Update pom.xml * Update pom.xml * Fix tests * Fix invalid extracted method --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jonas Kunz <jonas.kunz@elastic.co> * build: bump actions/attest-build-provenance in the github-actions group (#3637) Bumps the github-actions group with 1 update: [actions/attest-build-provenance](https://github.com/actions/attest-build-provenance). Updates `actions/attest-build-provenance` from 1.1.1 to 1.1.2 - [Release notes](https://github.com/actions/attest-build-provenance/releases) - [Changelog](https://github.com/actions/attest-build-provenance/blob/main/RELEASE.md) - [Commits](actions/attest-build-provenance@951c0c5...173725a) --- updated-dependencies: - dependency-name: actions/attest-build-provenance dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * more stack frames for thread dump (#3644) * pre release: elastic-apm-agent v1.50.0 (#3648) Co-authored-by: apmmachine <apmmachine@users.noreply.github.com> --------- Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: Adrien Mannocci <adrien.mannocci@elastic.co> Co-authored-by: apmmachine <apmmachine@users.noreply.github.com> Co-authored-by: Victor Martinez <victormartinezrubio@gmail.com> Co-authored-by: Som <111349830+someshwaranM@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jonas Kunz <jonas.kunz@elastic.co> Co-authored-by: SylvainJuge <763082+SylvainJuge@users.noreply.github.com> Co-authored-by: Jan Calanog <jan.calanog@elastic.co> Co-authored-by: Rafael Winterhalter <rafael.wth@gmail.com> Co-authored-by: Nugusbayev Kanagat <48118512+videnkz@users.noreply.github.com> Co-authored-by: Adrien Mannocci <adrien.mannocci@elastic.co> Co-authored-by: jackshirazi <jack.shirazi@elastic.co> Co-authored-by: Thomas ANDRI Wijayanto <hostbugbounty1337@gmail.com>
1 parent fd29376 commit 32f2612

File tree

256 files changed

+2703
-414
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

256 files changed

+2703
-414
lines changed

.buildkite/hooks/pre-command

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,15 @@ if [[ "$BUILDKITE_COMMAND" =~ .*"upload".* ]]; then
1414
exit 0
1515
fi
1616

17+
# Run always
18+
source .buildkite/hooks/prepare-common.sh
19+
1720
if [ "$BUILDKITE_PIPELINE_SLUG" == "apm-agent-java-opentelemetry-benchmark" ]; then
1821
source .buildkite/hooks/prepare-benchmark.sh
22+
# NOTE: https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/11323 might
23+
# support .java-version, if so then it might be worthy to read the file.
24+
JAVA_VERSION=21
25+
source .buildkite/hooks/prepare-common.sh
1926
fi
2027

2128
if [ "$BUILDKITE_PIPELINE_SLUG" == "apm-agent-java-snapshot" ]; then
@@ -25,6 +32,3 @@ fi
2532
if [ "$BUILDKITE_PIPELINE_SLUG" == "apm-agent-java-release" ]; then
2633
source .buildkite/hooks/prepare-release.sh
2734
fi
28-
29-
# Run always
30-
source .buildkite/hooks/prepare-common.sh

.buildkite/hooks/prepare-common.sh

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,19 @@
11
#!/usr/bin/env bash
2-
set -euo pipefail
2+
set -eo pipefail
33

44
# Configure the java version
5-
JAVA_VERSION=$(cat .java-version | xargs | tr -dc '[:print:]')
5+
if [ -z "$JAVA_VERSION" ] ; then
6+
JAVA_VERSION=$(cat .java-version | xargs | tr -dc '[:print:]')
7+
fi
8+
set +u
9+
# In case the HOME is not available in the context of the runner.
10+
if [ -z "${HOME}" ] ; then
11+
HOME="${BUILDKITE_BUILD_CHECKOUT_PATH}"
12+
export HOME
13+
fi
614
JAVA_HOME="${HOME}/.java/openjdk${JAVA_VERSION}"
15+
set -u
16+
717
export JAVA_HOME
818
PATH="${JAVA_HOME}/bin:${PATH}"
919
export PATH

.buildkite/release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,17 @@ agents:
22
provider: "gcp"
33
image: "family/apm-agent-java-ubuntu-2204"
44

5+
env:
6+
TARBALL_FILE: ${TARBALL_FILE:-artifacts.tar}
7+
58
steps:
69
- label: "Run the release"
710
key: "release"
811
commands: .ci/release.sh
912
artifact_paths:
1013
- "release.txt"
1114
- "**/target/*"
15+
- "${TARBALL_FILE}"
1216

1317
notify:
1418
- slack: "#apm-agent-java"

.buildkite/snapshot.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,17 @@ agents:
22
provider: "gcp"
33
image: "family/apm-agent-java-ubuntu-2204"
44

5+
env:
6+
TARBALL_FILE: ${TARBALL_FILE:-artifacts.tar}
7+
58
steps:
69
- label: "Run the snapshot"
710
key: "release"
811
commands: .ci/snapshot.sh
912
artifact_paths:
1013
- "snapshot.txt"
1114
- "**/target/*"
15+
- "${TARBALL_FILE}"
1216

1317
notify:
1418
- slack: "#apm-agent-java"

.ci/published-artifacts-list.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/usr/bin/env bash
2+
3+
targets="$(find . -type d -name 'target'|grep -v apm-agent-plugins|grep -v integration-tests|sort)"
4+
5+
for t in ${targets}; do
6+
find "${t}" \
7+
-name '*.jar' \
8+
| grep -v '\-sources.jar' \
9+
| grep -v '\-tests.jar' \
10+
| grep -v '\-javadoc.jar' \
11+
| grep -v 'original-' \
12+
| grep -v 'classes/' \
13+
| grep -v 'benchmarks' \
14+
| grep -v 'apm-agent-bootstrap' \
15+
| grep -v 'apm-agent-builds' \
16+
| grep -v 'apm-agent-cached-lookup-key' \
17+
| grep -v 'apm-agent-core' \
18+
| grep -v 'apm-agent-common' \
19+
| grep -v 'apm-agent-lambda-layer' \
20+
| grep -v 'apm-agent-premain'
21+
done

.ci/release.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ set -eo pipefail
1010
clean_up () {
1111
ARG=$?
1212
echo "--- Deleting tmp workspace"
13-
rm -rf $TMP_WORKSPACE
13+
rm -rf $TMP_WORKSPACE || true
1414
exit $ARG
1515
}
1616
trap clean_up EXIT
@@ -32,3 +32,9 @@ fi
3232

3333
echo "--- Deploy the release :package: [./mvnw $GOAL)] $DRY_RUN_MSG"
3434
./mvnw -V -s .ci/settings.xml -Pgpg clean $GOAL -DskipTests --batch-mode | tee release.txt
35+
36+
echo "--- Archive the target folder with jar files"
37+
echo 'gather artifacts'
38+
.ci/published-artifacts-list.sh | tee artifacts.list
39+
echo 'create tarbal'
40+
tar -cvf "${TARBALL_FILE:-artifacts.tar}" -T artifacts.list

.ci/snapshot.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ set -eo pipefail
1212
clean_up () {
1313
ARG=$?
1414
echo "--- Deleting tmp workspace"
15-
rm -rf $TMP_WORKSPACE
15+
rm -rf $TMP_WORKSPACE || true
1616
exit $ARG
1717
}
1818
trap clean_up EXIT
@@ -34,3 +34,9 @@ fi
3434

3535
echo "--- Deploy the snapshot :package: [./mvnw $GOAL)] $DRY_RUN_MSG"
3636
./mvnw -V -s .ci/settings.xml -Pgpg clean $GOAL -DskipTests --batch-mode | tee snapshot.txt
37+
38+
echo "--- Archive the target folder with jar files"
39+
echo 'gather artifacts'
40+
.ci/published-artifacts-list.sh | tee artifacts.list
41+
echo 'create tarbal'
42+
tar -cvf "${TARBALL_FILE:-artifacts.tar}" -T artifacts.list

.github/workflows/main.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ jobs:
6363
build:
6464
name: Build
6565
runs-on: ubuntu-latest
66+
timeout-minutes: 20
6667
steps:
6768
- uses: actions/checkout@v4
6869
- uses: ./.github/workflows/maven-goal
@@ -128,6 +129,7 @@ jobs:
128129
name: License
129130
runs-on: ubuntu-latest
130131
needs: build
132+
timeout-minutes: 10
131133
steps:
132134
- uses: actions/checkout@v4
133135
- uses: ./.github/workflows/unstash
@@ -148,6 +150,7 @@ jobs:
148150
# When undefined, we need to emulate the default value
149151
if: inputs.test_ci == true || inputs.test_ci == null
150152
runs-on: ubuntu-latest
153+
timeout-minutes: 30
151154
needs: build
152155
steps:
153156
- uses: actions/checkout@v4
@@ -169,6 +172,7 @@ jobs:
169172
170173
non-app-server-integration-tests:
171174
name: Non-Application Server integration tests
175+
timeout-minutes: 60
172176
if: |
173177
contains(github.event.pull_request.labels.*.name, 'ci:agent-integration')
174178
|| github.event.pull_request.draft == false
@@ -207,6 +211,7 @@ jobs:
207211
208212
app-server-integration-tests:
209213
name: Application Server integration tests
214+
timeout-minutes: 60
210215
if: |
211216
contains(github.event.pull_request.labels.*.name, 'ci:agent-integration')
212217
|| github.event.pull_request.draft == false
@@ -248,6 +253,7 @@ jobs:
248253
name: Javadoc
249254
runs-on: ubuntu-latest
250255
needs: build
256+
timeout-minutes: 10
251257
steps:
252258
- uses: actions/checkout@v4
253259
- uses: ./.github/workflows/unstash
@@ -260,6 +266,7 @@ jobs:
260266

261267
unit-tests-windows:
262268
name: Build & Test Windows
269+
timeout-minutes: 60
263270
# Inputs aren't defined on some events
264271
# When undefined, we need to emulate the default value
265272
if: |
@@ -287,6 +294,7 @@ jobs:
287294
288295
jdk-compatibility-tests:
289296
name: JDK Compatibility Tests
297+
timeout-minutes: 60
290298
if: |
291299
contains(github.event.pull_request.labels.*.name, 'ci:jdk-compatibility')
292300
|| inputs.jdk_compatibility_ci == true
@@ -301,7 +309,7 @@ jobs:
301309
distribution: 'temurin'
302310
- version: 21
303311
distribution: 'temurin'
304-
- version: 22-ea
312+
- version: 22
305313
distribution: 'temurin'
306314
steps:
307315
- uses: actions/checkout@v4
@@ -324,6 +332,7 @@ jobs:
324332
jboss:
325333
name: JBoss integration tests
326334
runs-on: ubuntu-latest
335+
timeout-minutes: 30
327336
needs: build
328337
# If no PR event or if a PR event that's caused by a non-fork and non dependabot actor
329338
if: github.event_name != 'pull_request' || ( github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == false && github.actor != 'dependabot[bot]' )

.github/workflows/opentelemetry.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 52 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,12 @@ jobs:
7474
runs-on: ubuntu-latest
7575
needs:
7676
- validate-tag
77+
permissions:
78+
attestations: write
79+
contents: write
80+
id-token: write
81+
env:
82+
TARBALL_FILE: artifacts.tar
7783
steps:
7884
- id: buildkite
7985
continue-on-error: true
@@ -86,8 +92,23 @@ jobs:
8692
pipeline: apm-agent-java-release
8793
waitFor: true
8894
printBuildLogs: false
95+
artifactName: releases
96+
artifactPath: ${{ env.TARBALL_FILE }}
8997
buildEnvVars: |
9098
dry_run=${{ inputs.dry_run || 'false' }}
99+
TARBALL_FILE=${{ env.TARBALL_FILE }}
100+
101+
- uses: actions/download-artifact@v3
102+
with:
103+
name: releases
104+
105+
- name: untar the buildkite tarball
106+
run: tar xvf ${{ env.TARBALL_FILE }}
107+
108+
- name: generate build provenance
109+
uses: actions/attest-build-provenance@173725a1209d09b31f9d30a3890cf2757ebbff0d # v1.1.2
110+
with:
111+
subject-path: "${{ github.workspace }}/**/target/*.jar"
91112

92113
await-maven-central-artifact:
93114
name: "Wait for artifacts to be available on maven central"
@@ -101,37 +122,12 @@ jobs:
101122
artifactid: 'elastic-apm-agent'
102123
version: ${{ env.RELEASE_VERSION }}
103124

104-
update-major-branch:
105-
name: "Update Major Branch"
106-
runs-on: ubuntu-latest
107-
needs:
108-
- await-maven-central-artifact
109-
permissions:
110-
contents: write
111-
steps:
112-
- uses: elastic/apm-pipeline-library/.github/actions/github-token@current
113-
with:
114-
url: ${{ secrets.VAULT_ADDR }}
115-
roleId: ${{ secrets.VAULT_ROLE_ID }}
116-
secretId: ${{ secrets.VAULT_SECRET_ID }}
117-
- uses: elastic/apm-pipeline-library/.github/actions/setup-git@current
118-
with:
119-
username: ${{ env.GIT_USER }}
120-
email: ${{ env.GIT_EMAIL }}
121-
token: ${{ env.GITHUB_TOKEN }}
122-
- uses: actions/checkout@v4
123-
with:
124-
ref: ${{ inputs.ref }}
125-
token: ${{ env.GITHUB_TOKEN }}
126-
- name: Update major branch
127-
if: ${{ ! inputs.dry_run }}
128-
run: .ci/release/update-major-branch.sh ${{ env.RELEASE_VERSION }}
129-
130125
build-and-push-docker-images:
131126
name: "Build and push docker images"
132127
runs-on: ubuntu-latest
133128
needs:
134129
- await-maven-central-artifact
130+
- create-github-release
135131
env:
136132
SONATYPE_FALLBACK: 1
137133
steps:
@@ -148,11 +144,11 @@ jobs:
148144
secretId: ${{ secrets.VAULT_SECRET_ID }}
149145
- name: "Build docker image"
150146
shell: bash
151-
run: ./scripts/docker-release/build_docker.sh
147+
run: ./scripts/docker-release/build_docker.sh "${{ env.RELEASE_VERSION }}"
152148
- name: "Push docker image"
153149
if: ${{ ! inputs.dry_run }}
154150
shell: bash
155-
run: ./scripts/docker-release/push_docker.sh
151+
run: ./scripts/docker-release/push_docker.sh "${{ env.RELEASE_VERSION }}"
156152

157153
publish-aws-lambda:
158154
name: "Publish AWS Lambda"
@@ -186,7 +182,7 @@ jobs:
186182
if: ${{ ! inputs.dry_run }}
187183
run: |
188184
# Convert v1.2.3 to ver-1-2-3
189-
VERSION=${RELEASE_VERSION/v/ver-}
185+
VERSION=${RELEASE_VERSION_TAG/v/ver-}
190186
VERSION=${VERSION//./-}
191187
192188
ELASTIC_LAYER_NAME="elastic-apm-java-${VERSION}" .ci/publish-aws.sh
@@ -217,10 +213,35 @@ jobs:
217213
phase: 'post'
218214
secrets: inherit
219215

216+
update-major-branch:
217+
name: "Update Major Branch"
218+
runs-on: ubuntu-latest
219+
needs:
220+
- post-release
221+
permissions:
222+
contents: write
223+
steps:
224+
- uses: elastic/apm-pipeline-library/.github/actions/github-token@current
225+
with:
226+
url: ${{ secrets.VAULT_ADDR }}
227+
roleId: ${{ secrets.VAULT_ROLE_ID }}
228+
secretId: ${{ secrets.VAULT_SECRET_ID }}
229+
- uses: elastic/apm-pipeline-library/.github/actions/setup-git@current
230+
with:
231+
username: ${{ env.GIT_USER }}
232+
email: ${{ env.GIT_EMAIL }}
233+
token: ${{ env.GITHUB_TOKEN }}
234+
- uses: actions/checkout@v4
235+
with:
236+
ref: ${{ inputs.ref }}
237+
token: ${{ env.GITHUB_TOKEN }}
238+
- name: Update major branch
239+
if: ${{ ! inputs.dry_run }}
240+
run: .ci/release/update-major-branch.sh ${{ env.RELEASE_VERSION }}
241+
220242
create-github-release:
221243
name: "Create GitHub Release"
222244
needs:
223-
- post-release
224245
- publish-aws-lambda
225246
- update-major-branch
226247
runs-on: ubuntu-latest
@@ -247,7 +268,7 @@ jobs:
247268
env:
248269
GH_TOKEN: ${{ github.token }}
249270
run: |
250-
gh release create ${{ env.RELEASE_VERSION }} \
271+
gh release create ${{ env.RELEASE_VERSION_TAG }} \
251272
--title="Release ${{ env.RELEASE_VERSION }}" \
252273
--notes="[Release Notes for ${{ env.RELEASE_VERSION }}](https://www.elastic.co/guide/en/apm/agent/java/current/release-notes-${{ steps.get_dotx_branch.outputs.dotx_branch }}.html#release-notes-${{ env.RELEASE_VERSION }})
253274
${{ needs.publish-aws-lambda.outputs.arn_content }}"

0 commit comments

Comments
 (0)