Repository navigation
Test Java API hashes across module types (do not merge) - #51395
Weidong Xu (weidongxu-microsoft) wants to merge 4 commits into
Conversation
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
|
The |
|
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. |
There was a problem hiding this comment.
🟡 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
|
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. |


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.