Skip to content

Commit 84671f7

Browse files
author
John Luo
authored
Merge branch 'master' into johluo/ext-consolidation
2 parents 160e5b9 + 47138f9 commit 84671f7

File tree

336 files changed

+6347
-2349
lines changed

Some content is hidden

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

336 files changed

+6347
-2349
lines changed

.azure/pipelines/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -850,6 +850,7 @@ stages:
850850
- CodeSign_Xplat_Linux_arm
851851
- CodeSign_Xplat_Linux_arm64
852852
- CodeSign_Xplat_Linux_musl_x64
853+
- CodeSign_Xplat_Linux_musl_arm
853854
- CodeSign_Xplat_Linux_musl_arm64
854855
# In addition to the dependencies above, ensure the build was successful overall.
855856
- Source_Build

.github/workflows/runtime-sync.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
- name: Send PR
6060
if: steps.check.outputs.changed == 'true'
6161
# https://github.com/marketplace/actions/create-pull-request
62-
uses: peter-evans/create-pull-request@v2
62+
uses: peter-evans/create-pull-request@v3
6363
with:
6464
token: ${{ secrets.GITHUB_TOKEN }}
6565
path: .\aspnetcore

docs/BuildFromSource.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,9 +278,21 @@ On macOS/Linux:
278278
279279
### Building a subset of the code
280280

281-
This repository is large. Look for `build.cmd`/`.sh` scripts in subfolders. These scripts can be used to invoke build and test on a smaller set of projects.
281+
When working in the repository, you'll typically be focused on one project area, such as Blazor and SignalR. In that case, it's easier to use the `build.cmd` and `build.sh` that are available in each subfolder. When invoked in a subfolder on Windows:
282282

283-
Furthermore, you can use flags on `build.cmd`/`.sh` to build subsets based on language type, like C++, TypeScript, or C#. Run `build.sh --help` or `build.cmd -help` for details.
283+
```ps1
284+
.\build.cmd
285+
```
286+
287+
Or on macOS or Linux:
288+
289+
```bash
290+
./build.sh
291+
```
292+
293+
> :bulb: Before using the `build.cmd` or `build.sh` at the top-level or in a subfolder, you will need to make sure that [the dependencies documented above](#step-2-install-pre-requisites) have been installed.
294+
295+
These scripts will build and test the projects within a specific directory. Furthermore, you can use flags on `build.cmd`/`.sh` to build subsets based on language type, like C++, TypeScript, or C#. Run `build.sh --help` or `build.cmd -help` for details.
284296

285297
### Build properties
286298

eng/Version.Details.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -309,17 +309,17 @@
309309
<Uri>https://github.com/dotnet/runtime</Uri>
310310
<Sha>72b7d236ad634c2280c73499ebfc2b594995ec06</Sha>
311311
</Dependency>
312-
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="6.0.0-beta.20561.5">
312+
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="6.0.0-beta.20573.2">
313313
<Uri>https://github.com/dotnet/arcade</Uri>
314-
<Sha>e65d307045c183af6e48b087571f6b7a05e39f01</Sha>
314+
<Sha>35bddd4fbfab8da3518fb920250d7c9e0c3138ff</Sha>
315315
</Dependency>
316-
<Dependency Name="Microsoft.DotNet.Build.Tasks.Installers" Version="6.0.0-beta.20561.5">
316+
<Dependency Name="Microsoft.DotNet.Build.Tasks.Installers" Version="6.0.0-beta.20573.2">
317317
<Uri>https://github.com/dotnet/arcade</Uri>
318-
<Sha>e65d307045c183af6e48b087571f6b7a05e39f01</Sha>
318+
<Sha>35bddd4fbfab8da3518fb920250d7c9e0c3138ff</Sha>
319319
</Dependency>
320-
<Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="6.0.0-beta.20561.5">
320+
<Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="6.0.0-beta.20573.2">
321321
<Uri>https://github.com/dotnet/arcade</Uri>
322-
<Sha>e65d307045c183af6e48b087571f6b7a05e39f01</Sha>
322+
<Sha>35bddd4fbfab8da3518fb920250d7c9e0c3138ff</Sha>
323323
</Dependency>
324324
</ToolsetDependencies>
325325
</Dependencies>

eng/Versions.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@
141141
<MicrosoftEntityFrameworkCoreVersion>6.0.0-alpha.1.20563.8</MicrosoftEntityFrameworkCoreVersion>
142142
<MicrosoftEntityFrameworkCoreDesignVersion>6.0.0-alpha.1.20563.8</MicrosoftEntityFrameworkCoreDesignVersion>
143143
<!-- Packages from dotnet/arcade -->
144-
<MicrosoftDotNetBuildTasksInstallersVersion>6.0.0-beta.20561.5</MicrosoftDotNetBuildTasksInstallersVersion>
144+
<MicrosoftDotNetBuildTasksInstallersVersion>6.0.0-beta.20573.2</MicrosoftDotNetBuildTasksInstallersVersion>
145145
</PropertyGroup>
146146
<!--
147147

eng/common/SetupNugetSources.ps1

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,9 @@ function InsertMaestroPrivateFeedCredentials($Sources, $Creds, $Username, $Passw
9999
function EnablePrivatePackageSources($DisabledPackageSources) {
100100
$maestroPrivateSources = $DisabledPackageSources.SelectNodes("add[contains(@key,'darc-int')]")
101101
ForEach ($DisabledPackageSource in $maestroPrivateSources) {
102-
Write-Host "`tEnsuring private source '$($DisabledPackageSource.key)' is enabled"
103-
$DisabledPackageSource.SetAttribute("value", "false")
102+
Write-Host "`tEnsuring private source '$($DisabledPackageSource.key)' is enabled by deleting it from disabledPackageSource"
103+
# Due to https://github.com/NuGet/Home/issues/10291, we must actually remove the disabled entries
104+
$DisabledPackageSources.RemoveChild($DisabledPackageSource)
104105
}
105106
}
106107

eng/common/SetupNugetSources.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,8 @@ if [ "$?" == "0" ]; then
158158
for DisabledSourceName in ${DisabledDarcIntSources[@]} ; do
159159
if [[ $DisabledSourceName == darc-int* ]]
160160
then
161-
OldDisableValue="add key=\"$DisabledSourceName\" value=\"true\""
162-
NewDisableValue="add key=\"$DisabledSourceName\" value=\"false\""
161+
OldDisableValue="<add key=\"$DisabledSourceName\" value=\"true\" />"
162+
NewDisableValue="<!-- Reenabled for build : $DisabledSourceName -->"
163163
sed -i.bak "s|$OldDisableValue|$NewDisableValue|" $ConfigFile
164164
echo "Neutralized disablePackageSources entry for '$DisabledSourceName'"
165165
fi
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
diff -u -r a/usr/include/urcu/uatomic/generic.h b/usr/include/urcu/uatomic/generic.h
2+
--- a/usr/include/urcu/uatomic/generic.h 2014-10-22 15:00:58.000000000 -0700
3+
+++ b/usr/include/urcu/uatomic/generic.h 2020-10-30 21:38:28.550000000 -0700
4+
@@ -69,10 +69,10 @@
5+
#endif
6+
#ifdef UATOMIC_HAS_ATOMIC_SHORT
7+
case 2:
8+
- return __sync_val_compare_and_swap_2(addr, old, _new);
9+
+ return __sync_val_compare_and_swap_2((uint16_t*) addr, old, _new);
10+
#endif
11+
case 4:
12+
- return __sync_val_compare_and_swap_4(addr, old, _new);
13+
+ return __sync_val_compare_and_swap_4((uint32_t*) addr, old, _new);
14+
#if (CAA_BITS_PER_LONG == 64)
15+
case 8:
16+
return __sync_val_compare_and_swap_8(addr, old, _new);
17+
@@ -109,7 +109,7 @@
18+
return;
19+
#endif
20+
case 4:
21+
- __sync_and_and_fetch_4(addr, val);
22+
+ __sync_and_and_fetch_4((uint32_t*) addr, val);
23+
return;
24+
#if (CAA_BITS_PER_LONG == 64)
25+
case 8:
26+
@@ -148,7 +148,7 @@
27+
return;
28+
#endif
29+
case 4:
30+
- __sync_or_and_fetch_4(addr, val);
31+
+ __sync_or_and_fetch_4((uint32_t*) addr, val);
32+
return;
33+
#if (CAA_BITS_PER_LONG == 64)
34+
case 8:
35+
@@ -187,7 +187,7 @@
36+
return __sync_add_and_fetch_2(addr, val);
37+
#endif
38+
case 4:
39+
- return __sync_add_and_fetch_4(addr, val);
40+
+ return __sync_add_and_fetch_4((uint32_t*) addr, val);
41+
#if (CAA_BITS_PER_LONG == 64)
42+
case 8:
43+
return __sync_add_and_fetch_8(addr, val);

eng/common/cross/build-rootfs.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ elif [[ -n $__CodeName ]]; then
336336
chroot $__RootfsDir apt-get -f -y install
337337
chroot $__RootfsDir apt-get -y install $__UbuntuPackages
338338
chroot $__RootfsDir symlinks -cr /usr
339-
chroot $__RootfsDir apt clean
339+
chroot $__RootfsDir apt-get clean
340340

341341
if [ $__SkipUnmount == 0 ]; then
342342
umount $__RootfsDir/* || true
@@ -348,6 +348,12 @@ elif [[ -n $__CodeName ]]; then
348348
patch -p1 < $__CrossDir/$__BuildArch/trusty-lttng-2.4.patch
349349
popd
350350
fi
351+
352+
if [[ "$__BuildArch" == "armel" && "$__CodeName" == "jessie" ]]; then
353+
pushd $__RootfsDir
354+
patch -p1 < $__CrossDir/$__BuildArch/armel.jessie.patch
355+
popd
356+
fi
351357
elif [[ "$__Tizen" == "tizen" ]]; then
352358
ROOTFS_DIR=$__RootfsDir $__CrossDir/$__BuildArch/tizen-build-rootfs.sh
353359
else

eng/common/performance/crossgen_perf.proj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
</PropertyGroup>
2020
<PropertyGroup Condition="'$(AGENT_OS)' != 'Windows_NT'">
2121
<Python>python3</Python>
22-
<HelixPreCommands>$(HelixPreCommands);chmod +x $HELIX_WORKITEM_PAYLOAD/startup/Startup;chmod +x $HELIX_WORKITEM_PAYLOAD/startup/perfcollect;sudo apt update</HelixPreCommands>
22+
<HelixPreCommands>$(HelixPreCommands);chmod +x $HELIX_WORKITEM_PAYLOAD/startup/Startup;chmod +x $HELIX_WORKITEM_PAYLOAD/startup/perfcollect;sudo apt update;chmod +x $HELIX_WORKITEM_PAYLOAD/SOD/SizeOnDisk</HelixPreCommands>
2323
<CoreRoot>$HELIX_CORRELATION_PAYLOAD/Core_Root</CoreRoot>
2424
<ScenarioDirectory>$HELIX_CORRELATION_PAYLOAD/performance/src/scenarios/</ScenarioDirectory>
2525
<CrossgenDirectory>$(ScenarioDirectory)crossgen/</CrossgenDirectory>
@@ -69,7 +69,7 @@
6969
<CrossgenSizeOnDiskWorkItem Include="@(SingleAssembly)" Condition="'$(Architecture)' == 'x64'">
7070
<PayloadDirectory>$(WorkItemDirectory)</PayloadDirectory>
7171
<PreCommands>$(Python) $(CrossgenDirectory)pre.py crossgen --core-root $(CoreRoot) --single %(Identity) </PreCommands>
72-
<Command>$(Python) $(CrossgenDirectory)test.py sod --scenario-name &quot;Crossgen %(Identity) Size&quot; --dirs ./crossgen/</Command>
72+
<Command>$(Python) $(CrossgenDirectory)test.py sod --scenario-name &quot;Crossgen %(Identity) Size&quot; --dirs ./crossgen.out/</Command>
7373
<PostCommands>$(Python) $(CrossgenDirectory)post.py</PostCommands>
7474
</CrossgenSizeOnDiskWorkItem>
7575
</ItemGroup>
@@ -78,7 +78,7 @@
7878
<Crossgen2SizeOnDiskWorkItem Include="@(SingleAssembly)" Condition="'$(Architecture)' == 'x64'">
7979
<PayloadDirectory>$(WorkItemDirectory)</PayloadDirectory>
8080
<PreCommands>$(Python) $(Crossgen2Directory)pre.py crossgen2 --core-root $(CoreRoot) --single %(Identity) </PreCommands>
81-
<Command>$(Python) $(Crossgen2Directory)test.py sod --scenario-name &quot;Crossgen2 %(Identity) Size&quot; --dirs ./crossgen/</Command>
81+
<Command>$(Python) $(Crossgen2Directory)test.py sod --scenario-name &quot;Crossgen2 %(Identity) Size&quot; --dirs ./crossgen.out/</Command>
8282
<PostCommands>$(Python) $(Crossgen2Directory)post.py</PostCommands>
8383
</Crossgen2SizeOnDiskWorkItem>
8484
</ItemGroup>

0 commit comments

Comments
 (0)