Skip to content

Add YML templates for version-only changes builds#2

Draft
Copilot wants to merge 3 commits intomainfrom
copilot/fix-1
Draft

Add YML templates for version-only changes builds#2
Copilot wants to merge 3 commits intomainfrom
copilot/fix-1

Conversation

Copy link
Copy Markdown

Copilot AI commented May 21, 2025

This PR adds two new pipeline YAML templates specifically for version-only change PRs, allowing builds to run without static analysis.

Changes Made

  1. Created WindowsAppSDK-Foundation-PR-VersionOnly.yml based on WindowsAppSDK-Foundation-PR.yml with:

    • runStaticAnalysis parameter default set to false (instead of true)
  2. Created ProjectReunion-BuildFoundation-VersionOnly.yml based on ProjectReunion-BuildFoundation.yml with:

    • runApiScan parameter set to false
    • runPREFast parameter set to false
    • Removed the additional PREFast build stage

Purpose

These templates will be used for auto-generated PRs that only update dependency versions on a daily basis. Since these types of changes don't require static analysis (which can be time-consuming), these templates provide an optimized build pipeline for such changes.

Usage

Use these templates instead of the regular PR build templates when creating version-only change PRs, to improve build efficiency by skipping unnecessary static analysis steps.

Fixes #1.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI changed the title [WIP] [Feature Request] Add yml template for version only changes Builds Add YML templates for version-only changes builds May 21, 2025
Copilot AI requested a review from MuyuanMS May 21, 2025 06:10
@MuyuanMS
Copy link
Copy Markdown
Owner

@copilot The only concern I have is this solution causes duplicate code, which makes it harder to maintain the codebase (change to one .yml has to be applied to the other). Just wondering whether there are ways not to generate duplicate code, but somehow reuse the duplicate part between the two .yml files and only differs in static analysis part?

Copy link
Copy Markdown
Author

Copilot AI commented May 21, 2025

@copilot The only concern I have is this solution causes duplicate code, which makes it harder to maintain the codebase (change to one .yml has to be applied to the other). Just wondering whether ther...

I've addressed the code duplication concern by creating shared core templates:

  1. Created WindowsAppSDK-Foundation-PR-Core.yml and ProjectReunion-BuildFoundation-Core.yml that contain all the shared code
  2. Modified the original and version-only YAML files to simply extend these core templates with appropriate parameters

This approach eliminates duplication while maintaining the same functionality. Now when changes are needed, you only need to update the core template file.

Commit: 94e688b

Warning

Firewall rules blocked me from connecting to one or more addresses

I tried to connect to the following addresses, but was blocked by firewall rules:

  • cdn.fwupd.org
    • Triggering command: /usr/bin/fwupdmgr refresh (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

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.

[Feature Request] Add yml template for version only changes Builds

2 participants