Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add timeouts to fail faster #412

Merged
merged 2 commits into from
Sep 11, 2024

Increase timeout

3bcc4b3
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

Add timeouts to fail faster #412

Increase timeout
3bcc4b3
Select commit
Loading
Failed to load commit list.
GitHub Actions / Test results succeeded Sep 11, 2024 in 1s

112 passed, 0 failed and 6 skipped

Tests passed successfully

✅ Source/Bake.Tests/TestResults/_fv-az1210-606_2024-09-11_07_15_18.trx

118 tests were completed in 243s with 112 passed, 0 failed and 6 skipped.

Test suite Passed Failed Skipped Time
Bake.Tests.ExplicitTests.GitHubReleaseCookTests 1⚪ 7ms
Bake.Tests.ExplicitTests.GitHubTests 3⚪ 0ms
Bake.Tests.IntegrationTests.BakeTests.DockerFileSimpleTests 2✅ 3s
Bake.Tests.IntegrationTests.BakeTests.GoLangServiceTests 1✅ 47s
Bake.Tests.IntegrationTests.BakeTests.HelmChartTests 5✅ 7s
Bake.Tests.IntegrationTests.BakeTests.MkDocsSimple 1✅ 17s
Bake.Tests.IntegrationTests.BakeTests.NetCoreConsoleTests 17✅ 99s
Bake.Tests.IntegrationTests.BakeTests.NetCorePackageTests 1✅ 6s
Bake.Tests.IntegrationTests.BakeTests.NetCoreServiceTests 1✅ 8s
Bake.Tests.IntegrationTests.BakeTests.NetV8ServiceTests 1✅ 9s
Bake.Tests.IntegrationTests.BakeTests.NodeJSService 1✅ 10s
Bake.Tests.IntegrationTests.BakeTests.Python3FlaskTests 1✅ 37s
Bake.Tests.IntegrationTests.ServiceTests.DotNetComposerServiceTests 1✅ 173ms
Bake.Tests.IntegrationTests.ServiceTests.GitHubTests 1⚪ 0ms
Bake.Tests.LicenseHeader 1⚪ 0ms
Bake.Tests.UnitTests.Commands.CommandFactoryTests 2✅ 21ms
Bake.Tests.UnitTests.Cooking.Ingredients.Gathers.ReleaseNotesGatherTests 3✅ 19ms
Bake.Tests.UnitTests.Core.CredentialsTests 1✅ 3ms
Bake.Tests.UnitTests.Core.EnvironmentVariablesTests 1✅ 4ms
Bake.Tests.UnitTests.Core.FileSystemTests 1✅ 4ms
Bake.Tests.UnitTests.Core.GitRemoteParserTests 2✅ 1ms
Bake.Tests.UnitTests.Core.NuGetConfigurationTests 1✅ 8ms
Bake.Tests.UnitTests.Core.SemVerTests 14✅ 2ms
Bake.Tests.UnitTests.Extensions.StringExtensionsTests 3✅ 1ms
Bake.Tests.UnitTests.Ingredients.Gathers.GitHubGatherTests 3✅ 7ms
Bake.Tests.UnitTests.Services.BakeProjectParserTests 1✅ 3ms
Bake.Tests.UnitTests.Services.ChangeLogBuilderTests 1✅ 28ms
Bake.Tests.UnitTests.Services.ComposerOrderingTests 2✅ 49ms
Bake.Tests.UnitTests.Services.ContainerTagParserTests 7✅ 4ms
Bake.Tests.UnitTests.Services.CsProjParserTests 1✅ 5ms
Bake.Tests.UnitTests.Services.DescriptionLimiterTests 4✅ 5ms
Bake.Tests.UnitTests.Services.DestinationParserTests 9✅ 5ms
Bake.Tests.UnitTests.Services.DotNetTfmParserTests 8✅ 5ms
Bake.Tests.UnitTests.Services.GoModParserTests 8✅ 4ms
Bake.Tests.UnitTests.Services.PlatformParserTests 2✅ 6ms
Bake.Tests.UnitTests.Services.ReleaseNotesParserTests 1✅ 3ms
Bake.Tests.UnitTests.Services.RunnerFactoryTests 1✅ 19ms
Bake.Tests.UnitTests.Services.YamlTests 4✅ 8ms

✅ Bake.Tests.ExplicitTests.GitHubReleaseCookTests

⚪ CreateRelease

✅ Bake.Tests.ExplicitTests.GitHubTests

⚪ GetCommits
⚪ GetPullRequest_NonExisting
⚪ GetPullRequests

✅ Bake.Tests.IntegrationTests.BakeTests.DockerFileSimpleTests

✅ NamedDockerfile
✅ Run

✅ Bake.Tests.IntegrationTests.BakeTests.GoLangServiceTests

✅ Run

✅ Bake.Tests.IntegrationTests.BakeTests.HelmChartTests

✅ PushToChartMuseum
✅ PushToOctopusDeploy("bake_credentials_octopusdeploy_apikey")
✅ PushToOctopusDeploy("bake_credentials_octopusdeploy_localhost_apikey")
✅ PushToOctopusDeploy("octopus_deploy_apikey")
✅ Run

✅ Bake.Tests.IntegrationTests.BakeTests.MkDocsSimple

✅ Run

✅ Bake.Tests.IntegrationTests.BakeTests.NetCoreConsoleTests

✅ BasicArgsTest("--help")
✅ BasicArgsTest("--version")
✅ BasicArgsTest("-?")
✅ BasicArgsTest("-h")
✅ BasicArgsTest("-v")
✅ BasicArgsTest("apply","--help")
✅ BasicArgsTest("plan","--help")
✅ BasicArgsTest("run","--help")
✅ ExitCodeTests(257)
✅ Minimal
✅ PlanThenApply(Debug)
✅ PlanThenApply(Error)
✅ PlanThenApply(Fatal)
✅ PlanThenApply(Information)
✅ PlanThenApply(Verbose)
✅ PlanThenApply(Warning)
✅ Run

✅ Bake.Tests.IntegrationTests.BakeTests.NetCorePackageTests

✅ Run

✅ Bake.Tests.IntegrationTests.BakeTests.NetCoreServiceTests

✅ Run

✅ Bake.Tests.IntegrationTests.BakeTests.NetV8ServiceTests

✅ Run

✅ Bake.Tests.IntegrationTests.BakeTests.NodeJSService

✅ Run

✅ Bake.Tests.IntegrationTests.BakeTests.Python3FlaskTests

✅ Run

✅ Bake.Tests.IntegrationTests.ServiceTests.DotNetComposerServiceTests

✅ TestIt

✅ Bake.Tests.IntegrationTests.ServiceTests.GitHubTests

⚪ GetPullRequestInformationAsync

✅ Bake.Tests.LicenseHeader

⚪ UpdateHeaders

✅ Bake.Tests.UnitTests.Commands.CommandFactoryTests

✅ TestCreation
✅ ThrowException

✅ Bake.Tests.UnitTests.Cooking.Ingredients.Gathers.ReleaseNotesGatherTests

✅ PickExpectedVersion("1.0.129","1.1,1.0-alpha,0.9","1.0-alpha")
✅ PickExpectedVersion("1.0.129","1.1,1.0,0.9","1.0")
✅ PickExpectedVersion("1.0","1.1,1.0,0.9","1.0")

✅ Bake.Tests.UnitTests.Core.CredentialsTests

✅ GetNuGetApiKeyAsync("http://localhost:5555/v3/index.json","bake_credentials_nuget_localhost_apikey","acd0b30512ac4fa39f62eb7a61fcf56c")

✅ Bake.Tests.UnitTests.Core.EnvironmentVariablesTests

✅ GetAsync

✅ Bake.Tests.UnitTests.Core.FileSystemTests

✅ FindFilesAsync

✅ Bake.Tests.UnitTests.Core.GitRemoteParserTests

✅ TryParse("[email protected]:rasmus/Bake.git","git","github.com","/rasmus/Bake.git")
✅ TryParse("https://github.com/rasmus/Bake.git","https","github.com","/rasmus/Bake.git")

✅ Bake.Tests.UnitTests.Core.NuGetConfigurationTests

✅ GenerateAsync

✅ Bake.Tests.UnitTests.Core.SemVerTests

✅ Compare("0.0.1 0.1.0 1.0.0","1.0.0","0.0.1","0.1.0")
✅ Compare("1.0 1.0-alpha","1.0","1.0-alpha")
✅ Compare("1.0.0 1.1.0 1.1.1","1.1.1","1.0.0","1.1.0")
✅ IsSubset("1.2.0","1.2.0",True)
✅ IsSubset("1.2.1","1.2.0",False)
✅ IsSubset("1.2","1.2.0",True)
✅ IsSubset("1.2","1.2.5",True)
✅ IsSubset("2.1.1","1.2.1",False)
✅ ValidVersions("1.2.3-meta",1,2,3,"meta")
✅ ValidVersions("1.2",1,2,null,null)
✅ ValidVersions("3",3,null,null,null)
✅ ValidVersions("321.231.132-magic",321,231,132,"magic")
✅ ValidVersions("v1.2.3",1,2,3,null)
✅ ValidVersions("version 1.2.3",1,2,3,null)

✅ Bake.Tests.UnitTests.Extensions.StringExtensionsTests

✅ ToSlug("abc","abc")
✅ ToSlug("æøå","aoa")
✅ ToSlug("kjcasd )=(/=)(/& cadsÆØÅÆhcadjskchj/(/7856","kjcasd-cadsaoaahcadjskchj-7856")

✅ Bake.Tests.UnitTests.Ingredients.Gathers.GitHubGatherTests

✅ Verify("https://github.com/rasmus/Bake.git","rasmus","Bake","https://api.github.com/")
✅ Verify("https://github.com/rasmus/Bake","rasmus","Bake","https://api.github.com/")
✅ Verify("https://github.schibsted.com/rasmus-mikkelsen/Bake","rasmus-mikkelsen","Bake","https://github.schibsted.com/api/v3")

✅ Bake.Tests.UnitTests.Services.BakeProjectParserTests

✅ SimpleCase

✅ Bake.Tests.UnitTests.Services.ChangeLogBuilderTests

✅ Build

✅ Bake.Tests.UnitTests.Services.ComposerOrderingTests

✅ BasicOrdering
✅ Current

✅ Bake.Tests.UnitTests.Services.ContainerTagParserTests

✅ SuccessTryParse("containers.example.org/my-org/my-path/somecontainer:v1.2.3","containers.example.org","my-org/my-path","somecontainer","v1.2.3")
✅ SuccessTryParse("localhost:5000/path/image","localhost:5000","path","image","latest")
✅ SuccessTryParse("localhost/image:2","localhost","","image","2")
✅ SuccessTryParse("localhost/image:v1.2.3","localhost","","image","v1.2.3")
✅ SuccessTryParse("localhost/path/image:2","localhost","path","image","2")
✅ SuccessTryParse("registry:2","","","registry","2")
✅ SuccessTryParse("registry","","","registry","latest")

✅ Bake.Tests.UnitTests.Services.CsProjParserTests

✅ IsTool

✅ Bake.Tests.UnitTests.Services.DescriptionLimiterTests

✅ CutsAtHeadline
✅ CutsAtHeadlineSimple
✅ Fallback
✅ LessThanMaxIsAccepted

✅ Bake.Tests.UnitTests.Services.DestinationParserTests

✅ DockerRegistry("container>localhost:5000","localhost:5000/")
✅ DockerRegistry("container>localhost:5000/","localhost:5000/")
✅ DockerRegistry("container>rasmus","rasmus/")
✅ Dynamics("container>github","container","github")
✅ Dynamics("nuget>github","nuget","github")
✅ Dynamics("release>github","release","github")
✅ HelmChart("helm-chart>octopus@https://localhost:4321/","https://localhost:4321/")
✅ NuGetRegistry("nuget","https://api.nuget.org/v3/index.json")
✅ NuGetRegistry("nuget>http://localhost:5555/v3/index.json","http://localhost:5555/v3/index.json")

✅ Bake.Tests.UnitTests.Services.DotNetTfmParserTests

✅ Success("net35","3.5.0",NetFramework)
✅ Success("net403","4.0.3",NetFramework)
✅ Success("net452","4.5.2",NetFramework)
✅ Success("net48","4.8.0",NetFramework)
✅ Success("net5.0","5.0.0",Net)
✅ Success("netcoreapp2.0","2.0.0",Net)
✅ Success("netcoreapp3.1","3.1.0",Net)
✅ Success("netstandard2.1","2.1.0",NetStandard)

✅ Bake.Tests.UnitTests.Services.GoModParserTests

✅ Success("module example.com/mymodule","mymodule","")
✅ Success("module example.com/mymodule/v2","mymodule","2")
✅ Success("module example.com/path/my.module/v2","my.module","2")
✅ Success("module example.com/path/mymodule/v2","mymodule","2")
✅ Success("module my-module/v3","my-module","3")
✅ Success("module my.module/v3","my.module","3")
✅ Success("module mymodule","mymodule","")
✅ Success("module mymodule/v3","mymodule","3")

✅ Bake.Tests.UnitTests.Services.PlatformParserTests

✅ Success("linux/x64",Linux,Intel64)
✅ Success("win/x86",Windows,Intel32)

✅ Bake.Tests.UnitTests.Services.ReleaseNotesParserTests

✅ CanParse

✅ Bake.Tests.UnitTests.Services.RunnerFactoryTests

✅ ReadStdOut

✅ Bake.Tests.UnitTests.Services.YamlTests

✅ DeserializeSemVer("1.2.3")
✅ Recipe
✅ Recipes
✅ SerializeSemVer("1.2.3")