Skip to content

Test Java API hashes across module types (do not merge) - #51395

Closed
Weidong Xu (weidongxu-microsoft) wants to merge 4 commits into
mainfrom
weidongxu/java-api-hash-multi-origin-validation
Closed

Weidong Xu (weidongxu-microsoft) wants to merge 4 commits into
mainfrom
weidongxu/java-api-hash-multi-origin-validation

Conversation

@weidongxu-microsoft

Copy link
Copy Markdown
Member

Disposable validation of the changes in #51391.

README-only markers request PR CI coverage for data-plane (azure-compute-batch), control-plane (azure-resourcemanager-compute), core (azure-core), JSON (azure-json), and tooling (api-review-maven-plugin).

Verify package selection, staging, and each published ApiHash. No API changes, release requests, or ARH submissions. Close without merging after validation.

Reuse the ARH executable for release PackageInfo ApiHash metadata, including source-built patch packages. Preserve metadata through existing signed-artifact transfers without adding approval or publication gates.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: d47c40e0-dce3-4856-b258-f62b42922e1b
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: d47c40e0-dce3-4856-b258-f62b42922e1b
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: d47c40e0-dce3-4856-b258-f62b42922e1b
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: d47c40e0-dce3-4856-b258-f62b42922e1b
Copilot AI balanced review requested due to automatic review settings November 24, 2026 05:31
@azure-sdk-automation

Copy link
Copy Markdown
Contributor

The sdk-api-review-ready label cannot create reviews for this working PR because it affects multiple SDK packages. Use the Azure SDK CLI (azsdk apireview create) to create a review for each package.

@github-actions github-actions Bot added Azure SDK Tools Label for tracking issues related to Azure SDK Tools Azure.Core azure-core Batch Mgmt This issue is related to a management-plane library. labels Nov 24, 2026
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 2 pipeline(s).
33 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Hash generation fails on archetype Java templates and blocks artifact publication, while the new regression suite is excluded from CI because it lacks the required UnitTest tag.

2 open issues
What changed in this PR

This disposable PR validates the staged-source API hashing work from #51391 across five Java module types. It is intended for CI validation and should be closed without merging.

Changes:

  • Add API hash generation to standard and patch build pipelines.
  • Support sparse-checkout tooling staging and add PowerShell tests for hashing and metadata preservation.
  • Add README-only CI markers across representative modules and document hash behavior.
File Description
sdk/​tools/​api-review-maven-plugin/​README.md Adds a CI marker and documents staged-source hashes.
sdk/​serialization/​azure-json/​README.md Adds the JSON module CI marker.
sdk/​core/​azure-core/​README.md Adds the core module CI marker.
sdk/​compute/​azure-resourcemanager-compute/​README.md Adds the control-plane module CI marker.
sdk/​batch/​azure-compute-batch/​README.md Adds the data-plane module CI marker.
eng/​scripts/​tests/​Save-Package-ApiHash-Property.tests.ps1 Tests hash generation, validation, and metadata preservation.
eng/​scripts/​tests/​ApiReviewHub.tests.ps1 Tests sparse-checkout expansion and confirmation behavior.
eng/​scripts/​Stage-ApiReviewTools.ps1 Supports staging tooling from sparse checkouts.
eng/​scripts/​Save-Package-ApiHash-Property.ps1 Generates and validates hashes before updating PackageInfo.
eng/​pipelines/​templates/​steps/​save-package-api-hash.yml Builds and invokes hash tooling with Java 17.
eng/​pipelines/​templates/​stages/​archetype-sdk-client-patch.yml Adds hashing to patch builds.
eng/​pipelines/​templates/​jobs/​ci.yml Adds hashing to standard CI builds.

Review effort: Balanced

@weidongxu-microsoft

Copy link
Copy Markdown
Member Author

Validation complete: PR CI 7107412 passed after retrying only one Batch playback-test job. Java CodeQL and engineering-script CI also passed.

All five requested origins were selected, staged, and hashed; every published hash, version, and path matched independent rendering of its exact sources JAR. Tooling built once (~38 seconds); hashing took ~26 seconds.

Closing this disposable PR without merging. Implementation remains in #51391.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Azure.Core azure-core Azure SDK Tools Label for tracking issues related to Azure SDK Tools Batch Mgmt This issue is related to a management-plane library.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants