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

Bump Microsoft.Azure.WebJobs.Extensions.DurableTask from 1.8.2 to 2.0.0 #275

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dependabot-preview[bot]
Copy link
Contributor

Bumps Microsoft.Azure.WebJobs.Extensions.DurableTask from 1.8.2 to 2.0.0.

Release notes

Sourced from Microsoft.Azure.WebJobs.Extensions.DurableTask's releases.

Durable Functions v2.0.0-beta3 Release

Overview

Durable Functions v2.0.0-beta3 is an incremental update from the previous beta2 release. This is the last planned pre-release for Durable Functions 2.0 and adds some new features and important bug fixes. It also includes some additional breaking changes. See below for details on what has changed in this release.

You can download the beta3 build of the Durable Functions v2 extension from nuget here: https://www.nuget.org/packages/Microsoft.Azure.WebJobs.Extensions.DurableTask/2.0.0-beta3

Major New Features

There are three main features that we've added in this release:

Durable Functions Roslyn Analyzer (#949)

We've developed a Roslyn C# analyzer that inspects your Durable Functions code for various code constraint violations and warns you if it finds any. It's based on the original Durable Functions analyzer developed by @​stimms, who agreed to let us build on his code to create an "official" analyzer package. The goal is to make you both more productive and more confident in the Durable Functions code that you write.

You can download this new analyzer here:
https://www.nuget.org/packages/Microsoft.Azure.WebJobs.Extensions.DurableTask.Analyzers/

The analyzer provides a variety of warnings and code-fixes across client functions, orchestrator functions, and entity functions:

image

A few important things to note:

  • It's our very first attempt at building an analyzer, so there are going to be some bugs. Let us know if you encounter any by opening an issue.

  • For the best experience, you'll want to enable full solution analysis in your Visual Studio settings. This can be done in Tools -> Options -> Text Editor -> C# -> Advanced --> "Enable full solution analysis":

image

  • The analyzer will flag any direct method calls made by your orchestrator function. Direct method calls are not bad, but we require that these methods are decorated with a newly introduced [Deterministic] attribute so that the analyzer knows to check them for correctness.

The following example demonstrates how the [Deterministic] attribute is used:

[FunctionName("MyOrchestrator")]
public static async Task MyOrchestrator([OrchestrationTrigger] IDurableOrchestrationContext context)
{
    object input = context.GetInput<object>();
    object result1 = DirectCall(context, input);
    object result2 = await DirectAsyncCall(context, result1);
    object result3 = await context.CallActivityAsync<object>("MyActivity", result2);
    // ...
}

[Deterministic]
private static object DirectCall(IDurableOrchestrationContext context, object input)
{
    return IndirectCall(); // call another method, which must also be analyzed
}

[Deterministic]
private static object IndirectCall()
</tr></table> ... (truncated)
Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
  • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot dashboard:

  • Update frequency (including time of day and day of week)
  • Pull request limits (per update run and/or open at any time)
  • Automerge options (never/patch/minor, and dev/runtime dependencies)
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

@dependabot-preview dependabot-preview bot added .NET Pull requests that update .net code dependencies Pull requests that update a dependency file labels Nov 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file .NET Pull requests that update .net code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants