Skip to content

Implement orchestration tags#299

Merged
cgillum merged 19 commits intomicrosoft:mainfrom
fanyirobin:dev/yifan1/tags
Mar 11, 2026
Merged

Implement orchestration tags#299
cgillum merged 19 commits intomicrosoft:mainfrom
fanyirobin:dev/yifan1/tags

Conversation

@fanyirobin
Copy link
Copy Markdown
Contributor

No description provided.

@fanyirobin
Copy link
Copy Markdown
Contributor Author

@microsoft-github-policy-service agree company="Microsoft"

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds end-to-end support for orchestration “tags” in the SQL Server provider, including schema/storage, parameter plumbing, and validation via new unit/integration tests.

Changes:

  • Persist tags in SQL by adding an Instances.Tags column and wiring stored procedures to read/write it.
  • Plumb tag serialization/deserialization into SqlUtils and pass tags into CreateInstance / _CheckpointOrchestration.
  • Add unit + integration test coverage for tags (including backward-compat behavior when tags aren’t set).

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
test/DurableTask.SqlServer.Tests/Utils/TestService.cs Adds a helper for starting orchestrations with tags in integration tests.
test/DurableTask.SqlServer.Tests/Unit/SqlUtilsTagTests.cs New unit tests for AddTagsParameter serialization/null handling.
test/DurableTask.SqlServer.Tests/Integration/Orchestrations.cs Adds integration tests validating tags behavior (set, empty, ContinueAsNew, etc.).
test/DurableTask.SqlServer.Tests/Integration/DatabaseManagement.cs Updates expected schema script list to include schema-1.3.0.sql.
test/DurableTask.SqlServer.AzureFunctions.Tests/DurableTask.SqlServer.AzureFunctions.Tests.csproj Changes test target framework to net8.0.
src/DurableTask.SqlServer/SqlUtils.cs Adds tag read/write helpers and populates Tags on returned state/events.
src/DurableTask.SqlServer/SqlOrchestrationService.cs Passes tags into relevant stored procedure calls.
src/DurableTask.SqlServer/Scripts/schema-1.3.0.sql Adds Tags column to the Instances table.
src/DurableTask.SqlServer/Scripts/logic.sql Extends sprocs/selects to accept/store/return tags.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@cgillum cgillum requested a review from Copilot March 2, 2026 21:03
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 8 out of 8 changed files in this pull request and generated 5 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

fanyirobin and others added 11 commits March 2, 2026 16:16
test cleanup

rollback .net version change for tets
address comments

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…lServer.AzureFunctions.Tests.csproj


address comments

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
address copilot comment.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
address comment

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Copy Markdown
Member

@cgillum cgillum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks for your patience on this PR.

@cgillum cgillum changed the title Implement tag feature Implement orchestration tags Mar 11, 2026
@cgillum cgillum merged commit 5d1452d into microsoft:main Mar 11, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants