Repository navigation
Fix first-release CI path initialization - #50548
Merged
Xiaofei Cao (XiaofeiCao) merged 4 commits intoSep 23, 2026
Merged
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
|
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. |
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Xiaofei Cao (XiaofeiCao)
marked this pull request as ready for review
September 22, 2026 05:07
Xiaofei Cao (XiaofeiCao)
requested review from
a team,
Arthur Ma (ArthurMa1978),
Jonathan Giles (JonathanGiles),
Alan Zimmer (alzimmermsft),
Haoling Dong (haolingdong-msft),
Moary Chen (moarychan),
Praveen Kuttappan (praveenkuttappan),
Ray Chen (raych1) and
Weidong Xu (weidongxu-microsoft)
as code owners
September 22, 2026 05:07
|
Azure Pipelines: Successfully started running 3 pipeline(s). 32 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
The new CI path-filter logic will throw on valid ci.yml patterns like trigger: none / pr: none, and the RevApi suppression removal appears out-of-scope relative to the PR’s stated purpose.
Get a fresh assessment by requesting another Copilot review.
Review effort: Lite
Findings: 2
Open (3)
What changed in this PR
Updates the first-release metadata automation to ensure newly added packages get correct CI trigger/pr path filters when they’re added to an existing service-level ci.yml, aligning the Python implementation with the PowerShell inner-loop script and expanding automated coverage.
Changes:
- Add CI path-filter update logic to both Python (
update_ci_path_filters) and PowerShell (Update-CiPathFilters) and wire it into the existingci.ymlupdate flow. - Expand Pester + Python unit tests to validate idempotency, preservation of existing filters, and malformed filter rejection.
- Remove two RevApi suppressions for
azure-resourcemanager-networkbreaking changes (currently not mentioned in the PR description).
| File | Description |
|---|---|
| eng/scripts/tests/Automation-Sdk-UpdateMetadata.tests.ps1 | Adds Pester coverage for path filter updates and verifies Update-CiYml writes filters even when the artifact already exists. |
| eng/scripts/helpers/Metadata-Helpers.ps1 | Introduces Update-CiPathFilters and integrates it into Update-CiYml write conditions. |
| eng/automation/utils.py | Adds update_ci_path_filters and ensures ci.yml is rewritten when only filters change. |
| eng/automation/test_generate.py | Adds unit tests for update_ci_path_filters and the “artifact already exists but filters missing” scenario. |
| eng/lintingconfigs/revapi/track2/revapi.json | Removes RevApi filters for two network model breaking changes (scope mismatch with PR description). |
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Weidong Xu (weidongxu-microsoft)
approved these changes
Sep 22, 2026
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Member
Author
|
/azp run java - spring - ci |
|
Azure Pipelines: 1 pipeline(s) were filtered out due to trigger conditions. |
Weidong Xu (weidongxu-microsoft)
approved these changes
Sep 23, 2026
browndav-msft
pushed a commit
to browndav-msft/azure-sdk-for-java
that referenced
this pull request
Oct 14, 2026
* Fix first-release CI path initialization Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> * Remove released Network RevApi suppressions Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> * Support disabled CI triggers and omitted path filters Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> * Make CI path enrichment non-fatal Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Description
PR that fix issue in sdk repo: #50547
Update first-release SDK metadata automation so packages added to an existing service-level
ci.ymlalso receive complete CI path filters.trigger.paths.includeandpr.paths.include.pom.xmltotrigger.paths.excludeandpr.paths.exclude.This prevents newly initialized SDK packages from requiring the manual
ci.ymlcorrections made in #50547.Verification
python eng\automation\test_generate.py— 18 passedeng\scripts\tests\Automation-Sdk-UpdateMetadata.tests.ps1— 53 passed, 0 failedgit diff --check