Skip to content

Instantly share code, notes, and snippets.

@pmuir
Created July 10, 2019 13:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pmuir/9543ade94b2e021191cf4f4bd2a8eb87 to your computer and use it in GitHub Desktop.
Save pmuir/9543ade94b2e021191cf4f4bd2a8eb87 to your computer and use it in GitHub Desktop.
=== Failed
=== FAIL: pkg/cmd/step/scheduler TestStepSchedulerConfigMigrateNonGitopsAdvanced (0.09s)
Loading prow config from file test_data/step_scheduler_config_migrate/nongitops_advanced/config.yaml
Loading prow plugins from file test_data/step_scheduler_config_migrate/nongitops_advanced/plugins.yaml
Building scheduler resources from prow config
Verifying generated config
step_scheduler_config_migrate_test.go:56:
Error Trace: step_scheduler_config_migrate_test.go:56
Error: Received unexpected error:
Migrated Prow config do not match, not applying!
Diff:
Sort({*config.Config}.ProwConfig.Tide.ContextOptions.TideContextPolicy.RequiredContexts)[0->?]:
-: "Hound"
+: <non-existent>
Sort({*config.Config}.ProwConfig.Tide.ContextOptions.TideContextPolicy.RequiredContexts)[1->?]:
-: "bdd"
+: <non-existent>
Sort({*config.Config}.ProwConfig.Tide.ContextOptions.TideContextPolicy.RequiredContexts)[2->?]:
-: "integration"
+: <non-existent>
Sort({*config.Config}.ProwConfig.Tide.ContextOptions.TideContextPolicy.RequiredContexts)[3->?]:
-: "lint"
+: <non-existent>
{*config.Config}.ProwConfig.Tide.ContextOptions.TideContextPolicy.RequiredIfPresentContexts:
-: []string{"images"}
+: []string(nil)
Sort({*config.Config}.ProwConfig.Tide.ContextOptions.TideContextPolicy.OptionalContexts)[0->?]:
-: "codecov/patch"
+: <non-existent>
Sort({*config.Config}.ProwConfig.Tide.ContextOptions.TideContextPolicy.OptionalContexts)[1->?]:
-: "codecov/project"
+: <non-existent>
github.com/jenkins-x/jx/pkg/pipelinescheduler.CreateSchedulersFromProwConfig
/workspace/source/pkg/pipelinescheduler/generator.go:182
github.com/jenkins-x/jx/pkg/cmd/step/scheduler.(*StepSchedulerConfigMigrateOptions).Run
/workspace/source/pkg/cmd/step/scheduler/step_scheduler_config_migrate.go:94
github.com/jenkins-x/jx/pkg/cmd/step/scheduler_test.TestStepSchedulerConfigMigrateNonGitopsAdvanced
/workspace/source/pkg/cmd/step/scheduler/step_scheduler_config_migrate_test.go:55
testing.tRunner
/usr/local/go/src/testing/testing.go:865
runtime.goexit
/usr/local/go/src/runtime/asm_amd64.s:1337
generating Prow config
github.com/jenkins-x/jx/pkg/cmd/step/scheduler.(*StepSchedulerConfigMigrateOptions).Run
/workspace/source/pkg/cmd/step/scheduler/step_scheduler_config_migrate.go:96
github.com/jenkins-x/jx/pkg/cmd/step/scheduler_test.TestStepSchedulerConfigMigrateNonGitopsAdvanced
/workspace/source/pkg/cmd/step/scheduler/step_scheduler_config_migrate_test.go:55
testing.tRunner
/usr/local/go/src/testing/testing.go:865
runtime.goexit
/usr/local/go/src/runtime/asm_amd64.s:1337
Test: TestStepSchedulerConfigMigrateNonGitopsAdvanced
step_scheduler_config_migrate_test.go:91:
Error Trace: step_scheduler_config_migrate_test.go:91
step_scheduler_config_migrate_test.go:59
Error: Not equal:
Test: TestStepSchedulerConfigMigrateNonGitopsAdvanced
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment