Closed
Description
We talked about this in a previous issue; unfortunately I'm still getting constant timeouts in various of my CI/CD scripts. I do not find any pattern on why this happens in some scripts but not in others.
ERROR: Job failed: execution took longer than 1h0m0s seconds
This is the full log output of one CI/CD build script on my GitLab:
Running with gitlab-runner 17.6.0 (374d34fd)
on Ubuntu Runner 1 zxzou4dy, system ID: r_tGfUWxM[2](https://git.zeta-sw.com/zeta/zeta-short-paths/-/jobs/12474#L2)3pdD
Preparing the "docker" executor
00:01
Using Docker executor with image mcr.microsoft.com/dotnet/sdk:8.0 ...
Pulling docker image mcr.microsoft.com/dotnet/sdk:8.0 ...
Using docker image sha256:2afc0eb4[3](https://git.zeta-sw.com/zeta/zeta-short-paths/-/jobs/12474#L3)f0fec997bb229e445c434a4f092cc1af72de5681b9d597a8cd6652f for mcr.microsoft.com/dotnet/sdk:8.0 with digest mcr.microsoft.com/dotnet/sdk@sha256:032381bcea86fa0a[4](https://git.zeta-sw.com/zeta/zeta-short-paths/-/jobs/12474#L4)08af5df63a930f1ff5b03116c940a7cd744d3b648e66749 ...
Preparing environment
00:00
Running on runner-zxzou4dy-project-97-concurrent-0 via 637c00b0000b...
Getting source from Git repository
00:01
Fetching changes with git depth set to [5](https://git.zeta-sw.com/zeta/zeta-short-paths/-/jobs/12474#L5)0...
Reinitialized existing Git repository in /builds/zeta/zeta-short-paths/.git/
Checking out 410a2f3c as detached HEAD (ref is main)...
Removing Source/.nuget/
Removing Source/Runtime/bin/
Removing Source/Runtime/obj/
Removing Source/UnitTests/bin/
Removing Source/UnitTests/obj/
Removing Source/nul
Removing nul
Updating/initializing submodules recursively with git depth set to 1...
Synchronizing submodule url for '_References/Submodules/zeta-shared-ci-assets'
Entering '_References/Submodules/zeta-shared-ci-assets'
Entering '_References/Submodules/zeta-shared-ci-assets'
HEAD is now at 821b11e Merge branch 'main' of https://git.zeta-sw.com/zeta/zeta-shared-ci-assets
Submodule path '_References/Submodules/zeta-shared-ci-assets': checked out '2fba[6](https://git.zeta-sw.com/zeta/zeta-short-paths/-/jobs/12474#L6)2a64c2a1e4db9b299611135e01760bc1710'
Updated submodules
Synchronizing submodule url for '_References/Submodules/zeta-shared-ci-assets'
Entering '_References/Submodules/zeta-shared-ci-assets'
Entering '_References/Submodules/zeta-shared-ci-assets'
Restoring cache
00:00
Checking cache for build-main-protected...
No URL provided, cache will not be downloaded from shared cache server. Instead a local version of cache will be extracted.
Successfully extracted cache
Executing "step_script" stage of the job script
59:58
Using docker image sha256:2afc0eb43f0fec99[7](https://git.zeta-sw.com/zeta/zeta-short-paths/-/jobs/12474#L7)bb229e445c434a4f092cc1af72de56[8](https://git.zeta-sw.com/zeta/zeta-short-paths/-/jobs/12474#L8)1b9d597a8cd6652f for mcr.microsoft.com/dotnet/sdk:8.0 with digest mcr.microsoft.com/dotnet/sdk@sha256:032381bcea86fa0a408af5df63a[9](https://git.zeta-sw.com/zeta/zeta-short-paths/-/jobs/12474#L9)30f1ff5b03116c940a7cd744d3b648e66749 ...
$ dotnet nuget remove source "$GITLAB_ZETA_NUGET_NAME" >nul || exit_code=$?
$ dotnet nuget add source $GITLAB_ZETA_NUGET_URL -n "$GITLAB_ZETA_NUGET_NAME" -u $GITLAB_ZETA_NUGET_USER -p $GITLAB_ZETA_NUGET_PASSWORD --store-password-in-clear-text >nul
$ dotnet nuget remove source "DevExpress Uwe" >nul || exit_code=$?
$ dotnet nuget add source "https://nuget.devexpress.com/$DEVEXPRESS_NUGETKEY_UWEKEIM/api" -n "DevExpress Uwe"
Package source with Name: DevExpress Uwe added successfully.
$ cd $SOURCE_CODE_PATH
$ dotnet restore --packages $NUGET_PACKAGES_DIRECTORY
Determining projects to restore...
Restored /builds/zeta/zeta-short-paths/Source/Runtime/Runtime.csproj (in 753 ms).
Restored /builds/zeta/zeta-short-paths/Source/UnitTests/UnitTests.csproj (in 2.5 sec).
$ dotnet tool install --global cs-script.cli
Tools directory '/root/.dotnet/tools' is not currently on the PATH environment variable.
If you are using bash, you can add it to your profile by running the following command:
cat << \EOF >> ~/.bash_profile
# Add .NET Core SDK tools
export PATH="$PATH:/root/.dotnet/tools"
EOF
You can add it to the current session by running the following command:
export PATH="$PATH:/root/.dotnet/tools"
You can invoke the tool using the following command: css
Tool 'cs-script.cli' (version '4.8.[23](https://git.zeta-sw.com/zeta/zeta-short-paths/-/jobs/12474#L23)') was successfully installed.
$ dotnet tool update --global cs-script.cli
Tools directory '/root/.dotnet/tools' is not currently on the PATH environment variable.
If you are using bash, you can add it to your profile by running the following command:
cat << \EOF >> ~/.bash_profile
# Add .NET Core SDK tools
export PATH="$PATH:/root/.dotnet/tools"
EOF
You can add it to the current session by running the following command:
export PATH="$PATH:/root/.dotnet/tools"
Tool 'cs-script.cli' was reinstalled with the stable version (version '4.8.23').
$ ~/.dotnet/tools/css -config:set:LegacyNugetSupport=false
set: LegacyNugetSupport: False
$ ~/.dotnet/tools/css ${CI_PROJECT_DIR}/Source/cicd-increase-versionnumber.cs
Restoring packages...
morelinq
Newtonsoft.Json
NuGet.Versioning
RestSharp
SharpZipLib
ZetaDeployer.RuntimeUploader
ZetaShortPaths
Mapping packages to assemblies...
Restoring packages...
morelinq
Newtonsoft.Json
NuGet.Versioning
RestSharp
SharpZipLib
ZetaDeployer.RuntimeUploader
ZetaShortPaths
Mapping packages to assemblies...
WARNING: step_script could not run to completion because the timeout was exceeded. For more control over job and script timeouts see: https://docs.gitlab.com/ee/ci/runners/configure_runners.html#set-script-and-after_script-timeouts
ERROR: Job failed: execution took longer than 1h0m0s seconds
My question:
Do you have any idea what might be the issue here?
It startet happening when .NET 9 came out and the Docker image uses the .NET 9 SDK.