🌐 AI搜索 & 代理 主页
Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 24, 2025

PR Summary

Addresses review comments from PR #26504 to fix DEB package generation, dependency checking, and build scenario conditions.

PR Context

The original PR #26504 replaced fpm with native dpkg-deb for DEB package generation. This PR fixes issues identified in code review:

Dependency Management

  • New-NativeDeb: Omit empty Depends: field when no dependencies specified (prevents invalid control file)
  • Test-Dependencies: Add platform-specific checks for dpkg-deb (Debian) and rpmbuild (RPM systems), not just Mariner

Package Validation

  • DEB filename format: name_version-iteration.deb_arch.deb (was name_version-iteration_arch.deb)
  • Test regex: Support tilde separator (~rc.1) and variable iteration (-\d vs -1) to match pipeline validation

Error Handling

  • DEB creation catch block: Add Get-Error and rethrow exceptions (was silently swallowing errors)

Build System

  • Scenario conditions: Include 'All' option in all 4 package-related checks (Ubuntu/Debian, RedHat/Mariner, SUSE, Windows WiX)
  • Log grouping: Replace unavailable Write-LogGroup with Write-LogGroupStart/Write-LogGroupEnd

PR Checklist

Original prompt

apply changes based on the comments in this thread


💡 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 and others added 2 commits November 24, 2025 21:19
…ng, and scenario conditions

Co-authored-by: TravisEz13 <10873629+TravisEz13@users.noreply.github.com>
…ageManager

Co-authored-by: TravisEz13 <10873629+TravisEz13@users.noreply.github.com>
Copilot AI changed the title [WIP] Apply changes based on review comments Apply review comments from PR #26504: fix dependencies, error handling, and package validation Nov 24, 2025
Copilot AI requested a review from TravisEz13 November 24, 2025 21:26
@TravisEz13 TravisEz13 changed the title Apply review comments from PR #26504: fix dependencies, error handling, and package validation Fix dependencies, error handling, and package validation Nov 24, 2025
@TravisEz13 TravisEz13 added the CL-BuildPackaging Indicates that a PR should be marked as a build or packaging change in the Change Log label Nov 25, 2025

# Build the package using dpkg-deb
$debFileName = "${Name}_${Version}-${Iteration}_${HostArchitecture}.deb"
$debFileName = "${Name}_${Version}-${Iteration}.deb_${HostArchitecture}.deb"
Copy link
Member

Choose a reason for hiding this comment

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

@copilot This created an invalid file name

WARNING: powershell_7.6.0-preview.6-1.deb.deb_amd64.deb is not a valid DEB package name
Error: [-] Linux Package Name Validation.DEB Package Names.Should have valid DEB package names 59ms (58ms|2ms)

Co-authored-by: TravisEz13 <10873629+TravisEz13@users.noreply.github.com>
Copilot AI requested a review from TravisEz13 November 25, 2025 22:43
@microsoft-github-policy-service microsoft-github-policy-service bot added the Waiting on Author The PR was reviewed and requires changes or comments from the author before being accept label Nov 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-BuildPackaging Indicates that a PR should be marked as a build or packaging change in the Change Log Waiting on Author The PR was reviewed and requires changes or comments from the author before being accept

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants