Граф коммитов

8 Коммитов

Автор SHA1 Сообщение Дата
Rolf Bjarne Kvinge 59287e90bf
[tests] Collect info about installed XMA build agents to try to track down an installation failure. (#20134)
Collect info to try to track down this random failure:

	[...]
    [xma][info]: Uploaded Build.zip 100%
    [xma][info]: Successfully copied /tmp/Build-1.13.0.8-992eab55-04bf-44f3-b12d-df4b6ec5efb7/Build.zip
    [xma][info]: Checking integrity of uploaded file /tmp/Build-1.13.0.8-992eab55-04bf-44f3-b12d-df4b6ec5efb7/Build.zip...
    [xma][info]: Executing SSH command: '/usr/bin/shasum -a 256 "/tmp/Build-1.13.0.8-992eab55-04bf-44f3-b12d-df4b6ec5efb7/Build.zip" | awk "{ print $1 }"'
    [xma][info]: Trying to copy to '/tmp/Build-1.13.0.8-992eab55-04bf-44f3-b12d-df4b6ec5efb7/Build.zip' to cache...
    [xma][info]: Executing SSH command: 'mkdir -p "/Users/builder/Library/Caches/Xamarin/XMA/Cache"'
    [xma][info]: Executing SSH command: 'cp -f "/tmp/Build-1.13.0.8-992eab55-04bf-44f3-b12d-df4b6ec5efb7/Build.zip" "/Users/builder/Library/Caches/Xamarin/XMA/Cache/c3cbbdd25de4805022ca502605de17757ace8ffd3d5458dec1142c1f88211587"'
    [xma][info]: Successfully copied '/tmp/Build-1.13.0.8-992eab55-04bf-44f3-b12d-df4b6ec5efb7/Build.zip' to cache
    [xma][info]: Unzipping file '/tmp/Build-1.13.0.8-992eab55-04bf-44f3-b12d-df4b6ec5efb7/Build.zip' to '/Users/builder/Library/Caches/Xamarin/XMA/Agents/Build/1.13.0.8'
    [xma][info]: Executing SSH command: 'ls "/Users/builder/Library/Caches/Xamarin/XMA/Agents/Build/1.13.0.8"'
    [xma][info]: Creating directory '/Users/builder/Library/Caches/Xamarin/XMA/Agents/Build/1.13.0.8' for installation...
    [xma][info]: Executing SSH command: 'mkdir -p "/Users/builder/Library/Caches/Xamarin/XMA/Agents/Build/1.13.0.8"'
    [xma][info]: Executing SSH command: 'unzip -o "/tmp/Build-1.13.0.8-992eab55-04bf-44f3-b12d-df4b6ec5efb7/Build.zip" -d "/Users/builder/Library/Caches/Xamarin/XMA/Agents/Build/1.13.0.8"'
    [xma][info]: Executing SSH command: 'ls "/Users/builder/Library/Caches/Xamarin/XMA/Agents/Build/1.13.0.8"'
    [xma][info]: Executing SSH command: 'find "/Users/builder/Library/Caches/Xamarin/XMA/Agents/Build/1.13.0.8/" -type f | while read line ; do /usr/bin/shasum -a 256 "$line" | awk "{ print $1 }" ; done'
    [xma][warn]: Integrity check failed between source and target content. Source path: d:\azdo\_work\1\s\xamarin-macios\tests\dotnet\windows\bin\dotnet\packs\Microsoft.iOS.Windows.Sdk\17.2.8172-ci.main\tools\msbuild\iOS\Build.zip, Target path: /Users/builder/Library/Caches/Xamarin/XMA/Agents/Build/1.13.0.8
    [xma][err]: Unable to install the Agent 'Build 1.13.0.8'
    [xma][info]: An error occurred while trying to start the Build Agent. Details: Unable to install the Agent 'Build 1.13.0.8'
    exception: An error occurred while installing Build 1.13.0.8
2024-02-20 16:47:02 +01:00
Rolf Bjarne Kvinge 659122b816
[devops] Don't collect (and re-upload) binlogs from artifacts we've downloaded from previous builds. (#19964)
This fixes an issue where the zip of all the binlogs we'd collect for the
Windows test run also contained all the binlogs from all other jobs completed
at that point (because they were downloaded as artifacts).
2024-02-01 08:09:16 +01:00
Rolf Bjarne Kvinge ff516d1732
[tests] Add infrastructure to run tests on Windows that need a remote Mac. Fixes #13924. (#19927)
Also add a single test that builds a simple project remotely.

This PR might be best reviewed commit-by-commit.

Fixes https://github.com/xamarin/xamarin-macios/issues/13924.
2024-01-29 09:21:41 +01:00
Rolf Bjarne Kvinge a8bc174b26
[tests] Implement a workaround for an unreliable url to download a command-line installer for .NET. (#19212)
The documented URL for downloading a script to install .NET
(https://dot.net/v1/dotnet-install.[ps1|sh]) is rather unreliable and fails
quite often. So add support for a fallback URL - which is just the url the
documented URL redirects to - and use that if the main URL doesn't work.

Hopefully this will decrease the number of times the Windows tests fail
because we couldn't download the install script.
2023-10-16 15:08:34 +02:00
Rolf Bjarne Kvinge da23c8e488
[tests] Install workloads on Windows without checking the signature of the packages. (#18210)
Hopefully fixes:

    MSBuild version 17.4.1+9a89d02ff for .NET
    D:\AzDO\_work\_tool\dotnet\sdk\7.0.102\MSBuild.dll --property:DisableImplicitNuGetFallbackFolder=true -bl:D:\AzDO\_work\2\s/xamarin-macios/tests/dotnet/Windows/install.binlog -consoleloggerparameters:Summary -distributedlogger:Microsoft.DotNet.Tools.MSBuild.MSBuildLogger,D:\AzDO\_work\_tool\dotnet\sdk\7.0.102\dotnet.dll*Microsoft.DotNet.Tools.MSBuild.MSBuildForwardingLogger,D:\AzDO\_work\_tool\dotnet\sdk\7.0.102\dotnet.dll -maxcpucount -restore -verbosity:m -verbosity:quiet D:\AzDO\_work\2\s/xamarin-macios/tests/dotnet/Windows/InstallDotNet.csproj
    EXEC : error : NU3004: The package is not signed. [D:\AzDO\_work\2\s\xamarin-macios\tests\dotnet\Windows\InstallDotNet.csproj]
2023-05-08 11:03:18 +02:00
Manuel de la Pena 9159d0d849
[CI] Fix the windows tests in the unified pipeline. (#18196)
Add the prefixes that were missing in the csproj using the env variable
set by the pipeline.
2023-05-02 14:42:38 -04:00
Peter Collins abe065f639
[ci] Add parameter to disable classic signing (#18142)
A new parameter has been added to allow the unified pipeline to skip
classic signing jobs.

The jobs that would sign and notarize the custom workload .pkg and .zip
files have been removed, as we do not ship these anywhere and do not
need to wait on signing for them.  The `dotnet-signed` artifact has been
removed as a result, and the `not-signed-package` artifact is used in
its place.
2023-04-27 12:40:21 -04:00
Rolf Bjarne Kvinge e86c77a773
[devops] Run .NET tests with the 'Windows' category on Windows (#17796) 2023-03-22 07:49:03 +01:00