Skip to content

Commit 5fe9ed2

Browse files
Update dependencies from https://github.com/dotnet/arcade build 20211015.3 (#1029)
Microsoft.DotNet.XUnitExtensions , Microsoft.DotNet.Arcade.Sdk From Version 7.0.0-beta.21514.3 -> To Version 6.0.0-beta.21515.3 Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
1 parent 039344c commit 5fe9ed2

File tree

7 files changed

+89
-73
lines changed

7 files changed

+89
-73
lines changed

eng/Version.Details.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@
1414
</Dependency>
1515
</ProductDependencies>
1616
<ToolsetDependencies>
17-
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="7.0.0-beta.21514.3">
17+
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="6.0.0-beta.21515.3">
1818
<Uri>https://github.com/dotnet/arcade</Uri>
19-
<Sha>9030d71b47f5a885a1f1d81ace8ec469249d88bc</Sha>
19+
<Sha>f389f732d8cdca8ee1e38a534cf10c8c3182ba39</Sha>
2020
</Dependency>
21-
<Dependency Name="Microsoft.DotNet.XUnitExtensions" Version="7.0.0-beta.21514.3">
21+
<Dependency Name="Microsoft.DotNet.XUnitExtensions" Version="6.0.0-beta.21515.3">
2222
<Uri>https://github.com/dotnet/arcade</Uri>
23-
<Sha>9030d71b47f5a885a1f1d81ace8ec469249d88bc</Sha>
23+
<Sha>f389f732d8cdca8ee1e38a534cf10c8c3182ba39</Sha>
2424
</Dependency>
2525
<Dependency Name="Microsoft.FileFormats" Version="1.0.250401">
2626
<Uri>https://github.com/dotnet/symstore</Uri>

eng/Versions.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
-->
3131
<PropertyGroup Label="Automated">
3232
<!-- dotnet/arcade references -->
33-
<MicrosoftDotNetXUnitExtensionsVersion>7.0.0-beta.21514.3</MicrosoftDotNetXUnitExtensionsVersion>
33+
<MicrosoftDotNetXUnitExtensionsVersion>6.0.0-beta.21515.3</MicrosoftDotNetXUnitExtensionsVersion>
3434
<!-- dotnet/aspnetcore references -->
3535
<VSRedistCommonAspNetCoreSharedFrameworkx6460Version>6.0.0-rtm.21514.23</VSRedistCommonAspNetCoreSharedFrameworkx6460Version>
3636
<!-- dotnet/diagnostics references -->

eng/common/cross/build-rootfs.sh

Lines changed: 30 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ usage()
66
{
77
echo "Usage: $0 [BuildArch] [CodeName] [lldbx.y] [--skipunmount] --rootfsdir <directory>]"
88
echo "BuildArch can be: arm(default), armel, arm64, x86"
9-
echo "CodeName - optional, Code name for Linux, can be: xenial(default), zesty, bionic, alpine, alpine3.13 or alpine3.14. If BuildArch is armel, LinuxCodeName is jessie(default) or tizen."
9+
echo "CodeName - optional, Code name for Linux, can be: xenial(default), zesty, bionic, alpine, alpine3.9 or alpine3.13. If BuildArch is armel, LinuxCodeName is jessie(default) or tizen."
1010
echo " for FreeBSD can be: freebsd11, freebsd12, freebsd13"
1111
echo " for illumos can be: illumos."
1212
echo "lldbx.y - optional, LLDB version, can be: lldb3.9(default), lldb4.0, lldb5.0, lldb6.0 no-lldb. Ignored for alpine and FreeBSD"
@@ -32,9 +32,9 @@ __UbuntuPackages="build-essential"
3232
__AlpinePackages="alpine-base"
3333
__AlpinePackages+=" build-base"
3434
__AlpinePackages+=" linux-headers"
35-
__AlpinePackages+=" lldb-dev"
36-
__AlpinePackages+=" python3"
37-
__AlpinePackages+=" libedit"
35+
__AlpinePackagesEdgeCommunity=" lldb-dev"
36+
__AlpinePackagesEdgeMain+=" python3"
37+
__AlpinePackagesEdgeMain+=" libedit"
3838

3939
# symlinks fixer
4040
__UbuntuPackages+=" symlinks"
@@ -185,17 +185,23 @@ while :; do
185185
__UbuntuRepo=
186186
__Tizen=tizen
187187
;;
188-
alpine|alpine3.13)
188+
alpine|alpine3.9)
189189
__CodeName=alpine
190190
__UbuntuRepo=
191-
__AlpineVersion=3.13
192-
__AlpinePackages+=" llvm10-libs"
191+
__AlpineVersion=3.9
192+
__AlpinePackagesEdgeMain+=" llvm11-libs"
193+
__AlpinePackagesEdgeMain+=" clang-libs"
193194
;;
194-
alpine3.14)
195+
alpine3.13)
195196
__CodeName=alpine
196197
__UbuntuRepo=
197-
__AlpineVersion=3.14
198-
__AlpinePackages+=" llvm11-libs"
198+
__AlpineVersion=3.13
199+
# Alpine 3.13 has all the packages we need in the 3.13 repository
200+
__AlpinePackages+=$__AlpinePackagesEdgeCommunity
201+
__AlpinePackagesEdgeCommunity=
202+
__AlpinePackages+=$__AlpinePackagesEdgeMain
203+
__AlpinePackagesEdgeMain=
204+
__AlpinePackages+=" llvm10-libs"
199205
;;
200206
freebsd11)
201207
__FreeBSDBase="11.3-RELEASE"
@@ -273,6 +279,20 @@ if [[ "$__CodeName" == "alpine" ]]; then
273279
-U --allow-untrusted --root $__RootfsDir --arch $__AlpineArch --initdb \
274280
add $__AlpinePackages
275281

282+
if [[ -n "$__AlpinePackagesEdgeMain" ]]; then
283+
$__ApkToolsDir/apk-tools-$__ApkToolsVersion/apk \
284+
-X http://dl-cdn.alpinelinux.org/alpine/edge/main \
285+
-U --allow-untrusted --root $__RootfsDir --arch $__AlpineArch --initdb \
286+
add $__AlpinePackagesEdgeMain
287+
fi
288+
289+
if [[ -n "$__AlpinePackagesEdgeCommunity" ]]; then
290+
$__ApkToolsDir/apk-tools-$__ApkToolsVersion/apk \
291+
-X http://dl-cdn.alpinelinux.org/alpine/edge/community \
292+
-U --allow-untrusted --root $__RootfsDir --arch $__AlpineArch --initdb \
293+
add $__AlpinePackagesEdgeCommunity
294+
fi
295+
276296
rm -r $__ApkToolsDir
277297
elif [[ "$__CodeName" == "freebsd" ]]; then
278298
mkdir -p $__RootfsDir/usr/local/etc

eng/common/cross/toolchain.cmake

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ elseif(TARGET_ARCH_NAME STREQUAL "x86")
4444
set(TOOLCHAIN "i686-linux-gnu")
4545
elseif (CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
4646
set(CMAKE_SYSTEM_PROCESSOR "x86_64")
47-
set(triple "x86_64-unknown-freebsd12")
47+
set(triple "x86_64-unknown-freebsd11")
4848
elseif (ILLUMOS)
4949
set(CMAKE_SYSTEM_PROCESSOR "x86_64")
5050
set(TOOLCHAIN "x86_64-illumos")
@@ -91,9 +91,6 @@ elseif(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
9191
set(CMAKE_CXX_COMPILER_TARGET ${triple})
9292
set(CMAKE_ASM_COMPILER_TARGET ${triple})
9393
set(CMAKE_SYSROOT "${CROSS_ROOTFS}")
94-
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fuse-ld=lld")
95-
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -fuse-ld=lld")
96-
set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -fuse-ld=lld")
9794
elseif(ILLUMOS)
9895
set(CMAKE_SYSROOT "${CROSS_ROOTFS}")
9996

Lines changed: 49 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,39 @@
11
#!/usr/bin/env bash
22
#
3-
# This file detects the C/C++ compiler and exports it to the CC/CXX environment variables
3+
# This file locates the native compiler with the given name and version and sets the environment variables to locate it.
44
#
55

6-
if [[ "$#" -lt 3 ]]; then
6+
source="${BASH_SOURCE[0]}"
7+
8+
# resolve $SOURCE until the file is no longer a symlink
9+
while [[ -h $source ]]; do
10+
scriptroot="$( cd -P "$( dirname "$source" )" && pwd )"
11+
source="$(readlink "$source")"
12+
13+
# if $source was a relative symlink, we need to resolve it relative to the path where the
14+
# symlink file was located
15+
[[ $source != /* ]] && source="$scriptroot/$source"
16+
done
17+
scriptroot="$( cd -P "$( dirname "$source" )" && pwd )"
18+
19+
if [ $# -lt 0 ]
20+
then
721
echo "Usage..."
8-
echo "init-compiler.sh <script directory> <Architecture> <compiler> <compiler major version> <compiler minor version>"
9-
echo "Specify the script directory."
10-
echo "Specify the target architecture."
22+
echo "find-native-compiler.sh <compiler> <compiler major version> <compiler minor version>"
1123
echo "Specify the name of compiler (clang or gcc)."
1224
echo "Specify the major version of compiler."
1325
echo "Specify the minor version of compiler."
1426
exit 1
1527
fi
1628

17-
nativescriptroot="$1"
18-
build_arch="$2"
19-
compiler="$3"
20-
cxxCompiler="$compiler++"
21-
majorVersion="$4"
22-
minorVersion="$5"
23-
24-
. "$nativescriptroot"/../pipeline-logging-functions.sh
29+
. $scriptroot/../pipeline-logging-functions.sh
2530

26-
# clear the existing CC and CXX from environment
27-
CC=
28-
CXX=
29-
LDFLAGS=
31+
compiler="$1"
32+
cxxCompiler="$compiler++"
33+
majorVersion="$2"
34+
minorVersion="$3"
3035

31-
if [[ "$compiler" == "gcc" ]]; then cxxCompiler="g++"; fi
36+
if [ "$compiler" = "gcc" ]; then cxxCompiler="g++"; fi
3237

3338
check_version_exists() {
3439
desired_version=-1
@@ -45,38 +50,38 @@ check_version_exists() {
4550
echo "$desired_version"
4651
}
4752

48-
if [[ -z "$CLR_CC" ]]; then
53+
if [ -z "$CLR_CC" ]; then
4954

5055
# Set default versions
51-
if [[ -z "$majorVersion" ]]; then
56+
if [ -z "$majorVersion" ]; then
5257
# note: gcc (all versions) and clang versions higher than 6 do not have minor version in file name, if it is zero.
53-
if [[ "$compiler" == "clang" ]]; then versions=( 13 12 11 10 9 8 7 6.0 5.0 4.0 3.9 3.8 3.7 3.6 3.5 )
54-
elif [[ "$compiler" == "gcc" ]]; then versions=( 12 11 10 9 8 7 6 5 4.9 ); fi
58+
if [ "$compiler" = "clang" ]; then versions=( 9 8 7 6.0 5.0 4.0 3.9 3.8 3.7 3.6 3.5 )
59+
elif [ "$compiler" = "gcc" ]; then versions=( 9 8 7 6 5 4.9 ); fi
5560

5661
for version in "${versions[@]}"; do
5762
parts=(${version//./ })
5863
desired_version="$(check_version_exists "${parts[0]}" "${parts[1]}")"
59-
if [[ "$desired_version" != "-1" ]]; then majorVersion="${parts[0]}"; break; fi
64+
if [ "$desired_version" != "-1" ]; then majorVersion="${parts[0]}"; break; fi
6065
done
6166

62-
if [[ -z "$majorVersion" ]]; then
67+
if [ -z "$majorVersion" ]; then
6368
if command -v "$compiler" > /dev/null; then
64-
if [[ "$(uname)" != "Darwin" ]]; then
69+
if [ "$(uname)" != "Darwin" ]; then
6570
Write-PipelineTelemetryError -category "Build" -type "warning" "Specific version of $compiler not found, falling back to use the one in PATH."
6671
fi
67-
CC="$(command -v "$compiler")"
68-
CXX="$(command -v "$cxxCompiler")"
72+
export CC="$(command -v "$compiler")"
73+
export CXX="$(command -v "$cxxCompiler")"
6974
else
7075
Write-PipelineTelemetryError -category "Build" "No usable version of $compiler found."
7176
exit 1
7277
fi
7378
else
74-
if [[ "$compiler" == "clang" && "$majorVersion" -lt 5 ]]; then
75-
if [[ "$build_arch" == "arm" || "$build_arch" == "armel" ]]; then
79+
if [ "$compiler" = "clang" ] && [ "$majorVersion" -lt 5 ]; then
80+
if [ "$build_arch" = "arm" ] || [ "$build_arch" = "armel" ]; then
7681
if command -v "$compiler" > /dev/null; then
7782
Write-PipelineTelemetryError -category "Build" -type "warning" "Found clang version $majorVersion which is not supported on arm/armel architectures, falling back to use clang from PATH."
78-
CC="$(command -v "$compiler")"
79-
CXX="$(command -v "$cxxCompiler")"
83+
export CC="$(command -v "$compiler")"
84+
export CXX="$(command -v "$cxxCompiler")"
8085
else
8186
Write-PipelineTelemetryError -category "Build" "Found clang version $majorVersion which is not supported on arm/armel architectures, and there is no clang in PATH."
8287
exit 1
@@ -86,40 +91,31 @@ if [[ -z "$CLR_CC" ]]; then
8691
fi
8792
else
8893
desired_version="$(check_version_exists "$majorVersion" "$minorVersion")"
89-
if [[ "$desired_version" == "-1" ]]; then
94+
if [ "$desired_version" = "-1" ]; then
9095
Write-PipelineTelemetryError -category "Build" "Could not find specific version of $compiler: $majorVersion $minorVersion."
9196
exit 1
9297
fi
9398
fi
9499

95-
if [[ -z "$CC" ]]; then
96-
CC="$(command -v "$compiler$desired_version")"
97-
CXX="$(command -v "$cxxCompiler$desired_version")"
98-
if [[ -z "$CXX" ]]; then CXX="$(command -v "$cxxCompiler")"; fi
100+
if [ -z "$CC" ]; then
101+
export CC="$(command -v "$compiler$desired_version")"
102+
export CXX="$(command -v "$cxxCompiler$desired_version")"
103+
if [ -z "$CXX" ]; then export CXX="$(command -v "$cxxCompiler")"; fi
99104
fi
100105
else
101-
if [[ ! -f "$CLR_CC" ]]; then
106+
if [ ! -f "$CLR_CC" ]; then
102107
Write-PipelineTelemetryError -category "Build" "CLR_CC is set but path '$CLR_CC' does not exist"
103108
exit 1
104109
fi
105-
CC="$CLR_CC"
106-
CXX="$CLR_CXX"
110+
export CC="$CLR_CC"
111+
export CXX="$CLR_CXX"
107112
fi
108113

109-
if [[ -z "$CC" ]]; then
110-
Write-PipelineTelemetryError -category "Build" "Unable to find $compiler."
114+
if [ -z "$CC" ]; then
115+
Write-PipelineTelemetryError -category "Build" "Unable to find $compiler."
111116
exit 1
112117
fi
113118

114-
if [[ "$compiler" == "clang" ]]; then
115-
if command -v "lld$desired_version" > /dev/null; then
116-
# Only lld version >= 9 can be considered stable
117-
if [[ "$majorVersion" -ge 9 ]]; then
118-
LDFLAGS="-fuse-ld=lld"
119-
fi
120-
fi
121-
fi
122-
123-
SCAN_BUILD_COMMAND="$(command -v "scan-build$desired_version")"
124-
125-
export CC CXX LDFLAGS SCAN_BUILD_COMMAND
119+
export CCC_CC="$CC"
120+
export CCC_CXX="$CXX"
121+
export SCAN_BUILD_COMMAND="$(command -v "scan-build$desired_version")"

eng/common/templates/steps/send-to-helix.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ parameters:
2020
IncludeDotNetCli: false # optional -- true will download a version of the .NET CLI onto the Helix machine as a correlation payload; requires DotNetCliPackageType and DotNetCliVersion
2121
DotNetCliPackageType: '' # optional -- either 'sdk', 'runtime' or 'aspnetcore-runtime'; determines whether the sdk or runtime will be sent to Helix; see https://raw.githubusercontent.com/dotnet/core/main/release-notes/releases-index.json
2222
DotNetCliVersion: '' # optional -- version of the CLI to send to Helix; based on this: https://raw.githubusercontent.com/dotnet/core/main/release-notes/releases-index.json
23+
EnableXUnitReporter: false # optional -- true enables XUnit result reporting to Mission Control
2324
WaitForWorkItemCompletion: true # optional -- true will make the task wait until work items have been completed and fail the build if work items fail. False is "fire and forget."
2425
IsExternal: false # [DEPRECATED] -- doesn't do anything, jobs are external if HelixAccessToken is empty and Creator is set
2526
HelixBaseUri: 'https://helix.dot.net/' # optional -- sets the Helix API base URI (allows targeting int)
@@ -53,6 +54,7 @@ steps:
5354
IncludeDotNetCli: ${{ parameters.IncludeDotNetCli }}
5455
DotNetCliPackageType: ${{ parameters.DotNetCliPackageType }}
5556
DotNetCliVersion: ${{ parameters.DotNetCliVersion }}
57+
EnableXUnitReporter: ${{ parameters.EnableXUnitReporter }}
5658
WaitForWorkItemCompletion: ${{ parameters.WaitForWorkItemCompletion }}
5759
HelixBaseUri: ${{ parameters.HelixBaseUri }}
5860
Creator: ${{ parameters.Creator }}
@@ -83,6 +85,7 @@ steps:
8385
IncludeDotNetCli: ${{ parameters.IncludeDotNetCli }}
8486
DotNetCliPackageType: ${{ parameters.DotNetCliPackageType }}
8587
DotNetCliVersion: ${{ parameters.DotNetCliVersion }}
88+
EnableXUnitReporter: ${{ parameters.EnableXUnitReporter }}
8689
WaitForWorkItemCompletion: ${{ parameters.WaitForWorkItemCompletion }}
8790
HelixBaseUri: ${{ parameters.HelixBaseUri }}
8891
Creator: ${{ parameters.Creator }}

global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@
1616
},
1717
"msbuild-sdks": {
1818
"Microsoft.Build.NoTargets": "2.0.1",
19-
"Microsoft.DotNet.Arcade.Sdk": "7.0.0-beta.21514.3"
19+
"Microsoft.DotNet.Arcade.Sdk": "6.0.0-beta.21515.3"
2020
}
2121
}

0 commit comments

Comments
 (0)