From 4cc0bde6486f0df4557bb11643d2e6ed88712a8b Mon Sep 17 00:00:00 2001 From: Rolf Bjarne Kvinge Date: Tue, 6 Sep 2022 14:05:11 +0200 Subject: [PATCH] [tests] Introspection needs more time on older macOS bots. (#15862) --- tests/packaged-macos-tests.mk | 12 +++++++----- tools/devops/automation/templates/mac/build.yml | 2 +- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/tests/packaged-macos-tests.mk b/tests/packaged-macos-tests.mk index 718d4e55a8f4..b0aa20fd9197 100644 --- a/tests/packaged-macos-tests.mk +++ b/tests/packaged-macos-tests.mk @@ -26,6 +26,8 @@ LAUNCH_ARGUMENTS=--autostart --autoexit # Time test runs out after 5 minutes (300 seconds) RUN_WITH_TIMEOUT=./run-with-timeout.sh 300 +# Some tests need a bit more time... (introspection) +RUN_WITH_TIMEOUT_LONGER=./run-with-timeout.sh 600 .stamp-configure-projects-mac: Makefile xharness/xharness.exe $(Q) $(MAKE) .stamp-xharness-configure @@ -144,7 +146,7 @@ build-mac-dotnet-x64-$(1): .stamp-dotnet-dependency-macOS exec-mac-dotnet-x64-$(1): @echo "ℹ️ Executing the '$(1)' test for macOS/.NET (x64) ℹ️" - $$(Q) $(RUN_WITH_TIMEOUT) "./$(1)/dotnet/macOS/bin/$(CONFIG)/$(DOTNET_TFM)-macos/osx-x64/$(2).app/Contents/MacOS/$(2)" + $$(Q) $(RUN_WITH_TIMEOUT$(3)) "./$(1)/dotnet/macOS/bin/$(CONFIG)/$(DOTNET_TFM)-macos/osx-x64/$(2).app/Contents/MacOS/$(2)" # macOS/.NET/arm64 build-mac-dotnet-arm64-$(1): .stamp-dotnet-dependency-macOS @@ -153,7 +155,7 @@ build-mac-dotnet-arm64-$(1): .stamp-dotnet-dependency-macOS exec-mac-dotnet-arm64-$(1): ifeq ($(IS_APPLE_SILICON),1) @echo "ℹ️ Executing the '$(1)' test for macOS/.NET (arm64) ℹ️" - $$(Q) $(RUN_WITH_TIMEOUT) "./$(1)/dotnet/macOS/bin/$(CONFIG)/$(DOTNET_TFM)-macos/osx-arm64/$(2).app/Contents/MacOS/$(2)" + $$(Q) $(RUN_WITH_TIMEOUT$(3)) "./$(1)/dotnet/macOS/bin/$(CONFIG)/$(DOTNET_TFM)-macos/osx-arm64/$(2).app/Contents/MacOS/$(2)" else @echo "⚠️ Not executing the '$(1)' test for macOS/.NET (arm64) - not executing on Apple Silicon ⚠️" endif @@ -165,7 +167,7 @@ build-maccatalyst-dotnet-x64-$(1): .stamp-dotnet-dependency-MacCatalyst exec-maccatalyst-dotnet-x64-$(1): ifeq ($(SUPPORTS_MACCATALYST),1) @echo "ℹ️ Executing the '$(1)' test for Mac Catalyst/.NET (x64) ℹ️" - $$(Q) $(RUN_WITH_TIMEOUT) "./$(1)/dotnet/MacCatalyst/bin/$(CONFIG)/$(DOTNET_TFM)-maccatalyst/maccatalyst-x64/$(2).app/Contents/MacOS/$(2)" $(LAUNCH_ARGUMENTS) + $$(Q) $(RUN_WITH_TIMEOUT$(3)) "./$(1)/dotnet/MacCatalyst/bin/$(CONFIG)/$(DOTNET_TFM)-maccatalyst/maccatalyst-x64/$(2).app/Contents/MacOS/$(2)" $(LAUNCH_ARGUMENTS) else @echo "⚠️ Not executing the '$(1)' test for Mac Catalyst/.NET (x64) - macOS version $(MACOS_VERSION) is too old ⚠️" endif @@ -177,7 +179,7 @@ build-maccatalyst-dotnet-arm64-$(1):.stamp-dotnet-dependency-MacCatalyst exec-maccatalyst-dotnet-arm64-$(1): ifeq ($(IS_APPLE_SILICON),1) @echo "ℹ️ Executing the '$(1)' test for Mac Catalyst/.NET (arm64) ℹ️" - $$(Q) $(RUN_WITH_TIMEOUT) "./$(1)/dotnet/MacCatalyst/bin/$(CONFIG)/$(DOTNET_TFM)-maccatalyst/maccatalyst-arm64/$(2).app/Contents/MacOS/$(2)" $(LAUNCH_ARGUMENTS) + $$(Q) $(RUN_WITH_TIMEOUT$(3)) "./$(1)/dotnet/MacCatalyst/bin/$(CONFIG)/$(DOTNET_TFM)-maccatalyst/maccatalyst-arm64/$(2).app/Contents/MacOS/$(2)" $(LAUNCH_ARGUMENTS) else @echo "⚠️ Not executing the '$(1)' test for Mac Catalyst/.NET (arm64) - not executing on Apple Silicon ⚠️" endif @@ -202,7 +204,7 @@ exec-$(1): endef $(eval $(call DotNetNormalTest,monotouch-test,monotouchtest)) -$(eval $(call DotNetNormalTest,introspection,introspection)) +$(eval $(call DotNetNormalTest,introspection,introspection,_LONGER)) ### .NET linker tests diff --git a/tools/devops/automation/templates/mac/build.yml b/tools/devops/automation/templates/mac/build.yml index c1c7dab6ced3..dcf603962eee 100644 --- a/tools/devops/automation/templates/mac/build.yml +++ b/tools/devops/automation/templates/mac/build.yml @@ -239,7 +239,7 @@ steps: # yet we do have some flacky ones, this will allow the release to run. The comment will let use know that we failed exit 0 displayName: 'Run tests' - timeoutInMinutes: 45 + timeoutInMinutes: 60 env: CONTEXT: ${{ parameters.statusContext }} BUILD_REVISION: $(Build.SourceVersion)