Skip to content

Commit 5448d8a

Browse files
committed
Merge remote-tracking branch 'upstream/main' into extensions-interpolated-string
* upstream/main: (330 commits) Add support for 'fixed' Add test Add assert Modify ABWQ.AddWork to take in a ROS instead of an IEnumerable (dotnet#78691) [main] Source code updates from dotnet/dotnet (dotnet#78692) Add a test to verify that behavior is expected and bug no longer occurs [main] Source code updates from dotnet/dotnet (dotnet#78663) Add comment Revert "fix symbol publishing? (dotnet#78671)" (dotnet#78686) Revert "Update Microsoft.Build.Tasks.CodeAnalysis.Sdk.csproj (dotnet#78681)" (dotnet#78687) Use VerifyDiagnostics format to report CompileAndVerify diagnostics (dotnet#78666) Fix nullable crash for field keyword in partial property (dotnet#78672) Update Microsoft.Build.Tasks.CodeAnalysis.Sdk.csproj (dotnet#78681) Applied code review suggestions. Add test assertions Use ThrowIfFalse when resolving paths Cleanup fix symbol publishing? (dotnet#78671) Use SBRP version of M.CA for analyzers in the context of source build (dotnet#78668) Hot Reload: Handle document deletes (dotnet#78516) ...
2 parents 9dde95f + 8e60fe0 commit 5448d8a

File tree

1,645 files changed

+57037
-11992
lines changed

Some content is hidden

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

1,645 files changed

+57037
-11992
lines changed

.github/policies/resourceManagement.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,20 @@ configuration:
277277
then:
278278
- closeIssue
279279

280+
- description: Add "untriaged" label on new issues
281+
triggerOnOwnActions: false
282+
if:
283+
- payloadType: Issues
284+
- not:
285+
hasLabel:
286+
label: untriaged
287+
- and:
288+
- isAction:
289+
action: Opened
290+
then:
291+
- addLabel:
292+
label: untriaged
293+
280294
- description: Remove "untriaged" label from issues when closed or added to a milestone
281295
triggerOnOwnActions: false
282296
if:
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: "24 19 * * *" # 19:24 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: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
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+
32+
jobs:
33+
predict-issue-label:
34+
# Do not automatically run the workflow on forks outside the 'dotnet' org
35+
if: ${{ github.event_name == 'workflow_dispatch' || github.repository_owner == 'dotnet' }}
36+
runs-on: ubuntu-latest
37+
permissions:
38+
issues: write
39+
steps:
40+
- name: "Restore issues model from cache"
41+
id: restore-model
42+
uses: dotnet/issue-labeler/restore@46125e85e6a568dc712f358c39f35317366f5eed # v2.0.0
43+
with:
44+
type: issues
45+
fail-on-cache-miss: ${{ env.ALLOW_FAILURE }}
46+
quiet: true
47+
48+
- name: "Predict issue labels"
49+
id: prediction
50+
if: ${{ steps.restore-model.outputs.cache-hit == 'true' }}
51+
uses: dotnet/issue-labeler/predict@46125e85e6a568dc712f358c39f35317366f5eed # v2.0.0
52+
with:
53+
issues: ${{ inputs.issues || github.event.issue.number }}
54+
label_prefix: ${{ env.LABEL_PREFIX }}
55+
threshold: ${{ env.THRESHOLD }}
56+
env:
57+
GITHUB_TOKEN: ${{ github.token }}
58+
continue-on-error: ${{ !env.ALLOW_FAILURE }}
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
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+
27+
# Allow dispatching the workflow via the Actions UI, specifying ranges of numbers
28+
workflow_dispatch:
29+
inputs:
30+
pulls:
31+
description: "Pull Request Numbers (comma-separated list of ranges)."
32+
required: true
33+
cache_key:
34+
description: "The cache key suffix to use for restoring the model. Defaults to 'ACTIVE'."
35+
required: true
36+
default: "ACTIVE"
37+
38+
env:
39+
# Do not allow failure for jobs triggered automatically (this can block PR merge)
40+
ALLOW_FAILURE: ${{ github.event_name == 'workflow_dispatch' }}
41+
42+
LABEL_PREFIX: "Area-"
43+
THRESHOLD: 0.40
44+
45+
jobs:
46+
predict-pull-label:
47+
# Do not automatically run the workflow on forks outside the 'dotnet' org
48+
if: ${{ github.event_name == 'workflow_dispatch' || github.repository_owner == 'dotnet' }}
49+
runs-on: ubuntu-latest
50+
permissions:
51+
pull-requests: write
52+
steps:
53+
- name: "Restore pulls model from cache"
54+
id: restore-model
55+
uses: dotnet/issue-labeler/restore@46125e85e6a568dc712f358c39f35317366f5eed # v2.0.0
56+
with:
57+
type: pulls
58+
fail-on-cache-miss: ${{ env.ALLOW_FAILURE }}
59+
quiet: true
60+
61+
- name: "Predict pull labels"
62+
id: prediction
63+
if: ${{ steps.restore-model.outputs.cache-hit == 'true' }}
64+
uses: dotnet/issue-labeler/predict@46125e85e6a568dc712f358c39f35317366f5eed # v2.0.0
65+
with:
66+
pulls: ${{ inputs.pulls || github.event.number }}
67+
label_prefix: ${{ env.LABEL_PREFIX }}
68+
threshold: ${{ env.THRESHOLD }}
69+
env:
70+
GITHUB_TOKEN: ${{ github.token }}
71+
continue-on-error: ${{ !env.ALLOW_FAILURE }}

.github/workflows/labeler-promote.yml

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)