Skip to content

Commit 9739f99

Browse files
committed
Merge remote-tracking branch 'upstream/main'
2 parents 60da597 + 99514c0 commit 9739f99

File tree

1,066 files changed

+30100
-13013
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,066 files changed

+30100
-13013
lines changed

.config/dotnet-tools.json

Lines changed: 40 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,48 @@
11
{
2-
"version": 1,
32
"isRoot": true,
43
"tools": {
4+
"dotnet-counters": {
5+
"commands": [
6+
"dotnet-counters"
7+
],
8+
"version": "8.0.460601"
9+
},
10+
"dotnet-dump": {
11+
"commands": [
12+
"dotnet-dump"
13+
],
14+
"version": "8.0.460601"
15+
},
16+
"dotnet-gcdump": {
17+
"commands": [
18+
"dotnet-gcdump"
19+
],
20+
"version": "8.0.460601"
21+
},
22+
"dotnet-sos": {
23+
"commands": [
24+
"dotnet-sos"
25+
],
26+
"version": "8.0.460601"
27+
},
28+
"dotnet-symbol": {
29+
"commands": [
30+
"dotnet-symbol"
31+
],
32+
"version": "1.0.460401"
33+
},
34+
"dotnet-trace": {
35+
"commands": [
36+
"dotnet-trace"
37+
],
38+
"version": "8.0.460601"
39+
},
540
"fantomas": {
6-
"version": "5.0.3",
741
"commands": [
842
"fantomas"
9-
]
43+
],
44+
"version": "6.2.3"
1045
}
11-
}
46+
},
47+
"version": 1
1248
}

.devcontainer/Dockerfile

Lines changed: 0 additions & 26 deletions
This file was deleted.

.devcontainer/devcontainer.json

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
// For format details, see https://aka.ms/vscode-remote/devcontainer.json or this file's README at:
22
{
3-
"name": "F# (.NET 8)",
4-
"build": {
5-
"dockerfile": "Dockerfile",
6-
"args": {
7-
// Update 'VARIANT' to pick a .NET Core version: 3.1, 5.0, 6.0, 7.0, 8.0, etc.
8-
// Append -bullseye(-slim), -focal, or -jammy to pin to an OS version.
9-
"VARIANT": "8.0.100-rc.1-bookworm-slim-amd64"
10-
}
3+
"name": "F#",
4+
"image": "mcr.microsoft.com/dotnet/sdk:8.0.100-rc.1",
5+
"features": {
6+
"ghcr.io/devcontainers/features/common-utils:2": {},
7+
"ghcr.io/devcontainers/features/git:1": {},
8+
"ghcr.io/devcontainers/features/github-cli:1": {
9+
"version": "2"
10+
},
11+
"ghcr.io/devcontainers/features/dotnet:2": {}
1112
},
1213
"hostRequirements": {
1314
"cpus": 2,
@@ -18,13 +19,18 @@
1819
"vscode": {
1920
// Add the IDs of extensions you want installed when the container is created.
2021
"extensions": [
22+
"GitHub.copilot",
23+
"GitHub.vscode-github-actions",
24+
"ms-dotnettools.vscode-dotnet-runtime",
25+
"ms-dotnettools.csdevkit",
2126
"ms-dotnettools.csharp",
2227
"Ionide.Ionide-fsharp",
2328
"tintoy.msbuild-project-tools"
2429
]
2530
}
2631
},
27-
28-
"onCreateCommand": [ "dotnet", "build", "FSharp.Compiler.Service.sln"],
29-
"waitFor": "onCreateCommand"
32+
"remoteEnv": {
33+
"TARGET": "net8.0"
34+
},
35+
"postCreateCommand": [ "dotnet", "build", "FSharp.Compiler.Service.sln"]
3036
}

.editorconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ fsharp_max_array_or_list_width=80
1111
fsharp_max_array_or_list_number_of_items=5
1212
fsharp_max_dot_get_expression_width=80
1313
fsharp_multiline_block_brackets_on_same_column=true
14+
fsharp_multiline_bracket_style=aligned
1415
fsharp_keep_max_number_of_blank_lines=1
1516

1617
[*.fsi]

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
## Description
2+
3+
<!-- Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. -->
4+
5+
Fixes # (issue, if applicable)
6+
7+
## Checklist
8+
9+
- [ ] Test cases added
10+
- [ ] Performance benchmarks added in case of performance changes
11+
- [ ] Release notes entry updated:
12+
> Please make sure to add an entry with short succinct description of the change as well as link to this pull request to the respective release notes file, if applicable.
13+
>
14+
> Release notes files:
15+
> - If anything under `src/Compiler` has been changed, please make sure to make an entry in `docs/release-notes/.FSharp.Compiler.Service/<version>.md`, where `<version>` is usually "highest" one, e.g. `42.8.200`
16+
> - If language feature was added (i.e. `LanguageFeatures.fsi` was changed), please add it to `docs/releae-notes/.Language/preview.md`
17+
> - If a change to `FSharp.Core` was made, please make sure to edit `docs/release-notes/.FSharp.Core/<version>.md` where version is "highest" one, e.g. `8.0.200`.
18+
19+
> Information about the release notes entries format can be found in the [documentation](https://fsharp.github.io/fsharp-compiler-docs/release-notes/About.html).
20+
> Example:
21+
> * More inlines for Result module. ([PR #16106](https://github.com/dotnet/fsharp/pull/16106))
22+
> * Correctly handle assembly imports with public key token of 0 length. ([Issue #16359](https://github.com/dotnet/fsharp/issues/16359), [PR #16363](https://github.com/dotnet/fsharp/pull/16363))
23+
> *`while!` ([Language suggestion #1038](https://github.com/fsharp/fslang-suggestions/issues/1038), [PR #14238](https://github.com/dotnet/fsharp/pull/14238))
24+
25+
> **If you believe that release notes are not necessary for this PR, please add `NO_RELEASE_NOTES` label to the pull request.**

.github/workflows/backport.yml

Lines changed: 12 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -3,81 +3,29 @@ on:
33
issue_comment:
44
types: [created]
55
schedule:
6-
# once a day at 13:00 UTC
6+
# once a day at 13:00 UTC to cleanup old runs
77
- cron: '0 13 * * *'
88

99
permissions:
1010
contents: write
1111
issues: write
1212
pull-requests: write
13+
actions: write
1314

1415
jobs:
15-
cleanup_old_runs:
16-
if: github.event.schedule == '0 13 * * *'
17-
runs-on: ubuntu-20.04
18-
permissions:
19-
actions: write
20-
env:
21-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22-
steps:
23-
- name: Delete old workflow runs
24-
run: |
25-
_UrlPath="/repos/$GITHUB_REPOSITORY/actions/workflows"
26-
_CurrentWorkflowID="$(gh api -X GET "$_UrlPath" | jq '.workflows[] | select(.name == '\""$GITHUB_WORKFLOW"\"') | .id')"
27-
28-
# delete workitems which are 'completed'. (other candidate values of status field are: 'queued' and 'in_progress')
29-
30-
gh api -X GET "$_UrlPath/$_CurrentWorkflowID/runs" --paginate \
31-
| jq '.workflow_runs[] | select(.status == "completed") | .id' \
32-
| xargs -I{} gh api -X DELETE "/repos/$GITHUB_REPOSITORY/actions/runs"/{}
33-
3416
backport:
35-
if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/backport to')
36-
runs-on: ubuntu-20.04
37-
steps:
38-
- name: Extract backport target branch
39-
uses: actions/github-script@v3
40-
id: target-branch-extractor
41-
with:
42-
result-encoding: string
43-
script: |
44-
if (context.eventName !== "issue_comment") throw "Error: This action only works on issue_comment events.";
45-
46-
// extract the target branch name from the trigger phrase containing these characters: a-z, A-Z, digits, forward slash, dot, hyphen, underscore
47-
const regex = /^\/backport to ([a-zA-Z\d\/\.\-\_]+)/;
48-
target_branch = regex.exec(context.payload.comment.body);
49-
if (target_branch == null) throw "Error: No backport branch found in the trigger phrase.";
50-
51-
return target_branch[1];
52-
- name: Post backport started comment to pull request
53-
uses: actions/github-script@v3
54-
with:
55-
script: |
56-
const backport_start_body = `Started backporting to ${{ steps.target-branch-extractor.outputs.result }}: https://github.com/${context.repo.owner}/${context.repo.repo}/actions/runs/${process.env.GITHUB_RUN_ID}`;
57-
await github.issues.createComment({
58-
issue_number: context.issue.number,
59-
owner: context.repo.owner,
60-
repo: context.repo.repo,
61-
body: backport_start_body
62-
});
63-
- name: Checkout repo
64-
uses: actions/checkout@v2
65-
with:
66-
fetch-depth: 0
67-
- name: Run backport
68-
uses: ./eng/actions/backport
69-
with:
70-
target_branch: ${{ steps.target-branch-extractor.outputs.result }}
71-
auth_token: ${{ secrets.GITHUB_TOKEN }}
72-
pr_description_template: |
73-
Backport of #%source_pr_number% to %target_branch%
17+
if: ${{ contains(github.event.comment.body, '/backport to') || github.event_name == 'schedule' }}
18+
uses: dotnet/arcade/.github/workflows/backport-base.yml@main
19+
with:
20+
pr_description_template: |
21+
Backport of #%source_pr_number% to %target_branch%
7422
75-
/cc %cc_users%
23+
/cc %cc_users%
7624
77-
## Customer Impact
25+
## Customer Impact
7826
79-
## Testing
27+
## Testing
8028
81-
## Risk
29+
## Risk
8230
83-
IMPORTANT: Is this backport for a servicing release? If so and this change touches code that ships in a NuGet package, please make certain that you have added any necessary [package authoring](https://github.com/dotnet/runtime/blob/main/docs/project/library-servicing.md) and gotten it explicitly reviewed.
31+
IMPORTANT: Is this backport for a servicing release? If so and this change touches code that ships in a NuGet package, please make certain that you have added any necessary [package authoring](https://github.com/dotnet/runtime/blob/main/docs/project/library-servicing.md) and gotten it explicitly reviewed.

0 commit comments

Comments
 (0)