Skip to content

Commit db75816

Browse files
authored
Merge main to feature/10.0 (#8095)
2 parents a53be97 + f52454c commit db75816

File tree

88 files changed

+361
-964
lines changed

Some content is hidden

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

88 files changed

+361
-964
lines changed

.github/dependabot.template.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
#! to the list of TFMs that the major version uses for build and test.
99
#@ def getTfms():
1010
#@ return {
11-
#@ "9": [ "net9.0", "net8.0", "net7.0", "net6.0" ],
12-
#@ "8": [ "net8.0", "net7.0", "net6.0" ],
11+
#@ "9": [ "net9.0", "net8.0" ],
12+
#@ "8": [ "net8.0" ],
1313
#@ }
1414
#@ end
1515

@@ -18,9 +18,8 @@
1818
#@ def getBranches():
1919
#@ return [
2020
#@ struct.encode({"name": "main", "majorVersion": "8"}),
21-
#@ struct.encode({"name": "release/9.x", "majorVersion": "9"}),
21+
#@ struct.encode({"name": "release/9.0", "majorVersion": "9"}),
2222
#@ struct.encode({"name": "release/8.x", "majorVersion": "8"}),
23-
#@ struct.encode({"name": "release/8.0", "majorVersion": "8"}),
2423
#@ ]
2524
#@ end
2625

.github/dependabot.yml

Lines changed: 8 additions & 190 deletions
Original file line numberDiff line numberDiff line change
@@ -51,52 +51,18 @@ updates:
5151
- Microsoft.Extensions.*
5252
- Microsoft.NETCore.DotNetHost
5353
- System.Text.Json
54-
- package-ecosystem: nuget
55-
directory: /eng/dependabot/net7.0
56-
schedule:
57-
interval: daily
58-
target-branch: main
59-
ignore:
60-
- dependency-name: '*'
61-
update-types:
62-
- version-update:semver-major
63-
commit-message:
64-
prefix: '[main] '
65-
groups:
66-
runtime-dependencies:
67-
patterns:
68-
- Microsoft.Extensions.*
69-
- Microsoft.NETCore.DotNetHost
70-
- System.Text.Json
71-
- package-ecosystem: nuget
72-
directory: /eng/dependabot/net6.0
73-
schedule:
74-
interval: daily
75-
target-branch: main
76-
ignore:
77-
- dependency-name: '*'
78-
update-types:
79-
- version-update:semver-major
80-
commit-message:
81-
prefix: '[main] '
82-
groups:
83-
runtime-dependencies:
84-
patterns:
85-
- Microsoft.Extensions.*
86-
- Microsoft.NETCore.DotNetHost
87-
- System.Text.Json
8854
- package-ecosystem: nuget
8955
directory: /eng/dependabot/independent
9056
schedule:
9157
interval: daily
92-
target-branch: release/9.x
58+
target-branch: release/9.0
9359
ignore:
9460
- dependency-name: Microsoft.Extensions.*
9561
update-types:
9662
- version-update:semver-major
9763
- dependency-name: Moq
9864
commit-message:
99-
prefix: '[release/9.x] '
65+
prefix: '[release/9.0] '
10066
groups:
10167
azure-sdk-dependencies:
10268
patterns:
@@ -111,20 +77,20 @@ updates:
11177
directory: /eng/dependabot/nuget.org
11278
schedule:
11379
interval: daily
114-
target-branch: release/9.x
80+
target-branch: release/9.0
11581
commit-message:
116-
prefix: '[release/9.x] '
82+
prefix: '[release/9.0] '
11783
- package-ecosystem: nuget
11884
directory: /eng/dependabot/net9.0
11985
schedule:
12086
interval: daily
121-
target-branch: release/9.x
87+
target-branch: release/9.0
12288
ignore:
12389
- dependency-name: '*'
12490
update-types:
12591
- version-update:semver-major
12692
commit-message:
127-
prefix: '[release/9.x] '
93+
prefix: '[release/9.0] '
12894
groups:
12995
runtime-dependencies:
13096
patterns:
@@ -135,47 +101,13 @@ updates:
135101
directory: /eng/dependabot/net8.0
136102
schedule:
137103
interval: daily
138-
target-branch: release/9.x
139-
ignore:
140-
- dependency-name: '*'
141-
update-types:
142-
- version-update:semver-major
143-
commit-message:
144-
prefix: '[release/9.x] '
145-
groups:
146-
runtime-dependencies:
147-
patterns:
148-
- Microsoft.Extensions.*
149-
- Microsoft.NETCore.DotNetHost
150-
- System.Text.Json
151-
- package-ecosystem: nuget
152-
directory: /eng/dependabot/net7.0
153-
schedule:
154-
interval: daily
155-
target-branch: release/9.x
156-
ignore:
157-
- dependency-name: '*'
158-
update-types:
159-
- version-update:semver-major
160-
commit-message:
161-
prefix: '[release/9.x] '
162-
groups:
163-
runtime-dependencies:
164-
patterns:
165-
- Microsoft.Extensions.*
166-
- Microsoft.NETCore.DotNetHost
167-
- System.Text.Json
168-
- package-ecosystem: nuget
169-
directory: /eng/dependabot/net6.0
170-
schedule:
171-
interval: daily
172-
target-branch: release/9.x
104+
target-branch: release/9.0
173105
ignore:
174106
- dependency-name: '*'
175107
update-types:
176108
- version-update:semver-major
177109
commit-message:
178-
prefix: '[release/9.x] '
110+
prefix: '[release/9.0] '
179111
groups:
180112
runtime-dependencies:
181113
patterns:
@@ -228,117 +160,3 @@ updates:
228160
- Microsoft.Extensions.*
229161
- Microsoft.NETCore.DotNetHost
230162
- System.Text.Json
231-
- package-ecosystem: nuget
232-
directory: /eng/dependabot/net7.0
233-
schedule:
234-
interval: daily
235-
target-branch: release/8.x
236-
ignore:
237-
- dependency-name: '*'
238-
update-types:
239-
- version-update:semver-major
240-
commit-message:
241-
prefix: '[release/8.x] '
242-
groups:
243-
runtime-dependencies:
244-
patterns:
245-
- Microsoft.Extensions.*
246-
- Microsoft.NETCore.DotNetHost
247-
- System.Text.Json
248-
- package-ecosystem: nuget
249-
directory: /eng/dependabot/net6.0
250-
schedule:
251-
interval: daily
252-
target-branch: release/8.x
253-
ignore:
254-
- dependency-name: '*'
255-
update-types:
256-
- version-update:semver-major
257-
commit-message:
258-
prefix: '[release/8.x] '
259-
groups:
260-
runtime-dependencies:
261-
patterns:
262-
- Microsoft.Extensions.*
263-
- Microsoft.NETCore.DotNetHost
264-
- System.Text.Json
265-
- package-ecosystem: nuget
266-
directory: /eng/dependabot/independent
267-
schedule:
268-
interval: daily
269-
target-branch: release/8.0
270-
ignore:
271-
- dependency-name: Microsoft.Extensions.*
272-
update-types:
273-
- version-update:semver-major
274-
- dependency-name: Moq
275-
commit-message:
276-
prefix: '[release/8.0] '
277-
groups:
278-
azure-sdk-dependencies:
279-
patterns:
280-
- Azure.Core
281-
- Azure.Identity
282-
- Azure.Storage.*
283-
identity-dependencies:
284-
patterns:
285-
- Microsoft.Identity.*
286-
- Microsoft.IdentityModel.*
287-
- package-ecosystem: nuget
288-
directory: /eng/dependabot/nuget.org
289-
schedule:
290-
interval: daily
291-
target-branch: release/8.0
292-
commit-message:
293-
prefix: '[release/8.0] '
294-
- package-ecosystem: nuget
295-
directory: /eng/dependabot/net8.0
296-
schedule:
297-
interval: daily
298-
target-branch: release/8.0
299-
ignore:
300-
- dependency-name: '*'
301-
update-types:
302-
- version-update:semver-major
303-
commit-message:
304-
prefix: '[release/8.0] '
305-
groups:
306-
runtime-dependencies:
307-
patterns:
308-
- Microsoft.Extensions.*
309-
- Microsoft.NETCore.DotNetHost
310-
- System.Text.Json
311-
- package-ecosystem: nuget
312-
directory: /eng/dependabot/net7.0
313-
schedule:
314-
interval: daily
315-
target-branch: release/8.0
316-
ignore:
317-
- dependency-name: '*'
318-
update-types:
319-
- version-update:semver-major
320-
commit-message:
321-
prefix: '[release/8.0] '
322-
groups:
323-
runtime-dependencies:
324-
patterns:
325-
- Microsoft.Extensions.*
326-
- Microsoft.NETCore.DotNetHost
327-
- System.Text.Json
328-
- package-ecosystem: nuget
329-
directory: /eng/dependabot/net6.0
330-
schedule:
331-
interval: daily
332-
target-branch: release/8.0
333-
ignore:
334-
- dependency-name: '*'
335-
update-types:
336-
- version-update:semver-major
337-
commit-message:
338-
prefix: '[release/8.0] '
339-
groups:
340-
runtime-dependencies:
341-
patterns:
342-
- Microsoft.Extensions.*
343-
- Microsoft.NETCore.DotNetHost
344-
- System.Text.Json

.github/learning-path-sha.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
414fc673021e3f7723ecb1b8aa24ca55ed59e547
1+
2ed430e3a03dab15101ee8c2359b8d05ac1fb921

.github/releases.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@
6262
]
6363
},
6464
"9.1": {
65-
"tag": "v9.1.0-preview.1.25155.2",
66-
"minorReleaseDate": "2025-03-11T00:00:00.000Z",
67-
"patchReleaseDate": "2025-03-11T00:00:00.000Z",
65+
"tag": "v9.1.0-preview.2.25201.5",
66+
"minorReleaseDate": "2025-04-08T00:00:00.000Z",
67+
"patchReleaseDate": "2025-04-08T00:00:00.000Z",
6868
"supportedFrameworks": [
6969
"net9.0"
7070
]

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"args": {
1515
"fileName": "${workspaceFolder}/eng/branch-vscode-config",
1616
"key": "TFM",
17-
"default": "net6.0"
17+
"default": "net9.0"
1818
}
1919
}
2020
],

NuGet.config

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@
1414
<!-- Begin: Package sources from dotnet-runtime -->
1515
<!-- End: Package sources from dotnet-runtime -->
1616
<!--End: Package sources managed by Dependency Flow automation. Do not edit the sources above.-->
17-
<add key="dotnet5" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet5/nuget/v3/index.json" />
18-
<add key="dotnet6" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet6/nuget/v3/index.json" />
19-
<add key="dotnet7" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet7/nuget/v3/index.json" />
2017
<add key="dotnet8" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet8/nuget/v3/index.json" />
2118
<add key="dotnet9" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet9/nuget/v3/index.json" />
2219
<add key="dotnet8-transport" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet8-transport/nuget/v3/index.json" />

documentation/learningPath/aks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ In addition to its availability as a .NET CLI tool, the `dotnet monitor` tool is
66

77
This workflow takes your local development copy of `dotnet-monitor`, patches it with a local development copy of the [.NET Core Diagnostics Repo](https://github.com/dotnet/diagnostics#net-core-diagnostics-repo), and makes it available as an image for you to consume in an ACR (Azure Container Registry). Note that there are many other ways to do this - this is meant to serve as a basic template that can be adapted to match your needs.
88

9-
1. Open `pwsh` and run the [generate-dev-sln script](https://github.com/dotnet/dotnet-monitor/blob/414fc673021e3f7723ecb1b8aa24ca55ed59e547/generate-dev-sln.ps1), providing a path to your local copy of the diagnostics repo.
9+
1. Open `pwsh` and run the [generate-dev-sln script](https://github.com/dotnet/dotnet-monitor/blob/2ed430e3a03dab15101ee8c2359b8d05ac1fb921/generate-dev-sln.ps1), providing a path to your local copy of the diagnostics repo.
1010

1111
> [!NOTE]
1212
> If your changes do not involve the [.NET Core Diagnostics Repo](https://github.com/dotnet/diagnostics#net-core-diagnostics-repo), you don't need to complete this step.

documentation/learningPath/api.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ dotnet-monitor exposes functionality through both [collection rules](./collectio
44

55
## Adding New APIs
66

7-
The web API surface is defined by a series of controllers [here](https://github.com/dotnet/dotnet-monitor/blob/414fc673021e3f7723ecb1b8aa24ca55ed59e547/src/Microsoft.Diagnostics.Monitoring.WebApi/Controllers/). It's common for an API to expose functionality also available via [Actions](./collectionrules.md#actions) and so methods in these controllers are often wrappers around a shared implementation. Each controller may have one or more attributes that configure how and where it is exposed, you can learn more about the notable controller attributes [here](#notable-controller-attributes).
7+
The web API surface is defined by a series of controllers [here](https://github.com/dotnet/dotnet-monitor/blob/2ed430e3a03dab15101ee8c2359b8d05ac1fb921/src/Microsoft.Diagnostics.Monitoring.WebApi/Controllers/). It's common for an API to expose functionality also available via [Actions](./collectionrules.md#actions) and so methods in these controllers are often wrappers around a shared implementation. Each controller may have one or more attributes that configure how and where it is exposed, you can learn more about the notable controller attributes [here](#notable-controller-attributes).
88

9-
If the new API needs to either accept or return structured data, a dedicated model should be used. Models are defined [here](https://github.com/dotnet/dotnet-monitor/blob/414fc673021e3f7723ecb1b8aa24ca55ed59e547/src/Microsoft.Diagnostics.Monitoring.WebApi/Models/).
9+
If the new API needs to either accept or return structured data, a dedicated model should be used. Models are defined [here](https://github.com/dotnet/dotnet-monitor/blob/2ed430e3a03dab15101ee8c2359b8d05ac1fb921/src/Microsoft.Diagnostics.Monitoring.WebApi/Models/).
1010

1111
When adding a new API, it's important to also update the [`openapi.json`](../openapi.json) spec which describes the API surface. There are CI tests that will ensure this file has been updated to reflect any API changes. Learn more about updating `openapi.json` [here](./testing.md#openapi-generation).
1212

1313
### Adding Tests
1414

15-
Web APIs in dotnet-monitor are typically tested using functional tests that leverage the [ApiClient](https://github.com/dotnet/dotnet-monitor/blob/414fc673021e3f7723ecb1b8aa24ca55ed59e547/src/Tests/Microsoft.Diagnostics.Monitoring.Tool.FunctionalTests/HttpApi/ApiClient.cs) to call a specific API. Learn more about how the functional tests are defined and operate [here](./testing.md#functional-tests).
15+
Web APIs in dotnet-monitor are typically tested using functional tests that leverage the [ApiClient](https://github.com/dotnet/dotnet-monitor/blob/2ed430e3a03dab15101ee8c2359b8d05ac1fb921/src/Tests/Microsoft.Diagnostics.Monitoring.Tool.FunctionalTests/HttpApi/ApiClient.cs) to call a specific API. Learn more about how the functional tests are defined and operate [here](./testing.md#functional-tests).
1616

1717
## Notable Controller Attributes
1818

@@ -32,6 +32,6 @@ dotnet-monitor supports multiple different [authentication modes](../authenticat
3232

3333
### Determining Authentication Mode
3434

35-
When dotnet-monitor starts, the command line arguments are first inspected to see if a specific authentication mode was set (such as `--no-auth`), referred to as the `StartupAuthenticationMode`, this is calculated [here](https://github.com/dotnet/dotnet-monitor/blob/414fc673021e3f7723ecb1b8aa24ca55ed59e547/src/Tools/dotnet-monitor/Commands/CollectCommandHandler.cs#L28). If no modes were explicitly set via a command line argument, dotnet-monitor will select `Deferred` as the `StartupAuthenticationMode`. This indicates that the user configuration should be looked at to determine the authentication mode later on in the startup process.
35+
When dotnet-monitor starts, the command line arguments are first inspected to see if a specific authentication mode was set (such as `--no-auth`), referred to as the `StartupAuthenticationMode`, this is calculated [here](https://github.com/dotnet/dotnet-monitor/blob/2ed430e3a03dab15101ee8c2359b8d05ac1fb921/src/Tools/dotnet-monitor/Commands/CollectCommandHandler.cs#L28). If no modes were explicitly set via a command line argument, dotnet-monitor will select `Deferred` as the `StartupAuthenticationMode`. This indicates that the user configuration should be looked at to determine the authentication mode later on in the startup process.
3636

37-
After determining the `StartupAuthenticationMode` mode, the relevant [IAuthenticationConfigurator](https://github.com/dotnet/dotnet-monitor/blob/414fc673021e3f7723ecb1b8aa24ca55ed59e547/src/Tools/dotnet-monitor/Auth/IAuthenticationConfigurator.cs) is created by the [AuthConfiguratorFactory](https://github.com/dotnet/dotnet-monitor/blob/414fc673021e3f7723ecb1b8aa24ca55ed59e547/src/Tools/dotnet-monitor/Auth/AuthConfiguratorFactory.cs). This factory also handles deciding what authentication mode to use when `StartupAuthenticationMode` is `Deferred`. The selected configurator is used to configure various parts of dotnet-monitor that are specific to authentication, such as protecting the web APIs and adding authentication-mode specific logging.
37+
After determining the `StartupAuthenticationMode` mode, the relevant [IAuthenticationConfigurator](https://github.com/dotnet/dotnet-monitor/blob/2ed430e3a03dab15101ee8c2359b8d05ac1fb921/src/Tools/dotnet-monitor/Auth/IAuthenticationConfigurator.cs) is created by the [AuthConfiguratorFactory](https://github.com/dotnet/dotnet-monitor/blob/2ed430e3a03dab15101ee8c2359b8d05ac1fb921/src/Tools/dotnet-monitor/Auth/AuthConfiguratorFactory.cs). This factory also handles deciding what authentication mode to use when `StartupAuthenticationMode` is `Deferred`. The selected configurator is used to configure various parts of dotnet-monitor that are specific to authentication, such as protecting the web APIs and adding authentication-mode specific logging.

0 commit comments

Comments
 (0)