Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions .github/workflows/dotnet-sdk-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ permissions:

jobs:
test:
name: ".NET SDK Tests (${{ matrix.os }}, ${{ matrix.transport }}, ${{ matrix.backend }})"
name: ".NET SDK Tests (${{ matrix.os }}, ${{ matrix.framework }}, ${{ matrix.transport }}, ${{ matrix.backend }})"
if: github.event.repository.fork == false
env:
POWERSHELL_UPDATECHECK: Off
Expand All @@ -22,22 +22,30 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
framework: [net8.0]
transport: ["default", "inprocess"]
backend: [capi]
# TODO: Re-enable after fixing in-process sqlite file locking on shutdown on Windows.
exclude:
- os: windows-latest
transport: "inprocess"
include:
- os: windows-latest
framework: net472
transport: default
backend: capi
- os: ubuntu-latest
framework: net8.0
transport: inprocess
backend: anthropic-messages
test-filter: "FullyQualifiedName~GitHub.Copilot.Test.E2E&E2EBackend!=SelfConfiguredBackend&E2EBackend!=CapiOnly"
- os: ubuntu-latest
framework: net8.0
transport: inprocess
backend: openai-responses
test-filter: "FullyQualifiedName~GitHub.Copilot.Test.E2E&E2EBackend!=SelfConfiguredBackend&E2EBackend!=CapiOnly"
- os: ubuntu-latest
framework: net8.0
transport: inprocess
backend: openai-completions
test-filter: "FullyQualifiedName~GitHub.Copilot.Test.E2E&E2EBackend!=SelfConfiguredBackend&E2EBackend!=CapiOnly"
Expand Down Expand Up @@ -93,8 +101,8 @@ jobs:
env:
COPILOT_HMAC_KEY: ${{ secrets.COPILOT_DEVELOPER_CLI_INTEGRATION_HMAC_KEY }}
run: |
args=(--no-build -v n)
args=(--no-build -v n --framework "${{ matrix.framework }}")
if [[ -n "$DOTNET_TEST_FILTER" ]]; then
args+=(--filter "$DOTNET_TEST_FILTER")
fi
dotnet test "${args[@]}"
dotnet test test/GitHub.Copilot.SDK.Test.csproj "${args[@]}"
6 changes: 4 additions & 2 deletions nodejs/vitest.config.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import { defineConfig } from "vitest/config";

const integrationTestTimeout = process.platform === "win32" ? 60000 : 30000;

export default defineConfig({
test: {
globals: true,
environment: "node",
testTimeout: 30000, // 30 seconds for integration tests
hookTimeout: 30000,
testTimeout: integrationTestTimeout,
hookTimeout: integrationTestTimeout,
teardownTimeout: 10000,
isolate: true, // Run each test file in isolation
pool: "forks", // Use process forking for better isolation
Expand Down
4 changes: 2 additions & 2 deletions rust/tests/e2e/rpc_session_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1074,10 +1074,10 @@ async fn should_report_implemented_errors_for_unsupported_session_rpc_paths() {
}

#[tokio::test]
async fn should_compact_session_history_after_messages() {
async fn should_report_processing_and_context_metadata() {
with_e2e_context(
"rpc_session_state",
"should_compact_session_history_after_messages",
"should_report_processing_and_context_metadata",
|ctx| {
Box::pin(async move {
ctx.set_default_copilot_user();
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
models:
- claude-sonnet-4.5
conversations:
- messages:
- role: system
content: ${system}
- role: user
content: "Reply with exactly: RUST_CONTEXT_INFO"
- role: assistant
content: RUST_CONTEXT_INFO
Loading