Skip to content

Conversation

@YunchuWang
Copy link
Member

@YunchuWang YunchuWang commented Apr 25, 2025

This pull request introduces several updates across the azuremanaged module and related files to enhance functionality, improve build processes, and extend protocol buffer definitions. The most significant changes include adding support for user-agent headers, automating version information generation during the build, and extending the protobuf definitions with new properties.

Enhancements to SDK functionality:

  • User-Agent Header Support: Added user-agent headers to DurableTaskSchedulerClientOptions and DurableTaskSchedulerWorkerOptions using the new DurableTaskUserAgentUtil utility class. This ensures consistent identification of the SDK in network requests. (azuremanaged/src/main/java/com/microsoft/durabletask/azuremanaged/DurableTaskSchedulerClientOptions.java, [1]; azuremanaged/src/main/java/com/microsoft/durabletask/azuremanaged/DurableTaskSchedulerWorkerOptions.java, [2]

  • User-Agent Utility: Introduced DurableTaskUserAgentUtil to generate user-agent strings dynamically based on the SDK name and version. (azuremanaged/src/main/java/com/microsoft/durabletask/azuremanaged/DurableTaskUserAgentUtil.java, azuremanaged/src/main/java/com/microsoft/durabletask/azuremanaged/DurableTaskUserAgentUtil.javaR1-R27)

Build process improvements:

  • Automated Version Info Generation: Added a Gradle task to generate a VersionInfo class during the build process, ensuring the SDK version is always up-to-date in the code. (azuremanaged/build.gradle, [1]; azuremanaged/src/main/resources/VersionInfo.java.template, [2]

Protocol buffer extensions:

Miscellaneous:

  • Protobuf Source Commit Hash Update: Updated the PROTO_SOURCE_COMMIT_HASH to reflect the latest changes in the protobuf definitions. (internal/durabletask-protobuf/PROTO_SOURCE_COMMIT_HASH, internal/durabletask-protobuf/PROTO_SOURCE_COMMIT_HASHL1-R1)

  • Sample Application Update: Replaced the application plugin in the samples module with a custom Gradle task for running a specific sample application. (samples/build.gradle, samples/build.gradleL4-R16)

Issue describing the changes in this PR

resolves #issue_for_this_pr

Pull request checklist

  • My changes do not require documentation changes
    • Otherwise: Documentation issue linked to PR
  • My changes are added to the CHANGELOG.md
  • I have added all required tests (Unit tests, E2E tests)

Additional information

Additional PR information

@YunchuWang YunchuWang requested a review from a team as a code owner April 25, 2025 23:41
@YunchuWang YunchuWang requested a review from berndverst April 25, 2025 23:42
@YunchuWang YunchuWang merged commit 4954477 into main Apr 25, 2025
4 checks passed
@YunchuWang YunchuWang deleted the wangbill/usera branch April 25, 2025 23:51
JoshVanL pushed a commit to JoshVanL/durabletask-java that referenced this pull request May 7, 2025
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 participants