Skip to content

fix ci#470

Merged
sensslen merged 1 commit into
mainfrom
simon/fix-ci
Mar 16, 2026
Merged

fix ci#470
sensslen merged 1 commit into
mainfrom
simon/fix-ci

Conversation

@sensslen
Copy link
Copy Markdown
Owner

@sensslen sensslen commented Mar 16, 2026

Summary by CodeRabbit

  • Chores
    • Updated build infrastructure to use Visual Studio 2026 Build Tools with improved environment initialization.
    • Updated test framework target to .NET 10.0 for compatibility with the latest platform version.
    • CI workflows now run on a new Windows 2025 / VS2026 runner; build and test steps remain functionally unchanged.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Mar 16, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: f8350d3f-b009-4d03-8e34-418756b7fb51

📥 Commits

Reviewing files that changed from the base of the PR and between 96479e5 and 097ab20.

📒 Files selected for processing (2)
  • .github/workflows/action.yml
  • .github/workflows/release.yml
🚧 Files skipped from review as they are similar to previous changes (1)
  • .github/workflows/release.yml

Walkthrough

The pull request updates GitHub Actions workflow files (.github/workflows/action.yml and .github/workflows/release.yml) to replace occurrences of the runner label windows-latest with a new Windows runner label windows-2025-vs2026 across multiple jobs (including test_windows, check_licenses_net472, check_version_command_net472, and the release workflow). No changes were made to build, test, or publish commands beyond substituting the runner context; job steps and commands remain functionally the same.

🚥 Pre-merge checks | ✅ 1 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Title check ❓ Inconclusive The title 'fix ci' is vague and generic, using non-descriptive language that doesn't convey meaningful information about the specific changes. Provide a more descriptive title that clearly indicates the specific CI infrastructure changes, such as 'Update Windows runner to windows-2025-vs2026 in workflows'.
✅ Passed checks (1 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch simon/fix-ci
📝 Coding Plan
  • Generate coding plan for human review comments

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Tip

You can get early access to new features in CodeRabbit.

Enable the early_access setting to enable early access features such as new models, tools, and more.

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
.github/workflows/release.yml (1)

67-68: ⚠️ Potential issue | 🟠 Major

msbuild on line 68 should initialize the VS environment to ensure it's available.

Line 68 runs msbuild in the default PowerShell shell without re-initializing the VS developer environment. While the Chocolatey installation (lines 27-33) should add MSBuild to the system PATH, this approach is fragile and may fail if the package doesn't properly register the tools in the system PATH.

Since line 44 already demonstrates the correct pattern with shell: cmd and VsDevCmd.bat initialization, line 68 should follow the same approach:

Proposed fix
      - name: Publish the application binaries (.net472)
+       shell: cmd
        run: |
+         call "C:\Program Files\Microsoft Visual Studio\2026\BuildTools\Common7\Tools\VsDevCmd.bat"
          msbuild ./src/NuGetLicenseFramework/NuGetLicenseFramework.csproj /t:Publish /p:configuration=Release /p:PublishDir=${{ steps.artifacts_path.outputs.path }}/net472 /p:Version=${{ steps.version.outputs.full_without_prefix }} /p:ContinuousIntegrationBuild=true
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.github/workflows/release.yml around lines 67 - 68, The msbuild step
currently runs msbuild directly in PowerShell (the msbuild command invocation)
without initializing the Visual Studio developer environment; change the step to
use the same pattern as the earlier step that calls VsDevCmd.bat (i.e., switch
the step to run under shell: cmd and wrap the msbuild invocation with a call to
the Visual Studio developer command script such as "call
\"%ProgramFiles(x86)%\\Microsoft Visual
Studio\\2019\\Enterprise\\Common7\\Tools\\VsDevCmd.bat\" && msbuild ...") so
that the VS environment is initialized before invoking msbuild for the
NuGetLicenseFramework.csproj publish.
🧹 Nitpick comments (1)
.github/workflows/action.yml (1)

270-277: Stale comment - refers to "build" but this is a restore step.

The inline comment :: Execute the build with the exact parameters from your failing run appears to be copy-pasted from the build step. Consider updating it for clarity.

✏️ Suggested fix
      - name: restore nuget packages
        shell: cmd
        run: |
          :: Initialize the VS 2026 Developer Command Prompt to load the correct paths
          call "C:\Program Files\Microsoft Visual Studio\2026\BuildTools\Common7\Tools\VsDevCmd.bat"
          
-          :: Execute the build with the exact parameters from your failing run
+          :: Restore NuGet packages
          msbuild -t:restore -p:RestorePackagesConfig=true NuGetUtility.sln
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.github/workflows/action.yml around lines 270 - 277, The inline comment in
the "restore nuget packages" step is misleadingly saying "Execute the build";
update that comment to reflect that this step runs a NuGet restore. Locate the
step with name "restore nuget packages" and replace the comment `:: Execute the
build with the exact parameters from your failing run` with a clearer message
such as `:: Execute the restore with the exact parameters from your failing run`
(or similar) so it accurately describes the msbuild -t:restore invocation.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In @.github/workflows/action.yml:
- Around line 287-294: The MSBuild invocation in the check_licenses_net472 job
uses an undefined step output `${{ steps.version.outputs.version }}` so the
Version property will be empty; either add a version step (e.g., include the
paulhatch/semantic-version action with id: version before the msbuild run so
`steps.version.outputs.version` is populated) or remove the `/p:Version=${{
steps.version.outputs.version }}` parameter from the msbuild command in the
check_licenses_net472 job to avoid passing an empty value; update the job
accordingly and ensure the step id remains `version` if other references depend
on it.

---

Outside diff comments:
In @.github/workflows/release.yml:
- Around line 67-68: The msbuild step currently runs msbuild directly in
PowerShell (the msbuild command invocation) without initializing the Visual
Studio developer environment; change the step to use the same pattern as the
earlier step that calls VsDevCmd.bat (i.e., switch the step to run under shell:
cmd and wrap the msbuild invocation with a call to the Visual Studio developer
command script such as "call \"%ProgramFiles(x86)%\\Microsoft Visual
Studio\\2019\\Enterprise\\Common7\\Tools\\VsDevCmd.bat\" && msbuild ...") so
that the VS environment is initialized before invoking msbuild for the
NuGetLicenseFramework.csproj publish.

---

Nitpick comments:
In @.github/workflows/action.yml:
- Around line 270-277: The inline comment in the "restore nuget packages" step
is misleadingly saying "Execute the build"; update that comment to reflect that
this step runs a NuGet restore. Locate the step with name "restore nuget
packages" and replace the comment `:: Execute the build with the exact
parameters from your failing run` with a clearer message such as `:: Execute the
restore with the exact parameters from your failing run` (or similar) so it
accurately describes the msbuild -t:restore invocation.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 0a60b436-00fc-4a58-9dc2-e1baa06d524b

📥 Commits

Reviewing files that changed from the base of the PR and between eb4a47f and 96479e5.

📒 Files selected for processing (2)
  • .github/workflows/action.yml
  • .github/workflows/release.yml

Comment thread .github/workflows/action.yml Outdated
@sonarqubecloud
Copy link
Copy Markdown

@sensslen sensslen merged commit 1c0f494 into main Mar 16, 2026
42 checks passed
@sensslen sensslen deleted the simon/fix-ci branch March 16, 2026 19:21
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.

1 participant