mirror of
https://github.com/microsoft/semantic-kernel.git
synced 2026-10-12 02:19:06 +00:00
### Motivation and Context Consolidates the currently open Dependabot updates into one reviewable dependency PR while preserving each source update's intent across GitHub Actions, .NET, Python, and JavaScript sample dependencies. ### Description Updates pinned GitHub Actions, central NuGet package versions, Python dependency constraints and uv lockfiles, and npm/Yarn lockfiles for the affected samples. Overlapping lockfile updates were regenerated or reconciled so that all compatible requested versions are retained together on the latest `main`. The incompatible MCP 2.x and Python 3.10 `onnxruntime-genai` updates are excluded, the private-feed-only `@humanfs/node` update is omitted, and the logging abstractions floor is aligned with the updated Azure AI Projects dependency. ### Related Issue Supersedes: - https://github.com/microsoft/semantic-kernel/pull/14177 - https://github.com/microsoft/semantic-kernel/pull/14179 - https://github.com/microsoft/semantic-kernel/pull/14180 - https://github.com/microsoft/semantic-kernel/pull/14190 - https://github.com/microsoft/semantic-kernel/pull/14209 - https://github.com/microsoft/semantic-kernel/pull/14230 - https://github.com/microsoft/semantic-kernel/pull/14233 - https://github.com/microsoft/semantic-kernel/pull/14254 - https://github.com/microsoft/semantic-kernel/pull/14257 - https://github.com/microsoft/semantic-kernel/pull/14259 - https://github.com/microsoft/semantic-kernel/pull/14260 - https://github.com/microsoft/semantic-kernel/pull/14261 - https://github.com/microsoft/semantic-kernel/pull/14271 - https://github.com/microsoft/semantic-kernel/pull/14272 - https://github.com/microsoft/semantic-kernel/pull/14273 - https://github.com/microsoft/semantic-kernel/pull/14274 - https://github.com/microsoft/semantic-kernel/pull/14276 - https://github.com/microsoft/semantic-kernel/pull/14280 - https://github.com/microsoft/semantic-kernel/pull/14282 - https://github.com/microsoft/semantic-kernel/pull/14299 - https://github.com/microsoft/semantic-kernel/pull/14300 - https://github.com/microsoft/semantic-kernel/pull/14335 - https://github.com/microsoft/semantic-kernel/pull/14337 - https://github.com/microsoft/semantic-kernel/pull/14338 - https://github.com/microsoft/semantic-kernel/pull/14339 - https://github.com/microsoft/semantic-kernel/pull/14357 - https://github.com/microsoft/semantic-kernel/pull/14358 - https://github.com/microsoft/semantic-kernel/pull/14361 - https://github.com/microsoft/semantic-kernel/pull/14365 - https://github.com/microsoft/semantic-kernel/pull/14366 - https://github.com/microsoft/semantic-kernel/pull/14367 - https://github.com/microsoft/semantic-kernel/pull/14368 - https://github.com/microsoft/semantic-kernel/pull/14369 ### Contribution Checklist - [ ] The code builds clean without any errors or warnings - [ ] The PR follows the [SK Contribution Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md) and the [pre-submission formatting script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts) raises no violations - [ ] All unit tests pass, and I have added new tests where possible - [ ] I didn't break anyone 😄 --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: rogerbarreto <[email protected]> Co-authored-by: Copilot <[email protected]> Copilot-Session: d3c2550f-f129-4660-9461-af1288241064
102 lines
3.8 KiB
YAML
102 lines
3.8 KiB
YAML
#
|
|
# This workflow runs the dotnet formatter on all c-sharp code.
|
|
#
|
|
|
|
name: dotnet-format
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
pull_request:
|
|
branches: ["main", "feature*"]
|
|
paths:
|
|
- "dotnet/**"
|
|
- "samples/dotnet/**"
|
|
- "**.cs"
|
|
- "**.csproj"
|
|
- "**.editorconfig"
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
check-format:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
include:
|
|
- { dotnet: "10.0", configuration: Release, os: ubuntu-latest }
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
env:
|
|
NUGET_CERT_REVOCATION_MODE: offline
|
|
|
|
steps:
|
|
- name: Check out code
|
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
fetch-depth: 0
|
|
persist-credentials: false
|
|
|
|
- name: Get changed files
|
|
id: changed-files
|
|
if: github.event_name == 'pull_request'
|
|
uses: jitterbit/get-changed-files@b17fbb00bdc0c0f63fcf166580804b4d2cdc2a42 # v1
|
|
continue-on-error: true
|
|
|
|
- name: No C# files changed
|
|
id: no-csharp
|
|
if: github.event_name == 'pull_request' && steps.changed-files.outputs.added_modified == ''
|
|
run: echo "No C# files changed"
|
|
|
|
# This step will loop over the changed files and find the nearest .csproj file for each one, then store the unique csproj files in a variable
|
|
- name: Find csproj files
|
|
id: find-csproj
|
|
if: github.event_name != 'pull_request' || steps.changed-files.outputs.added_modified != '' || steps.changed-files.outcome == 'failure'
|
|
env:
|
|
ADDED_MODIFIED: ${{ steps.changed-files.outputs.added_modified }}
|
|
run: |
|
|
csproj_files=()
|
|
exclude_files=("Experimental.Orchestration.Flow.csproj" "Experimental.Orchestration.Flow.UnitTests.csproj" "Experimental.Orchestration.Flow.IntegrationTests.csproj")
|
|
set -f
|
|
if [[ ${{ steps.changed-files.outcome }} == 'success' ]]; then
|
|
for file in $ADDED_MODIFIED; do
|
|
echo "$file was changed"
|
|
dir="./$file"
|
|
while [[ $dir != "." && $dir != "/" && $dir != $GITHUB_WORKSPACE ]]; do
|
|
if find "$dir" -maxdepth 1 -name "*.csproj" -print -quit | grep -q .; then
|
|
csproj_path="$(find "$dir" -maxdepth 1 -name "*.csproj" -print -quit)"
|
|
if [[ ! "${exclude_files[@]}" =~ "${csproj_path##*/}" ]]; then
|
|
csproj_files+=("$csproj_path")
|
|
fi
|
|
break
|
|
fi
|
|
|
|
dir=$(echo ${dir%/*})
|
|
done
|
|
done
|
|
else
|
|
# if the changed-files step failed, run dotnet on the whole slnx instead of specific projects
|
|
csproj_files=$(find ./ -type f -name "*.slnx" | tr '\n' ' ');
|
|
fi
|
|
csproj_files=($(printf "%s\n" "${csproj_files[@]}" | sort -u))
|
|
echo "Found ${#csproj_files[@]} unique csproj/slnx files: ${csproj_files[*]}"
|
|
echo "csproj_files=${csproj_files[*]}" >> "$GITHUB_OUTPUT"
|
|
set +f
|
|
|
|
- name: Pull container dotnet/sdk:${{ matrix.dotnet }}
|
|
if: steps.find-csproj.outputs.csproj_files != ''
|
|
run: docker pull mcr.microsoft.com/dotnet/sdk:${{ matrix.dotnet }}
|
|
|
|
# This step will run dotnet format on each of the unique csproj files and fail if any changes are made
|
|
- name: Run dotnet format
|
|
if: steps.find-csproj.outputs.csproj_files != ''
|
|
env:
|
|
CSPROJ_FILES: ${{ steps.find-csproj.outputs.csproj_files }}
|
|
run: |
|
|
set -f
|
|
for csproj in $CSPROJ_FILES; do
|
|
echo "Running dotnet format on $csproj"
|
|
docker run --rm -v "$(pwd):/app" -w /app mcr.microsoft.com/dotnet/sdk:${{ matrix.dotnet }} dotnet format "$csproj" --verify-no-changes --verbosity diagnostic
|
|
done
|