Skip to content

Commit

Permalink
Merge pull request #15 from Unity-Technologies/bot-upstream-main-merg…
Browse files Browse the repository at this point in the history
…e-2021-12-04

Sync with upstream main branch
  • Loading branch information
Joshua Peterson authored Dec 7, 2021
2 parents 41c0242 + 541c8a2 commit 59469f5
Show file tree
Hide file tree
Showing 7,427 changed files with 83,659 additions and 64,739 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 1 addition & 1 deletion .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
]
},
"microsoft.dotnet.xharness.cli": {
"version": "1.0.0-prerelease.21529.1",
"version": "1.0.0-prerelease.21602.2",
"commands": [
"xharness"
]
Expand Down
9 changes: 8 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@

"settings": {
// Loading projects on demand is better for larger codebases
"omnisharp.enableMsBuildLoadProjectsOnDemand": true
"omnisharp.enableMsBuildLoadProjectsOnDemand": true,
"omnisharp.enableRoslynAnalyzers": true,
"omnisharp.enableEditorConfigSupport": true,
"omnisharp.enableAsyncCompletion": true,
"omnisharp.testRunSettings": "${containerWorkspaceFolder}/artifacts/obj/vscode/.runsettings"
},

// Add the IDs of extensions you want installed when the container is created.
Expand All @@ -23,6 +27,9 @@
// Use 'onCreateCommand' to run pre-build commands inside the codespace
"onCreateCommand": "${containerWorkspaceFolder}/.devcontainer/scripts/onCreateCommand.sh",

// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "${containerWorkspaceFolder}/.devcontainer/scripts/postCreateCommand.sh",

// Add the locally installed dotnet to the path to ensure that it is activated
// This allows developers to just use 'dotnet build' on the command-line, and the local dotnet version will be used.
"remoteEnv": {
Expand Down
5 changes: 5 additions & 0 deletions .devcontainer/scripts/onCreateCommand.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,8 @@ set -e

# prebuild the repo, so it is ready for development
./build.sh libs+clr -rc Release
# restore libs tests so that the project is ready to be loaded by OmniSharp
./build.sh libs.tests -restore

# save the commit hash of the currently built assemblies, so developers know which version was built
git rev-parse HEAD > ./artifacts/prebuild.sha
6 changes: 6 additions & 0 deletions .devcontainer/scripts/postCreateCommand.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bash

set -e

# reset the repo to the commit hash that was used to build the prebuilt Codespace
git reset --hard $(cat ./artifacts/prebuild.sha)
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/02_api_proposal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ body:
public void Fancy(T item);
}
}
```
```
validations:
required: true
- type: textarea
id: api-usage
attributes:
label: API Usage
description: |
Please provide code examples that highlight how the proposed API additions are meant to be consumed. This will help suggest whether the API has the right shape to be functional, performant and useable.
Please provide code examples that highlight how the proposed API additions are meant to be consumed. This will help suggest whether the API has the right shape to be functional, performant and usable.
placeholder: API usage
value: |
```C#
Expand All @@ -52,7 +52,7 @@ body:
// Getting the values out
foreach (var v in c)
Console.WriteLine(v);
```
```
validations:
required: true
- type: textarea
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/aspnetcore-sync-checkdiff.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Check the code is in sync
$changed = (select-string "nothing to commit" artifacts\status.txt).count -eq 0
return $changed
70 changes: 70 additions & 0 deletions .github/workflows/aspnetcore-sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: AspNetCore->Runtime Code Sync
on:
# Manual run
workflow_dispatch:

permissions:
contents: write
issues: write
pull-requests: write

jobs:
compare_repos:
# Comment out this line to test the scripts in a fork
if: github.repository == 'dotnet/runtime'
name: Sync Code
runs-on: windows-latest
steps:
- name: Checkout aspnetcore
uses: actions/checkout@v2.0.0
with:
# Test this script using changes in a fork
repository: 'dotnet/aspnetcore'
path: aspnetcore
ref: main
- name: Checkout runtime
uses: actions/checkout@v2.0.0
with:
# Test this script using changes in a fork
repository: 'dotnet/runtime'
path: runtime
ref: main
- name: Copy
shell: cmd
working-directory: .\aspnetcore\src\Shared\runtime\
env:
RUNTIME_REPO: d:\a\runtime\runtime\runtime\
run: CopyToRuntime.cmd
- name: Diff
shell: cmd
working-directory: .\runtime\
run: |
mkdir ..\artifacts
git status > ..\artifacts\status.txt
git diff > ..\artifacts\diff.txt
- uses: actions/upload-artifact@v1
with:
name: results
path: artifacts
- name: Check
id: check
shell: pwsh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
$changed = .\runtime\.github\workflows\aspnetcore-sync-checkdiff.ps1
echo "::set-output name=changed::$changed"
- name: Send PR
if: steps.check.outputs.changed == 'true'
# https://github.com/marketplace/actions/create-pull-request
uses: dotnet/actions-create-pull-request@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
path: .\runtime
commit-message: 'Sync shared code from aspnetcore'
title: 'Sync shared code from aspnetcore'
body: 'This PR was automatically generated to sync shared code changes from aspnetcore. Fixes https://github.com/dotnet/aspnetcore/issues/18943'
labels: area-System.Net.Http
base: main
branch: github-action/sync-aspnetcore
branch-suffix: timestamp
5 changes: 5 additions & 0 deletions .github/workflows/backport.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ on:
issue_comment:
types: [created]

permissions:
contents: write
issues: write
pull-requests: write

jobs:
backport:
if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/backport to')
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/create-codespaces-prebuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
workflow_dispatch:
jobs:
createPrebuild:
# Only run in the main repository since it will fail in forks
if: github.repository == 'dotnet/runtime'
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/markdownlint.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Markdownlint

permissions:
contents: read

on:
pull_request:
paths:
Expand Down
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ node_modules/
*.metaproj
*.metaproj.tmp
bin.localpkg/
src/mono/wasm/runtime/dotnet.d.ts.sha256

# RIA/Silverlight projects
Generated_Code/
Expand Down Expand Up @@ -354,3 +355,7 @@ src/coreclr/System.Private.CoreLib/common
!src/coreclr/inc/obj/
!src/coreclr/vm/.vscode/
!src/coreclr/vm/.vscode/c_cpp_properties.json

# Temporary artifacts from local libraries stress builds
.dotnet-daily/
run-stress-*
11 changes: 3 additions & 8 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -266,13 +266,11 @@
<!-- Indicates this is not an officially supported release. Release branches should set this to false. -->
<!-- Keep it in sync with PRERELEASE in eng/native/configureplatform.cmake -->
<IsPrerelease>true</IsPrerelease>
<IsExperimentalAssembly>$(MSBuildProjectName.Contains('Experimental'))</IsExperimentalAssembly>
<IsPrivateAssembly>$(MSBuildProjectName.Contains('Private'))</IsPrivateAssembly>
<!-- Experimental packages should not be stable -->
<SuppressFinalPackageVersion Condition="'$(SuppressFinalPackageVersion)' == '' and ($(IsExperimentalAssembly) or $(IsPrivateAssembly))">true</SuppressFinalPackageVersion>
<IsShippingAssembly Condition="$(IsExperimentalAssembly)">false</IsShippingAssembly>
<!-- Private packages should not be stable -->
<SuppressFinalPackageVersion Condition="'$(SuppressFinalPackageVersion)' == '' and $(IsPrivateAssembly)">true</SuppressFinalPackageVersion>
<!-- We don't want Private packages to be shipped to NuGet.org -->
<IsShippingPackage Condition="$(MSBuildProjectName.Contains('Private')) or $(IsExperimentalAssembly)">false</IsShippingPackage>
<IsShippingPackage Condition="$(IsPrivateAssembly)">false</IsShippingPackage>
<PlaceholderFile>$(RepositoryEngineeringDir)_._</PlaceholderFile>
</PropertyGroup>

Expand All @@ -295,9 +293,6 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<!-- By default the SDK produces ref assembly for 5.0 or later -->
<ProduceReferenceAssembly>false</ProduceReferenceAssembly>
<!-- We have very special projects that don't always contain default references. We also build MSBuild Tasks
and there are some implicit namespaces that clash, i.e System.Threading.Tasks. -->
<DisableImplicitNamespaceImports_DotNet>true</DisableImplicitNamespaceImports_DotNet>
</PropertyGroup>

<PropertyGroup>
Expand Down
Loading

0 comments on commit 59469f5

Please sign in to comment.