Skip to content

fix(fat-agent): execute bundled probes end to end#899

Merged
jbachorik merged 4 commits into
developfrom
agent/issue-878-bundled-probes
Jul 14, 2026
Merged

fix(fat-agent): execute bundled probes end to end#899
jbachorik merged 4 commits into
developfrom
agent/issue-878-bundled-probes

Conversation

@jbachorik

@jbachorik jbachorik commented Jul 13, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • make META-INF/btrace-probes/<binary-name>.class the canonical standalone bundled-probe layout
  • resolve both explicit probes= and configurator-selected probes through that layout
  • validate Java binary names and fail agent startup for invalid, missing, or unloadable named probes
  • make Gradle staging validate nested names, missing inputs, and task ordering before building the fat agent
  • update the user guides from the former silent-no-op warning to the working workflow

Fixes #878

Verification

  • full :btrace-agent:test suite
  • focused runtime tests for nested/inner names, traversal rejection, and fatal missing-resource behavior
  • focused Gradle TestKit build checks for nested layout, missing names, and invalid names
  • launched-JVM integration fixture observes BUNDLED_PROBE_EXECUTED, application output, BUNDLED_PROBE_TORN_DOWN, and exit code 0
  • ./gradlew spotlessCheck
  • :btrace-agent:compileJava and :btrace-gradle-plugin:compileGroovy

Baseline limitations

The complete :btrace-gradle-plugin:test run reaches five unrelated failures already present on develop: two tests use the removed registry DSL, one expects the removed registry(...) source, and two extension fixtures define a non-abstract ShadowJar incompatible with Gradle 9.5. The agent and plugin builds also pin JUnit 6.1.2 while compiling tests for Java 8/11, so verification used temporary local JUnit 5.14.4 pins and a Java 17 TestKit launcher; none of those temporary changes is included in this PR.


This change is Reviewable

@jbachorik jbachorik marked this pull request as ready for review July 14, 2026 20:49
@jbachorik jbachorik merged commit a693313 into develop Jul 14, 2026
15 checks passed
@jbachorik jbachorik deleted the agent/issue-878-bundled-probes branch July 14, 2026 21:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[3.0] Make Gradle fat-agent bundled probes execute end to end

1 participant