Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add build id to workflow context #174

Merged
merged 5 commits into from
Jan 12, 2024
Merged

Add build id to workflow context #174

merged 5 commits into from
Jan 12, 2024

Conversation

Sushisource
Copy link
Member

What was changed

  • Add Build ID to workflow info
  • Update Core

Why?

Part of temporalio/features#253

Checklist

  1. Closes

  2. How was this tested:
    Added IT

  3. Any docs updates needed?

Copy link
Member

@cretz cretz left a comment

Choose a reason for hiding this comment

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

LGTM, just need proto regen

/// be used. This value may change over the lifetime of the workflow run, but is
/// deterministic and safe to use for branching.
/// </remarks>
public static string CurrentBuildId => Context.CurrentBuildId;
Copy link
Member

Choose a reason for hiding this comment

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

Thank you for 1) not actually putting this on workflow info, and 2) respecting alphabetical order

Copy link
Member

Choose a reason for hiding this comment

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

You'll have to regen protos with the updated core (see https://github.com/temporalio/sdk-dotnet/#regenerating-protos, make sure it's 3.x protoc on the PATH). We have a CI check that makes sure our generated protos are up to date with the upstream API as seen in the core submodule and it looks like there have been additions.

Copy link
Member Author

Choose a reason for hiding this comment

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

Ugh right

Copy link
Member Author

Choose a reason for hiding this comment

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

Done

@Sushisource Sushisource force-pushed the build-id-workflow-info branch from fd01c91 to 74deb38 Compare January 11, 2024 23:16
Copy link
Member

@cretz cretz left a comment

Choose a reason for hiding this comment

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

Looks great, thanks!

@Sushisource Sushisource merged commit 7127437 into main Jan 12, 2024
@Sushisource Sushisource deleted the build-id-workflow-info branch January 12, 2024 17:23
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.

2 participants