-
Notifications
You must be signed in to change notification settings - Fork 8.1k
[release/v7.6] Add merge conflict marker detection to linux-ci workflow and refactor existing actions to use reusable get-changed-files action #26530
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
… existing actions to use reusable get-changed-files action (PowerShell#26350) Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: TravisEz13 <10873629+TravisEz13@users.noreply.github.com> Co-authored-by: Travis Plunk <travis.plunk@microsoft.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Travis Plunk (HE/HIM) <tplunk@ntdev.microsoft.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This backport PR adds merge conflict marker detection to the linux-ci workflow and introduces a new Install-CIPester function to standardize Pester module installation across CI jobs. The PR includes comprehensive test coverage for the new functionality and adds guidance documentation for PowerShell code organization and automatic variable naming conventions.
Key Changes:
- New
Test-MergeConflictMarkerfunction intools/ci.psm1to detect Git merge conflict markers - New
Install-CIPesterfunction to standardize Pester installation - New GitHub Actions composite action for merge conflict checking
- Infrastructure tests job added to linux-ci workflow
- Documentation files for PowerShell code organization and naming conventions
Reviewed changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
.github/workflows/linux-ci.yml |
Contains unresolved merge conflicts - Added merge_conflict_check and infrastructure_tests jobs with duplicate dependency entries |
tools/ci.psm1 |
Added Test-MergeConflictMarker and Install-CIPester functions for CI validation |
test/infrastructure/ciModule.Tests.ps1 |
Comprehensive Pester tests for new CI module functions |
.github/actions/infrastructure/merge-conflict-checker/action.yml |
New composite action for detecting merge conflict markers in PRs |
.github/actions/infrastructure/merge-conflict-checker/README.md |
Documentation for merge conflict checker action |
.github/actions/test/linux-packaging/action.yml |
Updated to use Install-CIPester for standardized Pester installation |
.github/workflows/macos-ci.yml |
Added Pester installation step using Install-CIPester |
.vsts-ci/templates/nanoserver.yml |
File removed |
.github/instructions/powershell-module-organization.instructions.md |
New documentation for PowerShell code organization guidelines |
.github/instructions/powershell-automatic-variables.instructions.md |
New documentation for PowerShell automatic variable naming conventions |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 10 out of 10 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
This pull request has been automatically marked as Review Needed because it has been there has not been any activity for 7 days. |
Move linux_packaging job before ready_to_merge to fix the workflow validation error. Jobs must be defined before they are referenced in needs sections. Fixes #26530 Co-authored-by: adityapatwardhan <12820925+adityapatwardhan@users.noreply.github.com>
Backport of #26350 to release/v7.6
Triggered by @TravisEz13 on behalf of @copilot-swe-agent
Original CL Label: CL-Tools
/cc @PowerShell/powershell-maintainers
Impact
REQUIRED: Choose either Tooling Impact or Customer Impact (or both). At least one checkbox must be selected.
Tooling Impact
Adds merge conflict marker detection to the linux-ci workflow to prevent accidental commits with unresolved merge conflict markers. Also refactors existing actions to use the reusable get-changed-files action for better maintainability.
Customer Impact
Regression
REQUIRED: Check exactly one box.
This is not a regression.
Testing
Verified by:
Risk
REQUIRED: Check exactly one box.
Medium risk: Adds new CI workflow jobs and GitHub Actions, but these are non-blocking checks that detect issues without preventing merges. Changes are isolated to workflow definitions and test infrastructure, with minimal impact on production code.
Merge Conflicts
File:
.github/workflows/linux-ci.ymlready_to_mergejobmerge_conflict_checkandinfrastructure_testsjobs from the backport to the release branch's existinglinux_packagingjob