Skip to content

Commit ca4e656

Browse files
authored
Merge branch 'release-1.15' into release/bump-go
2 parents 5f23992 + 38e9a81 commit ca4e656

File tree

139 files changed

+4800
-783
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

139 files changed

+4800
-783
lines changed

.gitattributes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
* text=auto eol=lf
2+
*.{cmd,[cC][mM][dD]} text eol=crlf
3+
*.{bat,[bB][aA][tT]} text eol=crlf

.github/env/global.env

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
DAPR_CLI_VERSION: 1.14.1
2-
DAPR_RUNTIME_VERSION: 1.15.0-rc.2
1+
DAPR_CLI_VERSION: 1.15.0-rc.5
2+
DAPR_RUNTIME_VERSION: 1.15.0-rc.11
33
DAPR_INSTALL_URL: https://raw.githubusercontent.com/dapr/cli/v${DAPR_CLI_VERSION}/install/
44
DAPR_DEFAULT_IMAGE_REGISTRY: ghcr
55

@@ -11,4 +11,4 @@ GOVER: 1.22
1111

1212
KUBERNETES_VERSION: v1.32.0
1313
KIND_VERSION: v0.26.0
14-
KIND_IMAGE_SHA: sha256:c48c62eac5da28cdadcf560d1d8616cfa6783b58f0d94cf63ad1bf49600cb027
14+
KIND_IMAGE_SHA: sha256:c48c62eac5da28cdadcf560d1d8616cfa6783b58f0d94cf63ad1bf49600cb027

actors/csharp/sdk/README.md

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Let's take a look at the Dapr [Actors building block](https://docs.dapr.io/devel
1313
For this example, you will need:
1414

1515
- [Dapr CLI and initialized environment](https://docs.dapr.io/getting-started).
16-
- [.NET 7 SDK](https://dotnet.microsoft.com/download).
16+
- [.NET 8 SDK](https://dotnet.microsoft.com/download).
1717
- Docker Desktop
1818

1919
### Step 2: Set up the environment
@@ -34,7 +34,7 @@ Run the `SmartDevice.Service`, which will start service itself and the Dapr side
3434
<!-- STEP
3535
name: Run actor service
3636
expected_stdout_lines:
37-
- "Request finished HTTP/1.1 GET http://127.0.0.1:5001/healthz - 200"
37+
- "Request finished HTTP/1.1 GET http://127.0.0.1:5001/dapr/config - 200"
3838
expected_stderr_lines:
3939
working_dir: .
4040
output_match_mode: substring
@@ -50,14 +50,23 @@ dapr run --app-id actorservice --app-port 5001 --app-protocol http --dapr-http-p
5050
Expected output:
5151

5252
```bash
53+
== APP == info: Microsoft.Hosting.Lifetime[14]
54+
== APP == Now listening on: http://localhost:5001
55+
== APP == info: Microsoft.Hosting.Lifetime[0]
56+
== APP == Application started. Press Ctrl+C to shut down.
57+
== APP == info: Microsoft.Hosting.Lifetime[0]
58+
== APP == Hosting environment: Production
59+
== APP == info: Microsoft.Hosting.Lifetime[0]
5360
== APP == info: Microsoft.AspNetCore.Hosting.Diagnostics[1]
54-
== APP == Request starting HTTP/1.1 GET http://127.0.0.1:5001/healthz - -
61+
== APP == Request starting HTTP/1.1 GET http://127.0.0.1:5001/dapr/config - application/json -
62+
== APP == warn: Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionMiddleware[3]
63+
== APP == Failed to determine the https port for redirect.
5564
== APP == info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0]
56-
== APP == Executing endpoint 'Dapr Actors Health Check'
65+
== APP == Executing endpoint 'Dapr Actors Config'
5766
== APP == info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1]
58-
== APP == Executed endpoint 'Dapr Actors Health Check'
67+
== APP == Executed endpoint 'Dapr Actors Config'
5968
== APP == info: Microsoft.AspNetCore.Hosting.Diagnostics[2]
60-
== APP == Request finished HTTP/1.1 GET http://127.0.0.1:5001/healthz - - - 200 - text/plain 5.2599ms
69+
== APP == Request finished HTTP/1.1 GET http://127.0.0.1:5001/dapr/config - 200 - application/json 30.6175ms
6170
```
6271

6372
### Step 4: Run the client app

actors/csharp/sdk/client/SmartDevice.Client.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</PropertyGroup>
99

1010
<ItemGroup>
11-
<PackageReference Include="Dapr.Actors" Version="1.14.*-*" />
11+
<PackageReference Include="Dapr.Actors" Version="1.15.0-rc02" />
1212
</ItemGroup>
1313

1414
<ItemGroup>

actors/csharp/sdk/service/SmartDevice.Service.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="Dapr.Actors" Version="1.14.*-*" />
11-
<PackageReference Include="Dapr.Actors.AspNetCore" Version="1.14.*-*" />
10+
<PackageReference Include="Dapr.Actors" Version="1.15.0-rc02" />
11+
<PackageReference Include="Dapr.Actors.AspNetCore" Version="1.15.0-rc02" />
1212
</ItemGroup>
1313

1414
<ItemGroup>

bindings/csharp/sdk/batch/batch.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</PropertyGroup>
99

1010
<ItemGroup>
11-
<PackageReference Include="Dapr.AspNetCore" Version="1.14.*-*" />
11+
<PackageReference Include="Dapr.AspNetCore" Version="1.15.0-rc02" />
1212
</ItemGroup>
1313

1414
</Project>

bindings/csharp/sdk/batch/program.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,20 +31,21 @@ limitations under the License.
3131
options.SupportedCultures = [invariantCulture];
3232
});
3333

34+
builder.Services.AddDaprClient();
35+
3436
var app = builder.Build();
3537

3638
if (app.Environment.IsDevelopment()) { app.UseDeveloperExceptionPage(); }
3739

3840
app.UseRequestLocalization();
3941

4042
// Triggered by Dapr input binding
41-
app.MapPost("/" + cronBindingName, async () =>
43+
app.MapPost("/" + cronBindingName, async (DaprClient client) =>
4244
{
4345
Console.WriteLine("Processing batch..");
4446

4547
string jsonFile = File.ReadAllText("../../../orders.json");
4648
var ordersArray = JsonSerializer.Deserialize<Orders>(jsonFile);
47-
using var client = new DaprClientBuilder().Build();
4849
foreach (Order ord in ordersArray?.orders ?? new Order[] { })
4950
{
5051
var sqlText = $"insert into orders (orderid, customer, price) values ({ord.OrderId}, '{ord.Customer}', {ord.Price});";
@@ -65,5 +66,5 @@ limitations under the License.
6566

6667
await app.RunAsync();
6768

68-
public record Order([property: JsonPropertyName("orderid")] int OrderId, [property: JsonPropertyName("customer")] string Customer, [property: JsonPropertyName("price")] float Price);
69-
public record Orders([property: JsonPropertyName("orders")] Order[] orders);
69+
public sealed record Order([property: JsonPropertyName("orderid")] int OrderId, [property: JsonPropertyName("customer")] string Customer, [property: JsonPropertyName("price")] float Price);
70+
public sealed record Orders([property: JsonPropertyName("orders")] Order[] orders);
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
dapr>=1.14.0a,<1.15.0
1+
dapr>=1.15.0rc2
22
Flask
3-
typing-extensions
3+
typing-extensions
4+
werkzeug>=3.0.3 # not directly required, pinned by Snyk to avoid a vulnerability
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
requests
2-
flask
2+
flask
3+
urllib3>=2.2.2 # not directly required, pinned by Snyk to avoid a vulnerability
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
dapr>=1.14.0a,<1.15.0
1+
dapr>=1.15.0rc2
22
typing-extensions

0 commit comments

Comments
 (0)