Skip to content

.NET: [CI] DurableTask WorkflowConsoleAppSamplesValidation tests fail — KeyNotFoundException in workflow execution #6404

@giles17

Description

@giles17

Summary

4 tests in WorkflowConsoleAppSamplesValidation (DurableTask.IntegrationTests) fail with KeyNotFoundException during workflow execution. The console app samples build and start successfully but error during orchestration.

Failure signature

Error: The given key was not present in the dictionary.

The error occurs inside the running workflow (not at startup). The test helper AssertNoError (line 181) catches it from stdout.

Affected tests

  • WorkflowEventsSampleValidationAsync (sample: 05_WorkflowEvents)
  • WorkflowSharedStateSampleValidationAsync
  • SubWorkflowsSampleValidationAsync
  • WorkflowHITLSampleValidationAsync

Example failing run

https://github.com/microsoft/agent-framework/actions/runs/27167303185/job/80197825419

Context

Observed on PR #6381 (.NET GitHub Copilot SDK v1.0.0 migration) which modifies Directory.Packages.props. The package version change may have caused a transitive dependency issue affecting workflow executor resolution, or this may be a pre-existing flaky test.

Mitigation

Tests are temporarily skipped pending investigation.

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

Status
No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions