Skip to content

Commit 0e25c18

Browse files
authored
Merge branch 'main' into issue-113742
2 parents 1612b6d + 17a94e2 commit 0e25c18

File tree

3,463 files changed

+161475
-127251
lines changed

Some content is hidden

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

3,463 files changed

+161475
-127251
lines changed

.config/dotnet-tools.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@
1515
]
1616
},
1717
"microsoft.dotnet.xharness.cli": {
18-
"version": "10.0.0-prerelease.25167.4",
18+
"version": "10.0.0-prerelease.25255.1",
1919
"commands": [
2020
"xharness"
2121
]
2222
},
2323
"microsoft.visualstudio.slngen.tool": {
24-
"version": "11.1.0",
24+
"version": "12.0.15",
2525
"commands": [
2626
"slngen"
2727
]

.editorconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,10 @@ csharp_space_between_square_brackets = false
155155
# License header
156156
file_header_template = Licensed to the .NET Foundation under one or more agreements.\nThe .NET Foundation licenses this file to you under the MIT license.
157157

158+
[src/libraries/System.Net.Http/src/System/Net/Http/{SocketsHttpHandler/Http3RequestStream.cs,BrowserHttpHandler/BrowserHttpHandler.cs}]
159+
# disable CA2025, the analyzer throws a NullReferenceException when processing this file: https://github.com/dotnet/roslyn-analyzers/issues/7652
160+
dotnet_diagnostic.CA2025.severity = none
161+
158162
# C++ Files
159163
[*.{cpp,h,in}]
160164
curly_bracket_next_line = true

.github/policies/resourceManagement.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -725,6 +725,7 @@ configuration:
725725
mentionees:
726726
- akoeplinger
727727
- matouskozak
728+
- simonrozsival
728729
replyTemplate: >-
729730
Tagging subscribers to this area: ${mentionees}
730731
@@ -933,7 +934,7 @@ configuration:
933934
- mentionUsers:
934935
mentionees:
935936
- roji
936-
- ajcvickers
937+
- SamMonoRT
937938
replyTemplate: >-
938939
Tagging subscribers to this area: ${mentionees}
939940
@@ -946,7 +947,7 @@ configuration:
946947
- mentionUsers:
947948
mentionees:
948949
- roji
949-
- ajcvickers
950+
- SamMonoRT
950951
replyTemplate: >-
951952
Tagging subscribers to this area: ${mentionees}
952953
@@ -959,7 +960,7 @@ configuration:
959960
- mentionUsers:
960961
mentionees:
961962
- roji
962-
- ajcvickers
963+
- SamMonoRT
963964
replyTemplate: >-
964965
Tagging subscribers to this area: ${mentionees}
965966
@@ -973,6 +974,7 @@ configuration:
973974
mentionees:
974975
- cheenamalhotra
975976
- david-engel
977+
- roji
976978
replyTemplate: >-
977979
Tagging subscribers to this area: ${mentionees}
978980
@@ -1587,7 +1589,7 @@ configuration:
15871589
- mentionUsers:
15881590
mentionees:
15891591
- roji
1590-
- ajcvickers
1592+
- SamMonoRT
15911593
replyTemplate: >-
15921594
Tagging subscribers to this area: ${mentionees}
15931595
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: "Copilot Setup Steps"
2+
3+
# Allow testing of the setup steps from your repository's "Actions" tab.
4+
on: workflow_dispatch
5+
6+
jobs:
7+
# The job MUST be called `copilot-setup-steps` or it will not be picked up by Copilot.
8+
# See https://docs.github.com/en/copilot/customizing-copilot/customizing-the-development-environment-for-copilot-coding-agent
9+
copilot-setup-steps:
10+
runs-on: ubuntu-latest
11+
12+
permissions:
13+
contents: read
14+
15+
# You can define any steps you want, and they will run before the agent starts.
16+
# If you do not check out your code, Copilot will do this for you.
17+
steps:
18+
- uses: actions/checkout@v4.2.2
19+
20+
- name: Restore solution
21+
run: ./build.sh --restore --excludecibinarylog --warnaserror false /p:BuildAllConfigurations=true /p:DotNetBuildAllRuntimePacks=true
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Workflow template imported and updated from:
2+
# https://github.com/dotnet/issue-labeler/wiki/Onboarding
3+
#
4+
# See labeler.md for more information
5+
#
6+
# Regularly restore the prediction models from cache to prevent cache eviction
7+
name: "Labeler: Cache Retention"
8+
9+
# For more information about GitHub's action cache limits and eviction policy, see:
10+
# https://docs.github.com/actions/writing-workflows/choosing-what-your-workflow-does/caching-dependencies-to-speed-up-workflows#usage-limits-and-eviction-policy
11+
12+
on:
13+
schedule:
14+
- cron: "58 15 * * *" # 15:58 every day (arbitrary time daily)
15+
16+
workflow_dispatch:
17+
inputs:
18+
cache_key:
19+
description: "The cache key suffix to use for restoring the model from cache. Defaults to 'ACTIVE'."
20+
required: true
21+
default: "ACTIVE"
22+
23+
env:
24+
CACHE_KEY: ${{ inputs.cache_key || 'ACTIVE' }}
25+
26+
jobs:
27+
restore-cache:
28+
# Do not automatically run the workflow on forks outside the 'dotnet' org
29+
if: ${{ github.event_name == 'workflow_dispatch' || github.repository_owner == 'dotnet' }}
30+
runs-on: ubuntu-latest
31+
strategy:
32+
fail-fast: false
33+
matrix:
34+
type: ["issues", "pulls"]
35+
steps:
36+
- uses: dotnet/issue-labeler/restore@46125e85e6a568dc712f358c39f35317366f5eed # v2.0.0
37+
with:
38+
type: ${{ matrix.type }}
39+
cache_key: ${{ env.CACHE_KEY }}
40+
fail-on-cache-miss: true
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# Workflow template imported and updated from:
2+
# https://github.com/dotnet/issue-labeler/wiki/Onboarding
3+
#
4+
# See labeler.md for more information
5+
#
6+
# Predict labels for Issues using a trained model
7+
name: "Labeler: Predict (Issues)"
8+
9+
on:
10+
# Only automatically predict area labels when issues are first opened
11+
issues:
12+
types: opened
13+
14+
# Allow dispatching the workflow via the Actions UI, specifying ranges of numbers
15+
workflow_dispatch:
16+
inputs:
17+
issues:
18+
description: "Issue Numbers (comma-separated list of ranges)."
19+
required: true
20+
cache_key:
21+
description: "The cache key suffix to use for restoring the model. Defaults to 'ACTIVE'."
22+
required: true
23+
default: "ACTIVE"
24+
25+
env:
26+
# Do not allow failure for jobs triggered automatically (as this causes red noise on the workflows list)
27+
ALLOW_FAILURE: ${{ github.event_name == 'workflow_dispatch' }}
28+
29+
LABEL_PREFIX: "area-"
30+
THRESHOLD: 0.40
31+
DEFAULT_LABEL: "needs-area-label"
32+
33+
jobs:
34+
predict-issue-label:
35+
# Do not automatically run the workflow on forks outside the 'dotnet' org
36+
if: ${{ github.event_name == 'workflow_dispatch' || github.repository_owner == 'dotnet' }}
37+
runs-on: ubuntu-latest
38+
permissions:
39+
issues: write
40+
steps:
41+
- name: "Restore issues model from cache"
42+
id: restore-model
43+
uses: dotnet/issue-labeler/restore@46125e85e6a568dc712f358c39f35317366f5eed # v2.0.0
44+
with:
45+
type: issues
46+
fail-on-cache-miss: ${{ env.ALLOW_FAILURE }}
47+
quiet: true
48+
49+
- name: "Predict issue labels"
50+
id: prediction
51+
if: ${{ steps.restore-model.outputs.cache-hit == 'true' }}
52+
uses: dotnet/issue-labeler/predict@46125e85e6a568dc712f358c39f35317366f5eed # v2.0.0
53+
with:
54+
issues: ${{ inputs.issues || github.event.issue.number }}
55+
label_prefix: ${{ env.LABEL_PREFIX }}
56+
threshold: ${{ env.THRESHOLD }}
57+
default_label: ${{ env.DEFAULT_LABEL }}
58+
env:
59+
GITHUB_TOKEN: ${{ github.token }}
60+
continue-on-error: ${{ !env.ALLOW_FAILURE }}
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# Workflow template imported and updated from:
2+
# https://github.com/dotnet/issue-labeler/wiki/Onboarding
3+
#
4+
# See labeler.md for more information
5+
#
6+
# Predict labels for Pull Requests using a trained model
7+
name: "Labeler: Predict (Pulls)"
8+
9+
on:
10+
# Per to the following documentation:
11+
# https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#pull_request_target
12+
#
13+
# The `pull_request_target` event runs in the context of the base of the pull request, rather
14+
# than in the context of the merge commit, as the `pull_request` event does. This prevents
15+
# execution of unsafe code from the head of the pull request that could alter the repository
16+
# or steal any secrets you use in your workflow. This event allows your workflow to do things
17+
# like label or comment on pull requests from forks.
18+
#
19+
# Only automatically predict area labels when pull requests are first opened
20+
pull_request_target:
21+
types: opened
22+
23+
# Configure the branches that need to have PRs labeled
24+
branches:
25+
- 'main'
26+
- 'release/*'
27+
28+
# Allow dispatching the workflow via the Actions UI, specifying ranges of numbers
29+
workflow_dispatch:
30+
inputs:
31+
pulls:
32+
description: "Pull Request Numbers (comma-separated list of ranges)."
33+
required: true
34+
cache_key:
35+
description: "The cache key suffix to use for restoring the model. Defaults to 'ACTIVE'."
36+
required: true
37+
default: "ACTIVE"
38+
39+
env:
40+
# Do not allow failure for jobs triggered automatically (this can block PR merge)
41+
ALLOW_FAILURE: ${{ github.event_name == 'workflow_dispatch' }}
42+
43+
LABEL_PREFIX: "area-"
44+
THRESHOLD: 0.40
45+
DEFAULT_LABEL: "needs-area-label"
46+
47+
jobs:
48+
predict-pull-label:
49+
# Do not automatically run the workflow on forks outside the 'dotnet' org
50+
if: ${{ github.event_name == 'workflow_dispatch' || github.repository_owner == 'dotnet' }}
51+
runs-on: ubuntu-latest
52+
permissions:
53+
pull-requests: write
54+
steps:
55+
- name: "Restore pulls model from cache"
56+
id: restore-model
57+
uses: dotnet/issue-labeler/restore@46125e85e6a568dc712f358c39f35317366f5eed # v2.0.0
58+
with:
59+
type: pulls
60+
fail-on-cache-miss: ${{ env.ALLOW_FAILURE }}
61+
quiet: true
62+
63+
- name: "Predict pull labels"
64+
id: prediction
65+
if: ${{ steps.restore-model.outputs.cache-hit == 'true' }}
66+
uses: dotnet/issue-labeler/predict@46125e85e6a568dc712f358c39f35317366f5eed # v2.0.0
67+
with:
68+
pulls: ${{ inputs.pulls || github.event.number }}
69+
label_prefix: ${{ env.LABEL_PREFIX }}
70+
threshold: ${{ env.THRESHOLD }}
71+
default_label: ${{ env.DEFAULT_LABEL }}
72+
env:
73+
GITHUB_TOKEN: ${{ github.token }}
74+
continue-on-error: ${{ !env.ALLOW_FAILURE }}
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# Workflow template imported and updated from:
2+
# https://github.com/dotnet/issue-labeler/wiki/Onboarding
3+
#
4+
# See labeler.md for more information
5+
#
6+
# Promote a model from staging to 'ACTIVE', backing up the currently 'ACTIVE' model
7+
name: "Labeler: Promotion"
8+
9+
on:
10+
# Dispatched via the Actions UI, promotes the staged models from
11+
# a staged slot into the prediction environment
12+
workflow_dispatch:
13+
inputs:
14+
issues:
15+
description: "Issues: Promote Model"
16+
type: boolean
17+
required: true
18+
pulls:
19+
description: "Pulls: Promote Model"
20+
type: boolean
21+
required: true
22+
staged_key:
23+
description: "The cache key suffix to use for promoting a staged model to 'ACTIVE'. Defaults to 'staged'."
24+
required: true
25+
default: "staged"
26+
backup_key:
27+
description: "The cache key suffix to use for backing up the currently active model. Defaults to 'backup'."
28+
default: "backup"
29+
30+
permissions:
31+
actions: write
32+
33+
jobs:
34+
promote-issues:
35+
if: ${{ inputs.issues }}
36+
runs-on: ubuntu-latest
37+
steps:
38+
- name: "Promote Model for Issues"
39+
uses: dotnet/issue-labeler/promote@46125e85e6a568dc712f358c39f35317366f5eed # v2.0.0
40+
with:
41+
type: "issues"
42+
staged_key: ${{ inputs.staged_key }}
43+
backup_key: ${{ inputs.backup_key }}
44+
45+
promote-pulls:
46+
if: ${{ inputs.pulls }}
47+
runs-on: ubuntu-latest
48+
steps:
49+
- name: "Promote Model for Pull Requests"
50+
uses: dotnet/issue-labeler/promote@46125e85e6a568dc712f358c39f35317366f5eed # v2.0.0
51+
with:
52+
type: "pulls"
53+
staged_key: ${{ inputs.staged_key }}
54+
backup_key: ${{ inputs.backup_key }}

0 commit comments

Comments
 (0)