Skip to content

Commit 8cfae13

Browse files
committed
Merging from main.
2 parents d81b334 + ba000c3 commit 8cfae13

File tree

1,771 files changed

+60477
-49540
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,771 files changed

+60477
-49540
lines changed

.github/_typos.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ extend-exclude = [
2323
"PopulationByCountry.csv",
2424
"PopulationByAdmin1.csv",
2525
"WomensSuffrage.txt",
26-
"SK-dotnet.sln.DotSettings",
26+
"SK-dotnet.slnx.DotSettings",
2727
"**/azure_ai_search_hotel_samples/README.md",
2828
"**/Demos/ProcessFrameworkWithAspire/ProcessFramework.Aspire/ProcessFramework.Aspire.ProcessOrchestrator/Program.cs",
2929
"**/Demos/ProcessFrameworkWithAspire/**/*.http",

.github/dependabot.yml

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ updates:
99
- package-ecosystem: "nuget"
1010
directory: "dotnet/"
1111
schedule:
12-
interval: "weekly"
13-
day: "monday"
12+
interval: "cron"
13+
cronjob: "0 8 * * 4,0" # Every Thursday(4) and Sunday(0) at 8:00 UTC
1414
ignore:
1515
# For all System.* and Microsoft.Extensions/Bcl.* packages, ignore all major version updates
1616
- dependency-name: "System.*"
@@ -24,20 +24,6 @@ updates:
2424
- ".NET"
2525
- "dependencies"
2626

27-
# Maintain dependencies for nuget
28-
- package-ecosystem: "nuget"
29-
directory: "samples/dotnet"
30-
schedule:
31-
interval: "weekly"
32-
day: "monday"
33-
34-
# Maintain dependencies for npm
35-
- package-ecosystem: "npm"
36-
directory: "samples/apps"
37-
schedule:
38-
interval: "weekly"
39-
day: "monday"
40-
4127
# Maintain dependencies for pip
4228
- package-ecosystem: "pip"
4329
directory: "python/"
@@ -55,4 +41,4 @@ updates:
5541
directory: "/"
5642
schedule:
5743
interval: "weekly"
58-
day: "monday"
44+
day: "tuesday"

.github/workflows/dotnet-build-and-test.yml

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -72,28 +72,43 @@ jobs:
7272
- uses: actions/checkout@v4
7373
with:
7474
persist-credentials: false
75-
- name: Setup dotnet ${{ matrix.dotnet }}
76-
uses: actions/setup-dotnet@v3
75+
76+
- name: Setup dotnet
77+
uses: actions/[email protected]
7778
with:
78-
dotnet-version: ${{ matrix.dotnet }}
79+
global-json-file: ${{ github.workspace }}/dotnet/global.json
80+
7981
- name: Build dotnet solutions
8082
shell: bash
8183
run: |
82-
export SOLUTIONS=$(find ./dotnet/ -type f -name "*.sln" | tr '\n' ' ')
84+
export SOLUTIONS=$(find ./dotnet/ -type f -name "*.slnx" | tr '\n' ' ')
8385
for solution in $SOLUTIONS; do
8486
dotnet build $solution -c ${{ matrix.configuration }} --warnaserror
8587
done
88+
8689
- name: Package install check
8790
shell: bash
88-
if: matrix.os == 'ubuntu-latest'
8991
run: |
90-
export SOLUTIONS=$(find ./dotnet/ -type f -name "*.sln" | tr '\n' ' ')
92+
export SOLUTIONS=$(find ./dotnet/ -type f -name "*.slnx" | tr '\n' ' ')
9193
for solution in $SOLUTIONS; do
9294
dotnet pack $solution -c ${{ matrix.configuration }} --no-build --no-restore --output ./artifacts
9395
done
9496
dotnet new console --name packcheck --output consoleapp
95-
dotnet add consoleapp/packcheck.csproj package Microsoft.SemanticKernel --source ./artifacts
96-
dotnet build consoleapp/packcheck.csproj
97+
98+
# Create minimal nuget.config and use only dotnet nuget commands
99+
echo '<?xml version="1.0" encoding="utf-8"?><configuration><packageSources><clear /></packageSources></configuration>' > consoleapp/nuget.config
100+
101+
# Add sources with local first using dotnet nuget commands
102+
dotnet nuget add source ../artifacts --name local --configfile consoleapp/nuget.config
103+
dotnet nuget add source https://api.nuget.org/v3/index.json --name nuget.org --configfile consoleapp/nuget.config
104+
105+
# Change to project directory to ensure local nuget.config is used
106+
cd consoleapp
107+
dotnet add packcheck.csproj package Microsoft.SemanticKernel
108+
dotnet build -c ${{ matrix.configuration }} packcheck.csproj
109+
cd ..
110+
111+
# Clean up
97112
rm -rf ./artifacts
98113
rm -rf ./consoleapp
99114
@@ -169,7 +184,7 @@ jobs:
169184

170185
# Generate test reports and check coverage
171186
- name: Generate test reports
172-
uses: danielpalme/[email protected].4
187+
uses: danielpalme/[email protected].7
173188
with:
174189
reports: "./TestResults/Coverage/**/coverage.cobertura.xml"
175190
targetdir: "./TestResults/Reports"

.github/workflows/dotnet-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131

3232
- name: Find solutions
3333
shell: bash
34-
run: echo "solutions=$(find ./ -type f -name "*.sln" | tr '\n' ' ')" >> $GITHUB_ENV
34+
run: echo "solutions=$(find ./ -type f -name "*.slnx" | tr '\n' ' ')" >> $GITHUB_ENV
3535

3636
- name: Pull container dotnet/sdk:${{ matrix.dotnet }}
3737
run: |
@@ -94,7 +94,7 @@ jobs:
9494
9595
- name: Find solutions
9696
shell: bash
97-
run: echo "solutions=$(find ./dotnet -type f -name "*.sln" | tr '\n' ' ')" >> $GITHUB_ENV
97+
run: echo "solutions=$(find ./dotnet -type f -name "*.slnx" | tr '\n' ' ')" >> $GITHUB_ENV
9898

9999
- name: Restore dependencies
100100
shell: bash

.github/workflows/dotnet-format.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,11 @@ jobs:
7373
done
7474
done
7575
else
76-
# if the changed-files step failed, run dotnet on the whole sln instead of specific projects
77-
csproj_files=$(find ./ -type f -name "*.sln" | tr '\n' ' ');
76+
# if the changed-files step failed, run dotnet on the whole slnx instead of specific projects
77+
csproj_files=$(find ./ -type f -name "*.slnx" | tr '\n' ' ');
7878
fi
7979
csproj_files=($(printf "%s\n" "${csproj_files[@]}" | sort -u))
80-
echo "Found ${#csproj_files[@]} unique csproj/sln files: ${csproj_files[*]}"
80+
echo "Found ${#csproj_files[@]} unique csproj/slnx files: ${csproj_files[*]}"
8181
echo "::set-output name=csproj_files::${csproj_files[*]}"
8282
8383
- name: Pull container dotnet/sdk:${{ matrix.dotnet }}

.github/workflows/python-test-coverage-report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
with:
4444
github-token: ${{ secrets.GH_ACTIONS_PR_WRITE }}
4545
issue-number: ${{ env.PR_NUMBER }}
46-
pytest-coverage-path: python/python-coverage.txt
46+
pytest-xml-coverage-path: python/python-coverage.xml
4747
title: "Python Test Coverage Report"
4848
badge-title: "Python Test Coverage"
4949
junitxml-title: "Python Unit Test Overview"

.github/workflows/python-test-coverage.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ jobs:
3636
- name: Install the project
3737
run: uv sync --all-extras --dev
3838
- name: Test with pytest
39-
run: uv run --frozen pytest -q --junitxml=pytest.xml --cov=semantic_kernel --cov-report=term-missing:skip-covered ./tests/unit | tee python-coverage.txt
39+
run: uv run --frozen pytest -q --junitxml=pytest.xml --cov=semantic_kernel --cov-report=term-missing:skip-covered --cov-report=xml:python-coverage.xml ./tests/unit
4040
- name: Upload coverage report
4141
uses: actions/upload-artifact@v4
4242
with:
4343
path: |
44-
python/python-coverage.txt
44+
python/python-coverage.xml
4545
python/pytest.xml
4646
python/pr_number
4747
overwrite: true

.github/workflows/python-unit-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
run: uv run --frozen pytest --junitxml=pytest.xml ./tests/unit
4949
- name: Surface failing tests
5050
if: ${{ !matrix.experimental }}
51-
uses: pmeier/[email protected].1
51+
uses: pmeier/[email protected].2
5252
with:
5353
path: python/pytest.xml
5454
summary: true

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,6 @@ __pycache__/
439439
.mypy_cache/
440440
__pypackages__/
441441
.pdm.toml
442-
global.json
443442

444443
# doxfx
445444
**/DROP/
@@ -499,4 +498,4 @@ swa-cli.config.json
499498
**/.kiota
500499

501500
# dapr extension files
502-
**/dapr.yaml
501+
**/dapr.yaml

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ Build a system of specialized agents that can collaborate:
239239

240240
```python
241241
import asyncio
242-
from semantic_kernel.agents import ChatCompletionAgent
242+
from semantic_kernel.agents import ChatCompletionAgent, ChatHistoryAgentThread
243243
from semantic_kernel.connectors.ai.open_ai import AzureChatCompletion, OpenAIChatCompletion
244244

245245
billing_agent = ChatCompletionAgent(
@@ -262,7 +262,7 @@ triage_agent = ChatCompletionAgent(
262262
plugins=[billing_agent, refund_agent],
263263
)
264264

265-
thread: None
265+
thread: ChatHistoryAgentThread = None
266266

267267
async def main() -> None:
268268
print("Welcome to the chat bot!\n Type 'exit' to exit.\n Try to get some billing or refund help.")

0 commit comments

Comments
 (0)