Skip to content

Commit 57da96a

Browse files
authored
Merge branch 'main' into update-helix-references
2 parents c70bbb3 + 748b663 commit 57da96a

File tree

39 files changed

+2076
-510
lines changed

39 files changed

+2076
-510
lines changed

.azure/pipelines/ci-public.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -632,8 +632,7 @@ stages:
632632
platform:
633633
name: 'Managed'
634634
container: 'mcr.microsoft.com/dotnet-buildtools/prereqs:azurelinux-3.0-net10.0-build-amd64'
635-
buildScript: './eng/build.sh --publish --no-build-repo-tasks $(_PublishArgs) $(_InternalRuntimeDownloadArgs)'
636-
skipPublishValidation: true
635+
buildScript: './eng/build.sh $(_InternalRuntimeDownloadArgs)'
637636
jobProperties:
638637
timeoutInMinutes: 120
639638
variables:

.azure/pipelines/ci.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -669,16 +669,14 @@ extends:
669669
path: artifacts/log/
670670
publishOnError: true
671671
includeForks: true
672-
673672
# Source build
674673
- template: /eng/common/templates-official/job/source-build.yml@self
675674
parameters:
676675
enableInternalSources: true
677676
platform:
678677
name: 'Managed'
679678
container: 'mcr.microsoft.com/dotnet-buildtools/prereqs:centos-stream-10-amd64'
680-
buildScript: './eng/build.sh --publish --no-build-repo-tasks $(_PublishArgs) $(_InternalRuntimeDownloadArgs)'
681-
skipPublishValidation: true
679+
buildScript: './eng/build.sh $(_InternalRuntimeDownloadArgs)'
682680
jobProperties:
683681
timeoutInMinutes: 120
684682
variables:

.github/CODEOWNERS

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
/eng/ @dotnet/aspnet-build @wtgodbe
1515
/eng/Versions.props @dotnet/aspnet-build @wtgodbe
1616
/eng/Version.Details.xml @dotnet/aspnet-build @wtgodbe
17-
/eng/SourceBuild* @dotnet/source-build
1817
/src/Caching/ @captainsafia @halter73 @mgravell
1918
/src/Components/ @dotnet/aspnet-blazor-eng
2019
/src/DefaultBuilder/ @halter73

.github/policies/resourceManagement.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,7 @@ configuration:
663663
- isAction:
664664
action: Opened
665665
- isActivitySender:
666-
user: app/dependabot
666+
user: dependabot[bot]
667667
issueAuthor: False
668668
- targetsBranch:
669669
branch: main
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: "32 16 * * *" # 16:32 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: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
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+
DEFAULT_LABEL: "needs-area-label"
45+
46+
jobs:
47+
predict-pull-label:
48+
# Do not automatically run the workflow on forks outside the 'dotnet' org
49+
if: ${{ github.event_name == 'workflow_dispatch' || github.repository_owner == 'dotnet' }}
50+
runs-on: ubuntu-latest
51+
permissions:
52+
pull-requests: write
53+
steps:
54+
- name: "Restore pulls model from cache"
55+
id: restore-model
56+
uses: dotnet/issue-labeler/restore@46125e85e6a568dc712f358c39f35317366f5eed # v2.0.0
57+
with:
58+
type: pulls
59+
fail-on-cache-miss: ${{ env.ALLOW_FAILURE }}
60+
quiet: true
61+
62+
- name: "Predict pull labels"
63+
id: prediction
64+
if: ${{ steps.restore-model.outputs.cache-hit == 'true' }}
65+
uses: dotnet/issue-labeler/predict@46125e85e6a568dc712f358c39f35317366f5eed # v2.0.0
66+
with:
67+
pulls: ${{ inputs.pulls || github.event.number }}
68+
label_prefix: ${{ env.LABEL_PREFIX }}
69+
threshold: ${{ env.THRESHOLD }}
70+
default_label: ${{ env.DEFAULT_LABEL }}
71+
env:
72+
GITHUB_TOKEN: ${{ github.token }}
73+
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)