Add additional build and sign step for SilentFilesInUseBAFunction#41853
Add additional build and sign step for SilentFilesInUseBAFunction#41853yeelam-gordon merged 5 commits intomainfrom
Conversation
| /p:RunBuildEvents=true;PerUser=${{parameters.buildUserInstaller}};RestorePackagesConfig=true;CIBuild=true | ||
| /p:InstallerSuffix=${{ parameters.installerSuffix }} | ||
| -restore -graph | ||
| /bl:$(LogOutputDirectory)\installer-$(InstallerBuildSlug)-silentfilesinusebafunction.binlog |
Check failure
Code scanning / check-spelling
Unrecognized Spelling
| platform: $(BuildPlatform) | ||
| configuration: $(BuildConfiguration) | ||
| clean: false # don't undo our hard work above by deleting the MSI | ||
| clean: false # don't undo our hard work above by deleting the MSI nor SilentFilesInUseBAFunction |
|
khaled65442
left a comment
There was a problem hiding this comment.
Workflow to run mypy on select parts of the CPython repo
name: mypy
on:
push:
branches:
- main
pull_request:
paths:
- ".github/workflows/mypy.yml"
- "Lib/_colorize.py"
- "Lib/_pyrepl/"
- "Lib/test/libregrtest/"
- "Lib/tomllib/"
- "Misc/mypy/"
- "Tools/build/compute-changes.py"
- "Tools/build/deepfreeze.py"
- "Tools/build/generate_sbom.py"
- "Tools/build/generate-build-details.py"
- "Tools/build/verify_ensurepip_wheels.py"
- "Tools/build/update_file.py"
- "Tools/build/umarshal.py"
- "Tools/cases_generator/"
- "Tools/clinic/"
- "Tools/jit/"
- "Tools/peg_generator/"
- "Tools/requirements-dev.txt"
workflow_dispatch:
permissions:
contents: read
env:
PIP_DISABLE_PIP_VERSION_CHECK: 1
FORCE_COLOR: 1
TERM: xterm-256color # needed for FORCE_COLOR to work on mypy on Ubuntu, see python/mypy#13817
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
mypy:
name: Run mypy on ${{ matrix.target }}
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
target: [
"Lib/_pyrepl",
"Lib/test/libregrtest",
"Lib/tomllib",
"Tools/build",
"Tools/cases_generator",
"Tools/clinic",
"Tools/jit",
"Tools/peg_generator",
]
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: actions/setup-python@v5
with:
python-version: "3.13"
cache: pip
cache-dependency-path: Tools/requirements-dev.txt
- run: pip install -r Tools/requirements-dev.txt
- run: python3 Misc/mypy/make_symlinks.py --symlink
- run: mypy --config-file ${{ matrix.target }}/mypy.ini
There was a problem hiding this comment.
Pull Request Overview
This PR enhances the installer pipeline to build and sign the SilentFilesInUseBAFunction DLL as part of the CI process, ensuring this component is properly included in the PowerToys installation workflow.
Key changes:
- Added dedicated build and signing steps for the
SilentFilesInUseBAFunctionDLL in the installer pipeline - Enhanced project configuration with Debug/Release-specific compiler settings
- Updated project naming for clearer identification
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
installer/PowerToysSetupVNext/SilentFilesInUseBA/SilentFilesInUseBAFunction.vcxproj |
Added project name property and Debug/Release configuration settings |
.pipelines/v2/templates/steps-build-installer-vnext.yml |
Added build and signing steps for SilentFilesInUseBAFunction DLL |
| <ItemDefinitionGroup Condition="'$(Configuration)'=='Debug'"> | ||
| <ClCompile> | ||
| <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
| <Optimization>Disabled</Optimization> | ||
| <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary> | ||
| </ClCompile> | ||
| <Link> | ||
| <GenerateDebugInformation>true</GenerateDebugInformation> | ||
| </Link> | ||
| </ItemDefinitionGroup> | ||
| <ItemDefinitionGroup Condition="'$(Configuration)'=='Release'"> | ||
| <ClCompile> | ||
| <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
| <Optimization>MaxSpeed</Optimization> | ||
| <RuntimeLibrary>MultiThreaded</RuntimeLibrary> | ||
| <FunctionLevelLinking>true</FunctionLevelLinking> | ||
| <IntrinsicFunctions>true</IntrinsicFunctions> | ||
| </ClCompile> | ||
| <Link> | ||
| <GenerateDebugInformation>true</GenerateDebugInformation> | ||
| <EnableCOMDATFolding>true</EnableCOMDATFolding> | ||
| <OptimizeReferences>true</OptimizeReferences> | ||
| </Link> | ||
| </ItemDefinitionGroup> |
There was a problem hiding this comment.
These configuration-specific ItemDefinitionGroups duplicate standard MSBuild settings that are typically inherited from common property sheets or targets. Consider using existing PowerToys common configuration files instead of duplicating these standard Debug/Release settings inline.
| <ItemDefinitionGroup Condition="'$(Configuration)'=='Debug'"> | |
| <ClCompile> | |
| <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> | |
| <Optimization>Disabled</Optimization> | |
| <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary> | |
| </ClCompile> | |
| <Link> | |
| <GenerateDebugInformation>true</GenerateDebugInformation> | |
| </Link> | |
| </ItemDefinitionGroup> | |
| <ItemDefinitionGroup Condition="'$(Configuration)'=='Release'"> | |
| <ClCompile> | |
| <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> | |
| <Optimization>MaxSpeed</Optimization> | |
| <RuntimeLibrary>MultiThreaded</RuntimeLibrary> | |
| <FunctionLevelLinking>true</FunctionLevelLinking> | |
| <IntrinsicFunctions>true</IntrinsicFunctions> | |
| </ClCompile> | |
| <Link> | |
| <GenerateDebugInformation>true</GenerateDebugInformation> | |
| <EnableCOMDATFolding>true</EnableCOMDATFolding> | |
| <OptimizeReferences>true</OptimizeReferences> | |
| </Link> | |
| </ItemDefinitionGroup> |

This pull request adds a new build and signing step for the
SilentFilesInUseBAFunctionDLL in the installer pipeline and makes a minor project configuration update. The main goal is to ensure that this DLL is built and signed as part of the CI process, and that its output is preserved during subsequent build steps.Pipeline changes:
.pipelines/v2/templates/steps-build-installer-vnext.ymlto compile theSilentFilesInUseBAFunctiontarget from thePowerToysSetup.slnsolution, with appropriate MSBuild arguments and logging.SilentFilesInUseBAFunctionDLL, using the existing ESRP signing template and policies.SilentFilesInUseBAFunctionoutputs.Project configuration:
ProjectNameproperty toPowerToysSetupCustomActionsVNextinSilentFilesInUseBAFunction.vcxprojfor clearer project identification.