diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml
index 5b95f7ccde2..323c373b5b1 100644
--- a/.github/workflows/pull-request.yml
+++ b/.github/workflows/pull-request.yml
@@ -1,4 +1,4 @@
-name: Test
+name: Test
on:
pull_request:
branches:
@@ -11,4 +11,83 @@ jobs:
uses: tryAGI/workflows/.github/workflows/generated-sdk-pull-request.yml@main
with:
project-path: AutoSDK.slnx
- additional-test-arguments: '--logger GitHubActions'
+ additional-test-arguments: '--logger GitHubActions --filter "FullyQualifiedName!~AutoSDK.IntegrationTests.Cli"'
+
+ test-cli-integration:
+ name: test-cli-integration (shard ${{ matrix.shard }})
+ runs-on: ubuntu-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ shard: [0, 1, 2, 3, 4, 5, 6, 7]
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v7
+
+ - name: Setup .NET
+ uses: actions/setup-dotnet@v6
+ with:
+ dotnet-version: 10.0.x
+
+ - name: Cache NuGet packages
+ uses: actions/cache@v6
+ with:
+ path: ~/.nuget/packages
+ key: ${{ runner.os }}-nuget-cli-integration-${{ hashFiles('**/*.csproj', '**/Directory.Packages.props', '**/global.json') }}
+ restore-keys: |
+ ${{ runner.os }}-nuget-cli-integration-
+ ${{ runner.os }}-nuget-
+
+ - name: Run integration test shard
+ run: ./scripts/run-test-shard.sh
+ src/tests/AutoSDK.IntegrationTests.Cli/AutoSDK.IntegrationTests.Cli.csproj
+ ${{ matrix.shard }}
+ 8
+ Release
+
+ - name: Upload shard diagnostics
+ if: always()
+ uses: actions/upload-artifact@v7
+ with:
+ name: cli-integration-shard-${{ matrix.shard }}
+ path: artifacts/test-shards
+ if-no-files-found: warn
+ retention-days: 14
+
+ test-cli-integration-summary:
+ name: test-cli-integration summary
+ runs-on: ubuntu-latest
+ needs: test-cli-integration
+ if: always()
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v7
+
+ - name: Download shard diagnostics
+ continue-on-error: true
+ uses: actions/download-artifact@v8
+ with:
+ pattern: cli-integration-shard-*
+ path: artifacts/test-shards-input
+
+ - name: Build shard summary
+ run: python3 scripts/summarize-test-shards.py
+ artifacts/test-shards-input
+ artifacts/test-shards-summary
+ --expected-shards 8
+
+ - name: Publish job summary
+ run: cat artifacts/test-shards-summary/summary.md >> "$GITHUB_STEP_SUMMARY"
+
+ - name: Upload shard summary
+ uses: actions/upload-artifact@v7
+ with:
+ name: cli-integration-summary
+ path: artifacts/test-shards-summary
+ retention-days: 30
+
+ - name: Enforce shard SLA
+ run: python3 scripts/check-test-shard-sla.py
+ artifacts/test-shards-summary/shards.csv
+ --expected-shards 8
+ --max-elapsed-seconds 720
diff --git a/src/libs/AutoSDK.CLI/AutoSDK.CLI.csproj b/src/libs/AutoSDK.CLI/AutoSDK.CLI.csproj
index d07fb16fbd7..5fcc0ce49b0 100644
--- a/src/libs/AutoSDK.CLI/AutoSDK.CLI.csproj
+++ b/src/libs/AutoSDK.CLI/AutoSDK.CLI.csproj
@@ -31,7 +31,7 @@
-
+
diff --git a/src/libs/AutoSDK.SourceGenerators/AutoSDK.SourceGenerators.csproj b/src/libs/AutoSDK.SourceGenerators/AutoSDK.SourceGenerators.csproj
index 63decf979a8..dbebff3acf7 100644
--- a/src/libs/AutoSDK.SourceGenerators/AutoSDK.SourceGenerators.csproj
+++ b/src/libs/AutoSDK.SourceGenerators/AutoSDK.SourceGenerators.csproj
@@ -48,8 +48,8 @@
-
-
+
+
diff --git a/src/libs/AutoSDK/AutoSDK.csproj b/src/libs/AutoSDK/AutoSDK.csproj
index a5b8a59a074..9817b1aaa0f 100644
--- a/src/libs/AutoSDK/AutoSDK.csproj
+++ b/src/libs/AutoSDK/AutoSDK.csproj
@@ -20,8 +20,8 @@
-
-
+
+
diff --git a/src/libs/tryAGI.Extensions.HttpClientFactory/tryAGI.Extensions.HttpClientFactory.csproj b/src/libs/tryAGI.Extensions.HttpClientFactory/tryAGI.Extensions.HttpClientFactory.csproj
index c09c8fc586d..1517c40605a 100644
--- a/src/libs/tryAGI.Extensions.HttpClientFactory/tryAGI.Extensions.HttpClientFactory.csproj
+++ b/src/libs/tryAGI.Extensions.HttpClientFactory/tryAGI.Extensions.HttpClientFactory.csproj
@@ -8,7 +8,7 @@
-
+