? github.com/argoproj/gitops-engine [no test files]
? github.com/argoproj/gitops-engine/agent [no test files]
time="2020-06-03T13:37:40+09:00" level=info msg="Start syncing cluster" server="https://test"
==================
WARNING: DATA RACE
Write at 0x00c000456ca0 by goroutine 31:
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).sync.func1.1()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:548 +0x3a8
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).processApi()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:479 +0x2cc
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).sync.func1()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:536 +0x430
github.com/argoproj/gitops-engine/pkg/utils/kube.RunAllAsync.func1()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/utils/kube/ctl.go:510 +0x45
golang.org/x/sync/errgroup.(*Group).Go.func1()
/Users/d-kuro/go/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:57 +0x85
Previous write at 0x00c000456ca0 by goroutine 30:
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).sync.func1.1()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:548 +0x3a8
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).processApi()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:479 +0x2cc
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).sync.func1()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:536 +0x430
github.com/argoproj/gitops-engine/pkg/utils/kube.RunAllAsync.func1()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/utils/kube/ctl.go:510 +0x45
golang.org/x/sync/errgroup.(*Group).Go.func1()
/Users/d-kuro/go/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:57 +0x85
Goroutine 31 (running) created at:
golang.org/x/sync/errgroup.(*Group).Go()
/Users/d-kuro/go/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:54 +0x73
github.com/argoproj/gitops-engine/pkg/utils/kube.RunAllAsync()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/utils/kube/ctl.go:509 +0x1a1
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).sync()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:526 +0x98b
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).EnsureSynced()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:592 +0xe9
github.com/argoproj/gitops-engine/pkg/cache.TestEnsureSynced()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster_test.go:140 +0xe2
testing.tRunner()
/Users/d-kuro/sdk/go1.14.4/src/testing/testing.go:991 +0x1eb
Goroutine 30 (finished) created at:
golang.org/x/sync/errgroup.(*Group).Go()
/Users/d-kuro/go/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:54 +0x73
github.com/argoproj/gitops-engine/pkg/utils/kube.RunAllAsync()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/utils/kube/ctl.go:509 +0x1a1
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).sync()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:526 +0x98b
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).EnsureSynced()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:592 +0xe9
github.com/argoproj/gitops-engine/pkg/cache.TestEnsureSynced()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster_test.go:140 +0xe2
testing.tRunner()
/Users/d-kuro/sdk/go1.14.4/src/testing/testing.go:991 +0x1eb
==================
==================
WARNING: DATA RACE
Write at 0x00c000456ca0 by goroutine 32:
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).sync.func1.1()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:548 +0x3a8
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).processApi()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:479 +0x2cc
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).sync.func1()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:536 +0x430
github.com/argoproj/gitops-engine/pkg/utils/kube.RunAllAsync.func1()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/utils/kube/ctl.go:510 +0x45
golang.org/x/sync/errgroup.(*Group).Go.func1()
/Users/d-kuro/go/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:57 +0x85
Previous write at 0x00c000456ca0 by goroutine 30:
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).sync.func1.1()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:548 +0x3a8
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).processApi()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:479 +0x2cc
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).sync.func1()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:536 +0x430
github.com/argoproj/gitops-engine/pkg/utils/kube.RunAllAsync.func1()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/utils/kube/ctl.go:510 +0x45
golang.org/x/sync/errgroup.(*Group).Go.func1()
/Users/d-kuro/go/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:57 +0x85
Goroutine 32 (running) created at:
golang.org/x/sync/errgroup.(*Group).Go()
/Users/d-kuro/go/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:54 +0x73
github.com/argoproj/gitops-engine/pkg/utils/kube.RunAllAsync()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/utils/kube/ctl.go:509 +0x1a1
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).sync()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:526 +0x98b
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).EnsureSynced()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:592 +0xe9
github.com/argoproj/gitops-engine/pkg/cache.TestEnsureSynced()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster_test.go:140 +0xe2
testing.tRunner()
/Users/d-kuro/sdk/go1.14.4/src/testing/testing.go:991 +0x1eb
Goroutine 30 (finished) created at:
golang.org/x/sync/errgroup.(*Group).Go()
/Users/d-kuro/go/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:54 +0x73
github.com/argoproj/gitops-engine/pkg/utils/kube.RunAllAsync()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/utils/kube/ctl.go:509 +0x1a1
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).sync()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:526 +0x98b
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).EnsureSynced()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:592 +0xe9
github.com/argoproj/gitops-engine/pkg/cache.TestEnsureSynced()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster_test.go:140 +0xe2
testing.tRunner()
/Users/d-kuro/sdk/go1.14.4/src/testing/testing.go:991 +0x1eb
==================
time="2020-06-03T13:37:40+09:00" level=info msg="Cluster successfully synced" server="https://test"
--- FAIL: TestEnsureSynced (0.00s)
testing.go:906: race detected during execution of test
time="2020-06-03T13:37:40+09:00" level=info msg="Start syncing cluster" server="https://test"
==================
WARNING: DATA RACE
Write at 0x00c0003752c0 by goroutine 38:
runtime.mapassign()
/Users/d-kuro/sdk/go1.14.4/src/runtime/map.go:571 +0x0
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).setNode()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:300 +0x140
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).onNodeUpdated()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:751 +0x66
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).replaceResourceCache()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:209 +0x3a3
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).watchEvents.func1.2()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:414 +0x708
github.com/argoproj/gitops-engine/pkg/cache.runSynced()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:382 +0x8c
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).watchEvents.func1()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:393 +0x219
github.com/argoproj/gitops-engine/pkg/utils/kube.RetryUntilSucceed()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/utils/kube/kube.go:384 +0x2c6
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).watchEvents()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:386 +0x20f
Previous read at 0x00c0003752c0 by goroutine 29:
reflect.maplen()
/Users/d-kuro/sdk/go1.14.4/src/runtime/map.go:1351 +0x0
reflect.Value.Len()
/Users/d-kuro/sdk/go1.14.4/src/reflect/value.go:1132 +0x2f1
github.com/stretchr/testify/assert.getLen()
/Users/d-kuro/go/pkg/mod/github.com/stretchr/[email protected]/assert/assertions.go:575 +0xda
github.com/stretchr/testify/assert.Len()
/Users/d-kuro/go/pkg/mod/github.com/stretchr/[email protected]/assert/assertions.go:586 +0x9c
github.com/argoproj/gitops-engine/pkg/cache.TestEnsureSynced()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster_test.go:143 +0x1a0
testing.tRunner()
/Users/d-kuro/sdk/go1.14.4/src/testing/testing.go:991 +0x1eb
Goroutine 38 (running) created at:
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).sync.func1.1()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:563 +0x69d
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).processApi()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:479 +0x2cc
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).sync.func1()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:536 +0x430
github.com/argoproj/gitops-engine/pkg/utils/kube.RunAllAsync.func1()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/utils/kube/ctl.go:510 +0x45
golang.org/x/sync/errgroup.(*Group).Go.func1()
/Users/d-kuro/go/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:57 +0x85
Goroutine 29 (finished) created at:
testing.(*T).Run()
/Users/d-kuro/sdk/go1.14.4/src/testing/testing.go:1042 +0x660
testing.runTests.func1()
/Users/d-kuro/sdk/go1.14.4/src/testing/testing.go:1284 +0xa6
testing.tRunner()
/Users/d-kuro/sdk/go1.14.4/src/testing/testing.go:991 +0x1eb
testing.runTests()
/Users/d-kuro/sdk/go1.14.4/src/testing/testing.go:1282 +0x527
testing.(*M).Run()
/Users/d-kuro/sdk/go1.14.4/src/testing/testing.go:1199 +0x2ff
main.main()
_testmain.go:76 +0x223
==================
==================
WARNING: DATA RACE
Write at 0x00c000254bb0 by goroutine 47:
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).sync.func1.1()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:548 +0x3a8
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).processApi()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:487 +0x1dc
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).sync.func1()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:536 +0x430
github.com/argoproj/gitops-engine/pkg/utils/kube.RunAllAsync.func1()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/utils/kube/ctl.go:510 +0x45
golang.org/x/sync/errgroup.(*Group).Go.func1()
/Users/d-kuro/go/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:57 +0x85
Previous write at 0x00c000254bb0 by goroutine 46:
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).sync.func1.1()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:548 +0x3a8
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).processApi()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:487 +0x1dc
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).sync.func1()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:536 +0x430
github.com/argoproj/gitops-engine/pkg/utils/kube.RunAllAsync.func1()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/utils/kube/ctl.go:510 +0x45
golang.org/x/sync/errgroup.(*Group).Go.func1()
/Users/d-kuro/go/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:57 +0x85
Goroutine 47 (running) created at:
golang.org/x/sync/errgroup.(*Group).Go()
/Users/d-kuro/go/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:54 +0x73
github.com/argoproj/gitops-engine/pkg/utils/kube.RunAllAsync()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/utils/kube/ctl.go:509 +0x1a1
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).sync()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:526 +0x98b
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).EnsureSynced()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:592 +0xe9
github.com/argoproj/gitops-engine/pkg/cache.TestEnsureSyncedSingleNamespace()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster_test.go:165 +0x18b
testing.tRunner()
/Users/d-kuro/sdk/go1.14.4/src/testing/testing.go:991 +0x1eb
Goroutine 46 (running) created at:
golang.org/x/sync/errgroup.(*Group).Go()
/Users/d-kuro/go/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:54 +0x73
github.com/argoproj/gitops-engine/pkg/utils/kube.RunAllAsync()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/utils/kube/ctl.go:509 +0x1a1
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).sync()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:526 +0x98b
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).EnsureSynced()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:592 +0xe9
github.com/argoproj/gitops-engine/pkg/cache.TestEnsureSyncedSingleNamespace()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster_test.go:165 +0x18b
testing.tRunner()
/Users/d-kuro/sdk/go1.14.4/src/testing/testing.go:991 +0x1eb
==================
time="2020-06-03T13:37:40+09:00" level=info msg="Cluster successfully synced" server="https://test"
--- FAIL: TestEnsureSyncedSingleNamespace (0.00s)
testing.go:906: race detected during execution of test
==================
WARNING: DATA RACE
Write at 0x00c000702ea0 by goroutine 55:
runtime.mapassign()
/Users/d-kuro/sdk/go1.14.4/src/runtime/map.go:571 +0x0
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).setNode()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:300 +0x140
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).onNodeUpdated()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:751 +0x66
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).replaceResourceCache()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:209 +0x3a3
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).watchEvents.func1.2()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:414 +0x708
github.com/argoproj/gitops-engine/pkg/cache.runSynced()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:382 +0x8c
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).watchEvents.func1()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:393 +0x219
github.com/argoproj/gitops-engine/pkg/utils/kube.RetryUntilSucceed()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/utils/kube/kube.go:384 +0x2c6
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).watchEvents()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:386 +0x20f
Previous read at 0x00c000702ea0 by goroutine 43:
reflect.maplen()
/Users/d-kuro/sdk/go1.14.4/src/runtime/map.go:1351 +0x0
reflect.Value.Len()
/Users/d-kuro/sdk/go1.14.4/src/reflect/value.go:1132 +0x2f1
github.com/stretchr/testify/assert.getLen()
/Users/d-kuro/go/pkg/mod/github.com/stretchr/[email protected]/assert/assertions.go:575 +0xda
github.com/stretchr/testify/assert.Len()
/Users/d-kuro/go/pkg/mod/github.com/stretchr/[email protected]/assert/assertions.go:586 +0x9c
github.com/argoproj/gitops-engine/pkg/cache.TestEnsureSyncedSingleNamespace()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster_test.go:168 +0x247
testing.tRunner()
/Users/d-kuro/sdk/go1.14.4/src/testing/testing.go:991 +0x1eb
Goroutine 55 (running) created at:
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).sync.func1.1()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:563 +0x69d
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).processApi()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:487 +0x1dc
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).sync.func1()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:536 +0x430
github.com/argoproj/gitops-engine/pkg/utils/kube.RunAllAsync.func1()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/utils/kube/ctl.go:510 +0x45
golang.org/x/sync/errgroup.(*Group).Go.func1()
/Users/d-kuro/go/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:57 +0x85
Goroutine 43 (finished) created at:
testing.(*T).Run()
/Users/d-kuro/sdk/go1.14.4/src/testing/testing.go:1042 +0x660
testing.runTests.func1()
/Users/d-kuro/sdk/go1.14.4/src/testing/testing.go:1284 +0xa6
testing.tRunner()
/Users/d-kuro/sdk/go1.14.4/src/testing/testing.go:991 +0x1eb
testing.runTests()
/Users/d-kuro/sdk/go1.14.4/src/testing/testing.go:1282 +0x527
testing.(*M).Run()
/Users/d-kuro/sdk/go1.14.4/src/testing/testing.go:1199 +0x2ff
main.main()
_testmain.go:76 +0x223
==================
time="2020-06-03T13:37:40+09:00" level=info msg="Start syncing cluster" server="https://test"
time="2020-06-03T13:37:40+09:00" level=info msg="Cluster successfully synced" server="https://test"
--- FAIL: TestGetNamespaceResources (0.00s)
testing.go:906: race detected during execution of test
time="2020-06-03T13:37:40+09:00" level=info msg="Start syncing cluster" server="https://test"
time="2020-06-03T13:37:40+09:00" level=info msg="Cluster successfully synced" server="https://test"
time="2020-06-03T13:37:40+09:00" level=warning msg="invalidated cluster" server="https://test"
time="2020-06-03T13:37:40+09:00" level=info msg="Start syncing cluster" server="https://test"
time="2020-06-03T13:37:40+09:00" level=info msg="Cluster successfully synced" server="https://test"
time="2020-06-03T13:37:40+09:00" level=info msg="Start syncing cluster" server="https://test"
time="2020-06-03T13:37:40+09:00" level=info msg="Cluster successfully synced" server="https://test"
--- FAIL: TestChildDeletedEvent (0.00s)
cluster_test.go:278:
Error Trace: cluster_test.go:278
Error: Not equal:
expected: []*cache.Resource{}
actual : []*cache.Resource{(*cache.Resource)(0xc000472580)}
Diff:
--- Expected
+++ Actual
@@ -1,2 +1,11 @@
-([]*cache.Resource) {
+([]*cache.Resource) (len=1) {
+ (*cache.Resource)({
+ ResourceVersion: (string) (len=3) "123",
+ Ref: (v1.ObjectReference) &ObjectReference{Kind:Pod,Namespace:default,Name:helm-guestbook-pod,UID:1,APIVersion:v1,ResourceVersion:,FieldPath:,},
+ OwnerRefs: ([]v1.OwnerReference) (len=1) {
+ (v1.OwnerReference) &OwnerReference{Kind:ReplicaSet,Name:helm-guestbook-rs,UID:2,APIVersion:apps/v1,Controller:nil,BlockOwnerDeletion:nil,}
+ },
+ Info: (interface {}) <nil>,
+ Resource: (*unstructured.Unstructured)(<nil>)
+ })
}
Test: TestChildDeletedEvent
time="2020-06-03T13:37:40+09:00" level=info msg="Start syncing cluster" server="https://test"
time="2020-06-03T13:37:40+09:00" level=info msg="Cluster successfully synced" server="https://test"
time="2020-06-03T13:37:40+09:00" level=info msg="Start syncing cluster" server="https://test"
time="2020-06-03T13:37:40+09:00" level=info msg="Cluster successfully synced" server="https://test"
time="2020-06-03T13:37:40+09:00" level=info msg="Start syncing cluster" server="https://test"
time="2020-06-03T13:37:40+09:00" level=info msg="Cluster successfully synced" server="https://test"
==================
WARNING: DATA RACE
Read at 0x00c0008c5260 by goroutine 66:
runtime.mapiterinit()
/Users/d-kuro/sdk/go1.14.4/src/runtime/map.go:797 +0x0
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).replaceResourceCache()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:212 +0x421
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).watchEvents.func1.2()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:414 +0x708
github.com/argoproj/gitops-engine/pkg/cache.runSynced()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:382 +0x8c
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).watchEvents.func1()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:393 +0x219
github.com/argoproj/gitops-engine/pkg/utils/kube.RetryUntilSucceed()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/utils/kube/kube.go:384 +0x2c6
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).watchEvents()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:386 +0x20f
Previous write at 0x00c0008c5260 by goroutine 50:
runtime.mapdelete()
/Users/d-kuro/sdk/go1.14.4/src/runtime/map.go:685 +0x0
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).onNodeRemoved()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:760 +0x17f
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).replaceResourceCache()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:218 +0x5d2
github.com/argoproj/gitops-engine/pkg/cache.TestNamespaceModeReplace()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster_test.go:377 +0x292
testing.tRunner()
/Users/d-kuro/sdk/go1.14.4/src/testing/testing.go:991 +0x1eb
Goroutine 66 (running) created at:
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).sync.func1.1()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:563 +0x69d
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).processApi()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:479 +0x2cc
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).sync.func1()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:536 +0x430
github.com/argoproj/gitops-engine/pkg/utils/kube.RunAllAsync.func1()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/utils/kube/ctl.go:510 +0x45
golang.org/x/sync/errgroup.(*Group).Go.func1()
/Users/d-kuro/go/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:57 +0x85
Goroutine 50 (finished) created at:
testing.(*T).Run()
/Users/d-kuro/sdk/go1.14.4/src/testing/testing.go:1042 +0x660
testing.runTests.func1()
/Users/d-kuro/sdk/go1.14.4/src/testing/testing.go:1284 +0xa6
testing.tRunner()
/Users/d-kuro/sdk/go1.14.4/src/testing/testing.go:991 +0x1eb
testing.runTests()
/Users/d-kuro/sdk/go1.14.4/src/testing/testing.go:1282 +0x527
testing.(*M).Run()
/Users/d-kuro/sdk/go1.14.4/src/testing/testing.go:1199 +0x2ff
main.main()
_testmain.go:76 +0x223
==================
time="2020-06-03T13:37:40+09:00" level=info msg="Start syncing cluster" server="https://test"
==================
WARNING: DATA RACE
Read at 0x00c0003d7b08 by goroutine 60:
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).watchEvents.func1.2()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:394 +0xe1
github.com/argoproj/gitops-engine/pkg/cache.runSynced()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:382 +0x8c
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).watchEvents.func1()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:393 +0x219
github.com/argoproj/gitops-engine/pkg/utils/kube.RetryUntilSucceed()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/utils/kube/kube.go:384 +0x2c6
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).watchEvents()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:386 +0x20f
Previous write at 0x00c0003d7b08 by goroutine 50:
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).replaceResourceCache()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:221 +0x6e6
github.com/argoproj/gitops-engine/pkg/cache.TestNamespaceModeReplace()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster_test.go:377 +0x292
testing.tRunner()
/Users/d-kuro/sdk/go1.14.4/src/testing/testing.go:991 +0x1eb
Goroutine 60 (running) created at:
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).sync.func1.1()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:563 +0x69d
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).processApi()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:479 +0x2cc
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).sync.func1()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:536 +0x430
github.com/argoproj/gitops-engine/pkg/utils/kube.RunAllAsync.func1()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/utils/kube/ctl.go:510 +0x45
golang.org/x/sync/errgroup.(*Group).Go.func1()
/Users/d-kuro/go/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:57 +0x85
Goroutine 50 (finished) created at:
testing.(*T).Run()
/Users/d-kuro/sdk/go1.14.4/src/testing/testing.go:1042 +0x660
testing.runTests.func1()
/Users/d-kuro/sdk/go1.14.4/src/testing/testing.go:1284 +0xa6
testing.tRunner()
/Users/d-kuro/sdk/go1.14.4/src/testing/testing.go:991 +0x1eb
testing.runTests()
/Users/d-kuro/sdk/go1.14.4/src/testing/testing.go:1282 +0x527
testing.(*M).Run()
/Users/d-kuro/sdk/go1.14.4/src/testing/testing.go:1199 +0x2ff
main.main()
_testmain.go:76 +0x223
==================
==================
WARNING: DATA RACE
Write at 0x00c000308488 by goroutine 60:
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).setNode()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:300 +0x155
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).onNodeUpdated()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:751 +0x66
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).replaceResourceCache()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:209 +0x3a3
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).watchEvents.func1.2()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:414 +0x708
github.com/argoproj/gitops-engine/pkg/cache.runSynced()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:382 +0x8c
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).watchEvents.func1()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:393 +0x219
github.com/argoproj/gitops-engine/pkg/utils/kube.RetryUntilSucceed()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/utils/kube/kube.go:384 +0x2c6
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).watchEvents()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:386 +0x20f
Previous read at 0x00c000308488 by goroutine 50:
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).onNodeRemoved()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:758 +0xe8
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).replaceResourceCache()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:218 +0x5d2
github.com/argoproj/gitops-engine/pkg/cache.TestNamespaceModeReplace()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster_test.go:377 +0x292
testing.tRunner()
/Users/d-kuro/sdk/go1.14.4/src/testing/testing.go:991 +0x1eb
Goroutine 60 (running) created at:
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).sync.func1.1()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:563 +0x69d
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).processApi()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:479 +0x2cc
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).sync.func1()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:536 +0x430
github.com/argoproj/gitops-engine/pkg/utils/kube.RunAllAsync.func1()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/utils/kube/ctl.go:510 +0x45
golang.org/x/sync/errgroup.(*Group).Go.func1()
/Users/d-kuro/go/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:57 +0x85
Goroutine 50 (finished) created at:
testing.(*T).Run()
/Users/d-kuro/sdk/go1.14.4/src/testing/testing.go:1042 +0x660
testing.runTests.func1()
/Users/d-kuro/sdk/go1.14.4/src/testing/testing.go:1284 +0xa6
testing.tRunner()
/Users/d-kuro/sdk/go1.14.4/src/testing/testing.go:991 +0x1eb
testing.runTests()
/Users/d-kuro/sdk/go1.14.4/src/testing/testing.go:1282 +0x527
testing.(*M).Run()
/Users/d-kuro/sdk/go1.14.4/src/testing/testing.go:1199 +0x2ff
main.main()
_testmain.go:76 +0x223
==================
==================
WARNING: DATA RACE
Read at 0x00c0008c50e0 by goroutine 60:
runtime.mapaccess2_faststr()
/Users/d-kuro/sdk/go1.14.4/src/runtime/map_faststr.go:107 +0x0
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).setNode()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:301 +0x1c7
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).onNodeUpdated()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:751 +0x66
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).replaceResourceCache()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:209 +0x3a3
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).watchEvents.func1.2()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:414 +0x708
github.com/argoproj/gitops-engine/pkg/cache.runSynced()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:382 +0x8c
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).watchEvents.func1()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:393 +0x219
github.com/argoproj/gitops-engine/pkg/utils/kube.RetryUntilSucceed()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/utils/kube/kube.go:384 +0x2c6
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).watchEvents()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:386 +0x20f
time="2020-06-03T13:37:40+09:00" level=info msg="Cluster successfully synced" server="https://test"
Previous write at 0x00c0008c50e0 by goroutine 50:
runtime.mapdelete_faststr()
/Users/d-kuro/sdk/go1.14.4/src/runtime/map_faststr.go:297 +0x0
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).onNodeRemoved()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:765 +0x374
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).replaceResourceCache()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:218 +0x5d2
github.com/argoproj/gitops-engine/pkg/cache.TestNamespaceModeReplace()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster_test.go:377 +0x292
testing.tRunner()
/Users/d-kuro/sdk/go1.14.4/src/testing/testing.go:991 +0x1eb
Goroutine 60 (running) created at:
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).sync.func1.1()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:563 +0x69d
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).processApi()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:479 +0x2cc
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).sync.func1()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:536 +0x430
github.com/argoproj/gitops-engine/pkg/utils/kube.RunAllAsync.func1()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/utils/kube/ctl.go:510 +0x45
golang.org/x/sync/errgroup.(*Group).Go.func1()
/Users/d-kuro/go/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:57 +0x85
Goroutine 50 (finished) created at:
testing.(*T).Run()
/Users/d-kuro/sdk/go1.14.4/src/testing/testing.go:1042 +0x660
testing.runTests.func1()
/Users/d-kuro/sdk/go1.14.4/src/testing/testing.go:1284 +0xa6
testing.tRunner()
/Users/d-kuro/sdk/go1.14.4/src/testing/testing.go:991 +0x1eb
testing.runTests()
/Users/d-kuro/sdk/go1.14.4/src/testing/testing.go:1282 +0x527
testing.(*M).Run()
/Users/d-kuro/sdk/go1.14.4/src/testing/testing.go:1199 +0x2ff
main.main()
_testmain.go:76 +0x223
==================
==================
WARNING: DATA RACE
Write at 0x00c0000dd678 by goroutine 60:
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).setNode()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:304 +0x321
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).onNodeUpdated()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:751 +0x66
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).replaceResourceCache()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:209 +0x3a3
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).watchEvents.func1.2()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:414 +0x708
github.com/argoproj/gitops-engine/pkg/cache.runSynced()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:382 +0x8c
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).watchEvents.func1()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:393 +0x219
github.com/argoproj/gitops-engine/pkg/utils/kube.RetryUntilSucceed()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/utils/kube/kube.go:384 +0x2c6
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).watchEvents()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:386 +0x20f
Previous read at 0x00c0000dd678 by goroutine 50:
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).onNodeRemoved()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:761 +0x1f3
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).replaceResourceCache()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:218 +0x5d2
github.com/argoproj/gitops-engine/pkg/cache.TestNamespaceModeReplace()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster_test.go:377 +0x292
testing.tRunner()
/Users/d-kuro/sdk/go1.14.4/src/testing/testing.go:991 +0x1eb
Goroutine 60 (running) created at:
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).sync.func1.1()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:563 +0x69d
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).processApi()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:479 +0x2cc
github.com/argoproj/gitops-engine/pkg/cache.(*clusterCache).sync.func1()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/cache/cluster.go:536 +0x430
github.com/argoproj/gitops-engine/pkg/utils/kube.RunAllAsync.func1()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/utils/kube/ctl.go:510 +0x45
golang.org/x/sync/errgroup.(*Group).Go.func1()
/Users/d-kuro/go/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:57 +0x85
Goroutine 50 (finished) created at:
testing.(*T).Run()
/Users/d-kuro/sdk/go1.14.4/src/testing/testing.go:1042 +0x660
testing.runTests.func1()
/Users/d-kuro/sdk/go1.14.4/src/testing/testing.go:1284 +0xa6
testing.tRunner()
/Users/d-kuro/sdk/go1.14.4/src/testing/testing.go:991 +0x1eb
testing.runTests()
/Users/d-kuro/sdk/go1.14.4/src/testing/testing.go:1282 +0x527
testing.(*M).Run()
/Users/d-kuro/sdk/go1.14.4/src/testing/testing.go:1199 +0x2ff
main.main()
_testmain.go:76 +0x223
==================
--- FAIL: TestGetDuplicatedChildren (0.00s)
testing.go:906: race detected during execution of test
time="2020-06-03T13:37:40+09:00" level=warning msg="invalidated cluster" server=
time="2020-06-03T13:37:40+09:00" level=info msg="Changing cluster config to: &rest.Config{Host:\"http://newhost\", APIPath:\"\", ContentConfig:rest.ContentConfig{AcceptContentTypes:\"\", ContentType:\"\", GroupVersion:(*schema.GroupVersion)(nil), NegotiatedSerializer:runtime.NegotiatedSerializer(nil)}, Username:\"\", Password:\"\", BearerToken:\"\", BearerTokenFile:\"\", Impersonate:rest.ImpersonationConfig{UserName:\"\", Groups:[]string(nil), Extra:map[string][]string(nil)}, AuthProvider:<nil>, AuthConfigPersister:rest.AuthProviderConfigPersister(nil), ExecProvider:<nil>, TLSClientConfig:rest.sanitizedTLSClientConfig{Insecure:false, ServerName:\"\", CertFile:\"\", KeyFile:\"\", CAFile:\"\", CertData:[]uint8(nil), KeyData:[]uint8(nil), CAData:[]uint8(nil), NextProtos:[]string(nil)}, UserAgent:\"\", DisableCompression:false, Transport:http.RoundTripper(nil), WrapTransport:(transport.WrapperFunc)(nil), QPS:0, Burst:0, RateLimiter:flowcontrol.RateLimiter(nil), Timeout:0, Dial:(func(context.Context, string, string) (net.Conn, error))(nil)}" server=
time="2020-06-03T13:37:40+09:00" level=warning msg="invalidated cluster" server=
time="2020-06-03T13:37:40+09:00" level=info msg="Changing cluster namespaces to: [default]" server=
time="2020-06-03T13:37:40+09:00" level=info msg="Changing cluster namespaces to: [updated]" server=
time="2020-06-03T13:37:40+09:00" level=warning msg="invalidated cluster" server=
FAIL
FAIL github.com/argoproj/gitops-engine/pkg/cache 0.848s
? github.com/argoproj/gitops-engine/pkg/cache/mocks [no test files]
ok github.com/argoproj/gitops-engine/pkg/diff (cached)
? github.com/argoproj/gitops-engine/pkg/engine [no test files]
ok github.com/argoproj/gitops-engine/pkg/health (cached)
time="2020-06-03T13:37:40+09:00" level=info msg=syncing application=fake-app skipHooks=false started=false
time="2020-06-03T13:37:40+09:00" level=info msg=tasks application=fake-app tasks="[Sync/0 resource /Pod:fake-argocd-ns/my-pod obj->obj (,,)]"
time="2020-06-03T13:37:40+09:00" level=info msg="Updating operation state. phase: -> Running, message: '' -> 'one or more tasks are running'" application=fake-app
time="2020-06-03T13:37:40+09:00" level=info msg="adding resource result, status: 'Synced', phase: 'Running', message: ''" application=fake-app kind=Pod name=my-pod namespace=fake-argocd-ns phase=Sync
time="2020-06-03T13:37:40+09:00" level=info msg="Updating operation state. phase: Running -> Succeeded, message: 'one or more tasks are running' -> 'successfully synced (all tasks run)'" application=fake-app
time="2020-06-03T13:37:40+09:00" level=info msg=syncing application=fake-app skipHooks=false started=false
time="2020-06-03T13:37:40+09:00" level=info msg="adding resource result, status: 'SyncFailed', phase: '', message: 'not permitted in project'" application=fake-app kind=Pod name=my-pod namespace=kube-system phase=Sync
time="2020-06-03T13:37:40+09:00" level=info msg="adding resource result, status: 'SyncFailed', phase: '', message: 'not permitted in project'" application=fake-app kind=Service name=my-service namespace=fake-argocd-ns phase=Sync
time="2020-06-03T13:37:40+09:00" level=info msg="Updating operation state. phase: -> Failed, message: '' -> 'one or more synchronization tasks are not valid'" application=fake-app
time="2020-06-03T13:37:40+09:00" level=info msg=syncing application=fake-app skipHooks=false started=false
time="2020-06-03T13:37:40+09:00" level=info msg=tasks application=fake-app tasks="[Sync/0 resource /Service:fake-argocd-ns/my-service nil->obj (,,), Sync/0 resource /Pod:fake-argocd-ns/my-pod nil->obj (,,)]"
time="2020-06-03T13:37:40+09:00" level=info msg="Updating operation state. phase: -> Running, message: '' -> 'one or more tasks are running'" application=fake-app
time="2020-06-03T13:37:40+09:00" level=info msg="adding resource result, status: 'Synced', phase: 'Running', message: ''" application=fake-app kind=Service name=my-service namespace=fake-argocd-ns phase=Sync
time="2020-06-03T13:37:40+09:00" level=info msg="adding resource result, status: 'Synced', phase: 'Running', message: ''" application=fake-app kind=Pod name=my-pod namespace=fake-argocd-ns phase=Sync
time="2020-06-03T13:37:40+09:00" level=info msg="Updating operation state. phase: Running -> Succeeded, message: 'one or more tasks are running' -> 'successfully synced (all tasks run)'" application=fake-app
time="2020-06-03T13:37:40+09:00" level=info msg="adding resource result, status: 'SyncFailed', phase: '', message: 'TestCrd.argoproj.io \"\" not found'" application=fake-app kind=TestCrd name=my-resource namespace=fake-argocd-ns phase=Sync
time="2020-06-03T13:37:40+09:00" level=info msg=syncing application=fake-app skipHooks=false started=false
time="2020-06-03T13:37:40+09:00" level=info msg=tasks application=fake-app tasks="[Sync/0 resource /Service:fake-argocd-ns/my-service nil->obj (,,), Sync/0 resource /Pod:fake-argocd-ns/my-pod obj->nil (,,)]"
time="2020-06-03T13:37:40+09:00" level=info msg="Updating operation state. phase: -> Running, message: '' -> 'one or more tasks are running'" application=fake-app
time="2020-06-03T13:37:40+09:00" level=info msg="adding resource result, status: 'Pruned', phase: 'Succeeded', message: 'pruned'" application=fake-app kind=Pod name=my-pod namespace=fake-argocd-ns phase=Sync
time="2020-06-03T13:37:40+09:00" level=info msg="adding resource result, status: 'Synced', phase: 'Running', message: ''" application=fake-app kind=Service name=my-service namespace=fake-argocd-ns phase=Sync
time="2020-06-03T13:37:40+09:00" level=info msg="Updating operation state. phase: Running -> Succeeded, message: 'one or more tasks are running' -> 'successfully synced (all tasks run)'" application=fake-app
time="2020-06-03T13:37:40+09:00" level=info msg=syncing application=fake-app skipHooks=false started=false
time="2020-06-03T13:37:40+09:00" level=info msg=tasks application=fake-app tasks="[Sync/0 resource /Service:fake-argocd-ns/my-service obj->nil (,,), Sync/0 resource /Pod:fake-argocd-ns/my-pod obj->nil (,,)]"
time="2020-06-03T13:37:40+09:00" level=info msg="Updating operation state. phase: -> Running, message: '' -> 'one or more tasks are running'" application=fake-app
time="2020-06-03T13:37:40+09:00" level=info msg="adding resource result, status: 'Pruned', phase: 'Succeeded', message: 'pruned'" application=fake-app kind=Service name=my-service namespace=fake-argocd-ns phase=Sync
time="2020-06-03T13:37:40+09:00" level=info msg="adding resource result, status: 'Pruned', phase: 'Succeeded', message: 'pruned'" application=fake-app kind=Pod name=my-pod namespace=fake-argocd-ns phase=Sync
time="2020-06-03T13:37:40+09:00" level=info msg="Updating operation state. phase: Running -> Succeeded, message: 'one or more tasks are running' -> 'successfully synced (all tasks run)'" application=fake-app
time="2020-06-03T13:37:40+09:00" level=info msg=syncing application=fake-app skipHooks=false started=false
time="2020-06-03T13:37:40+09:00" level=info msg=tasks application=fake-app tasks="[Sync/0 resource /Service:fake-argocd-ns/my-service nil->obj (,,)]"
time="2020-06-03T13:37:40+09:00" level=info msg="apply failed" application=fake-app dryRun=true message=foo task="Sync/0 resource /Service:fake-argocd-ns/my-service nil->obj (,,)"
time="2020-06-03T13:37:40+09:00" level=info msg="adding resource result, status: 'SyncFailed', phase: 'Failed', message: 'foo'" application=fake-app kind=Service name=my-service namespace=fake-argocd-ns phase=Sync
time="2020-06-03T13:37:40+09:00" level=info msg="Updating operation state. phase: -> Failed, message: '' -> 'one or more objects failed to apply (dry run)'" application=fake-app
time="2020-06-03T13:37:40+09:00" level=info msg=syncing application=fake-app skipHooks=false started=false
time="2020-06-03T13:37:40+09:00" level=info msg=tasks application=fake-app tasks="[Sync/0 resource /Service:fake-argocd-ns/test-service obj->obj (,,)]"
time="2020-06-03T13:37:40+09:00" level=info msg="apply failed" application=fake-app dryRun=true message=foo task="Sync/0 resource /Service:fake-argocd-ns/test-service obj->obj (,,)"
time="2020-06-03T13:37:40+09:00" level=info msg="adding resource result, status: 'SyncFailed', phase: 'Failed', message: 'foo'" application=fake-app kind=Service name=test-service namespace=fake-argocd-ns phase=Sync
time="2020-06-03T13:37:40+09:00" level=info msg="Updating operation state. phase: -> Failed, message: '' -> 'one or more objects failed to apply (dry run)'" application=fake-app
time="2020-06-03T13:37:40+09:00" level=info msg=syncing application=fake-app skipHooks=true started=false
time="2020-06-03T13:37:40+09:00" level=info msg=tasks application=fake-app tasks="[]"
time="2020-06-03T13:37:40+09:00" level=info msg="Updating operation state. phase: -> Succeeded, message: '' -> 'successfully synced (no more tasks)'" application=fake-app
time="2020-06-03T13:37:40+09:00" level=info msg=syncing application=fake-app skipHooks=false started=false
time="2020-06-03T13:37:40+09:00" level=info msg=tasks application=fake-app tasks="[Sync/0 resource /Pod:fake-argocd-ns/my-pod obj->nil (,,)]"
time="2020-06-03T13:37:40+09:00" level=info msg="Updating operation state. phase: -> Running, message: '' -> 'one or more tasks are running'" application=fake-app
time="2020-06-03T13:37:40+09:00" level=info msg="adding resource result, status: 'PruneSkipped', phase: 'Succeeded', message: 'ignored (no prune)'" application=fake-app kind=Pod name=my-pod namespace=fake-argocd-ns phase=Sync
time="2020-06-03T13:37:40+09:00" level=info msg="Updating operation state. phase: Running -> Succeeded, message: 'one or more tasks are running' -> 'successfully synced (all tasks run)'" application=fake-app
time="2020-06-03T13:37:40+09:00" level=info msg=syncing application=fake-app skipHooks=false started=true
time="2020-06-03T13:37:40+09:00" level=info msg=tasks application=fake-app tasks="[Sync/0 resource /Pod:fake-argocd-ns/my-pod obj->nil (PruneSkipped,Succeeded,ignored (no prune))]"
time="2020-06-03T13:37:40+09:00" level=info msg="Updating operation state. phase: Succeeded -> Succeeded, message: 'successfully synced (all tasks run)' -> 'successfully synced (no more tasks)'" application=fake-app
time="2020-06-03T13:37:40+09:00" level=info msg=syncing application=fake-app skipHooks=false started=false
time="2020-06-03T13:37:40+09:00" level=info msg=tasks application=fake-app tasks="[Sync/0 resource /Pod:fake-argocd-ns/my-pod obj->obj (,,)]"
time="2020-06-03T13:37:40+09:00" level=info msg="Updating operation state. phase: -> Running, message: '' -> 'one or more tasks are running'" application=fake-app
time="2020-06-03T13:37:40+09:00" level=info msg="adding resource result, status: 'Synced', phase: 'Running', message: ''" application=fake-app kind=Pod name=my-pod namespace=fake-argocd-ns phase=Sync
time="2020-06-03T13:37:40+09:00" level=info msg="Updating operation state. phase: Running -> Succeeded, message: 'one or more tasks are running' -> 'successfully synced (all tasks run)'" application=fake-app
time="2020-06-03T13:37:40+09:00" level=info msg=syncing application=fake-app skipHooks=false started=false
time="2020-06-03T13:37:40+09:00" level=info msg=tasks application=fake-app tasks="[Sync/0 resource /Pod:fake-argocd-ns/my-pod obj->obj (,,)]"
time="2020-06-03T13:37:40+09:00" level=info msg="Updating operation state. phase: -> Running, message: '' -> 'one or more tasks are running'" application=fake-app
time="2020-06-03T13:37:40+09:00" level=info msg="adding resource result, status: 'Synced', phase: 'Running', message: ''" application=fake-app kind=Pod name=my-pod namespace=fake-argocd-ns phase=Sync
time="2020-06-03T13:37:40+09:00" level=info msg="Updating operation state. phase: Running -> Succeeded, message: 'one or more tasks are running' -> 'successfully synced (all tasks run)'" application=fake-app
time="2020-06-03T13:37:40+09:00" level=info msg=syncing application=fake-app skipHooks=false started=false
time="2020-06-03T13:37:40+09:00" level=info msg=tasks application=fake-app tasks="[Sync/0 resource /Pod:fake-argocd-ns/my-pod obj->obj (,,)]"
time="2020-06-03T13:37:40+09:00" level=info msg="Updating operation state. phase: -> Running, message: '' -> 'one or more tasks are running'" application=fake-app
time="2020-06-03T13:37:40+09:00" level=info msg="adding resource result, status: 'Synced', phase: 'Running', message: ''" application=fake-app kind=Pod name=my-pod namespace=fake-argocd-ns phase=Sync
time="2020-06-03T13:37:40+09:00" level=info msg="Updating operation state. phase: Running -> Succeeded, message: 'one or more tasks are running' -> 'successfully synced (all tasks run)'" application=fake-app
time="2020-06-03T13:37:40+09:00" level=info msg=syncing application=fake-app skipHooks=false started=false
time="2020-06-03T13:37:40+09:00" level=info msg=tasks application=fake-app tasks="[Sync/0 resource /Pod:fake-argocd-ns/my-pod nil->obj (,,), SyncFail/0 hook /Pod:fake-argocd-ns/my-pod nil->obj (,,)]"
==================
WARNING: DATA RACE
Write at 0x00c000414178 by goroutine 81:
github.com/argoproj/gitops-engine/pkg/utils/kube/kubetest.(*MockKubectlCmd).ApplyResource()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/utils/kube/kubetest/mock.go:56 +0x56
github.com/argoproj/gitops-engine/pkg/sync.(*syncContext).applyObject()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/sync/sync_context.go:572 +0x190
github.com/argoproj/gitops-engine/pkg/sync.(*syncContext).runTasks.func5.1()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/sync/sync_context.go:783 +0x35d
Previous write at 0x00c000414178 by goroutine 80:
github.com/argoproj/gitops-engine/pkg/utils/kube/kubetest.(*MockKubectlCmd).ApplyResource()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/utils/kube/kubetest/mock.go:56 +0x56
github.com/argoproj/gitops-engine/pkg/sync.(*syncContext).applyObject()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/sync/sync_context.go:572 +0x190
github.com/argoproj/gitops-engine/pkg/sync.(*syncContext).runTasks.func5.1()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/sync/sync_context.go:783 +0x35d
Goroutine 81 (running) created at:
github.com/argoproj/gitops-engine/pkg/sync.(*syncContext).runTasks.func5()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/sync/sync_context.go:778 +0x165
github.com/argoproj/gitops-engine/pkg/sync.(*syncContext).runTasks()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/sync/sync_context.go:807 +0xb32
github.com/argoproj/gitops-engine/pkg/sync.(*syncContext).Sync()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/sync/sync_context.go:265 +0x1b3d
github.com/argoproj/gitops-engine/pkg/sync.TestSyncFailureHookWithSuccessfulSync()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/sync/sync_context_test.go:513 +0x277
testing.tRunner()
/Users/d-kuro/sdk/go1.14.4/src/testing/testing.go:991 +0x1eb
Goroutine 80 (finished) created at:
github.com/argoproj/gitops-engine/pkg/sync.(*syncContext).runTasks.func5()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/sync/sync_context.go:778 +0x165
github.com/argoproj/gitops-engine/pkg/sync.(*syncContext).runTasks()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/sync/sync_context.go:807 +0xb32
github.com/argoproj/gitops-engine/pkg/sync.(*syncContext).Sync()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/sync/sync_context.go:265 +0x1b3d
github.com/argoproj/gitops-engine/pkg/sync.TestSyncFailureHookWithSuccessfulSync()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/sync/sync_context_test.go:513 +0x277
testing.tRunner()
/Users/d-kuro/sdk/go1.14.4/src/testing/testing.go:991 +0x1eb
==================
time="2020-06-03T13:37:40+09:00" level=info msg="Updating operation state. phase: -> Running, message: '' -> 'one or more tasks are running'" application=fake-app
time="2020-06-03T13:37:40+09:00" level=info msg="adding resource result, status: 'Synced', phase: 'Running', message: ''" application=fake-app kind=Pod name=my-pod namespace=fake-argocd-ns phase=Sync
time="2020-06-03T13:37:40+09:00" level=info msg="Updating operation state. phase: Running -> Succeeded, message: 'one or more tasks are running' -> 'successfully synced (all tasks run)'" application=fake-app
--- FAIL: TestSyncFailureHookWithSuccessfulSync (0.00s)
testing.go:906: race detected during execution of test
time="2020-06-03T13:37:40+09:00" level=info msg=syncing application=fake-app skipHooks=false started=false
time="2020-06-03T13:37:40+09:00" level=info msg=tasks application=fake-app tasks="[Sync/0 resource /Pod:fake-argocd-ns/my-pod nil->obj (,,), SyncFail/0 hook /Pod:fake-argocd-ns/my-pod nil->obj (,,)]"
time="2020-06-03T13:37:40+09:00" level=info msg="apply failed" application=fake-app dryRun=true message= task="Sync/0 resource /Pod:fake-argocd-ns/my-pod nil->obj (,,)"
time="2020-06-03T13:37:40+09:00" level=info msg="apply failed" application=fake-app dryRun=true message= task="SyncFail/0 hook /Pod:fake-argocd-ns/my-pod nil->obj (,,)"
==================
WARNING: DATA RACE
Write at 0x00c0003d4cd8 by goroutine 85:
github.com/argoproj/gitops-engine/pkg/sync.(*syncContext).runTasks.func5.1()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/sync/sync_context.go:786 +0x68c
Previous write at 0x00c0003d4cd8 by goroutine 84:
github.com/argoproj/gitops-engine/pkg/sync.(*syncContext).runTasks.func5.1()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/sync/sync_context.go:786 +0x68c
Goroutine 85 (running) created at:
github.com/argoproj/gitops-engine/pkg/sync.(*syncContext).runTasks.func5()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/sync/sync_context.go:778 +0x165
github.com/argoproj/gitops-engine/pkg/sync.(*syncContext).runTasks()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/sync/sync_context.go:807 +0xb32
github.com/argoproj/gitops-engine/pkg/sync.(*syncContext).Sync()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/sync/sync_context.go:265 +0x1b3d
github.com/argoproj/gitops-engine/pkg/sync.TestSyncFailureHookWithFailedSync()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/sync/sync_context_test.go:532 +0x4e5
time="2020-06-03T13:37:40+09:00" level=info msg="adding resource result, status: 'SyncFailed', phase: 'Failed', message: ''" application=fake-app kind=Pod name=my-pod namespace=fake-argocd-ns phase=Sync
testing.tRunner()
/Users/d-kuro/sdk/go1.14.4/src/testing/testing.go:991 +0x1eb
Goroutine 84 (running) created at:
github.com/argoproj/gitops-engine/pkg/sync.(*syncContext).runTasks.func5()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/sync/sync_context.go:778 +0x165
github.com/argoproj/gitops-engine/pkg/sync.(*syncContext).runTasks()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/sync/sync_context.go:807 +0xb32
github.com/argoproj/gitops-engine/pkg/sync.(*syncContext).Sync()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/sync/sync_context.go:265 +0x1b3d
github.com/argoproj/gitops-engine/pkg/sync.TestSyncFailureHookWithFailedSync()
/Users/d-kuro/.ghq/github.com/argoproj/gitops-engine/pkg/sync/sync_context_test.go:532 +0x4e5
testing.tRunner()
/Users/d-kuro/sdk/go1.14.4/src/testing/testing.go:991 +0x1eb
==================
time="2020-06-03T13:37:40+09:00" level=info msg="adding resource result, status: 'SyncFailed', phase: 'Failed', message: ''" application=fake-app kind=Pod name=my-pod namespace=fake-argocd-ns phase=SyncFail
time="2020-06-03T13:37:40+09:00" level=info msg="Updating operation state. phase: -> Failed, message: '' -> 'one or more objects failed to apply (dry run)'" application=fake-app
time="2020-06-03T13:37:40+09:00" level=info msg=syncing application=fake-app skipHooks=false started=true
time="2020-06-03T13:37:40+09:00" level=info msg=tasks application=fake-app tasks="[Sync/0 resource /Pod:fake-argocd-ns/my-pod nil->obj (SyncFailed,Failed,), SyncFail/0 hook /Pod:fake-argocd-ns/my-pod nil->obj (SyncFailed,Failed,)]"
time="2020-06-03T13:37:40+09:00" level=info msg="Updating operation state. phase: Failed -> Failed, message: 'one or more objects failed to apply (dry run)' -> 'one or more synchronization tasks completed unsuccessfully'" application=fake-app
--- FAIL: TestSyncFailureHookWithFailedSync (0.00s)
testing.go:906: race detected during execution of test
time="2020-06-03T13:37:40+09:00" level=info msg=syncing application=fake-app skipHooks=false started=false
time="2020-06-03T13:37:40+09:00" level=info msg=tasks application=fake-app tasks="[Sync/0 hook /Pod:fake-argocd-ns/my-pod obj->obj (,,)]"
time="2020-06-03T13:37:40+09:00" level=info msg="Updating operation state. phase: -> Running, message: '' -> 'one or more tasks are running'" application=fake-app
time="2020-06-03T13:37:40+09:00" level=info msg="adding resource result, status: 'Synced', phase: 'Running', message: ''" application=fake-app kind=Pod name=my-pod namespace=fake-argocd-ns phase=Sync
time="2020-06-03T13:37:40+09:00" level=info msg=syncing application=fake-app skipHooks=false started=false
time="2020-06-03T13:37:40+09:00" level=info msg=tasks application=fake-app tasks="[Sync/0 resource /Pod:fake-argocd-ns/my-pod nil->obj (,,), SyncFail/0 hook /Pod:fake-argocd-ns/failed-sync-fail-hook nil->obj (,,), SyncFail/0 hook /Pod:fake-argocd-ns/successful-sync-fail-hook nil->obj (,,)]"
time="2020-06-03T13:37:40+09:00" level=info msg="apply failed" application=fake-app dryRun=true message= task="Sync/0 resource /Pod:fake-argocd-ns/my-pod nil->obj (,,)"
time="2020-06-03T13:37:40+09:00" level=info msg="adding resource result, status: 'SyncFailed', phase: 'Failed', message: ''" application=fake-app kind=Pod name=my-pod namespace=fake-argocd-ns phase=Sync
time="2020-06-03T13:37:40+09:00" level=info msg="apply failed" application=fake-app dryRun=true message= task="SyncFail/0 hook /Pod:fake-argocd-ns/failed-sync-fail-hook nil->obj (,,)"
time="2020-06-03T13:37:40+09:00" level=info msg="adding resource result, status: 'SyncFailed', phase: 'Failed', message: ''" application=fake-app kind=Pod name=failed-sync-fail-hook namespace=fake-argocd-ns phase=SyncFail
time="2020-06-03T13:37:40+09:00" level=info msg="Updating operation state. phase: -> Failed, message: '' -> 'one or more objects failed to apply (dry run)'" application=fake-app
time="2020-06-03T13:37:40+09:00" level=info msg=syncing application=fake-app skipHooks=false started=true
time="2020-06-03T13:37:40+09:00" level=info msg=tasks application=fake-app tasks="[Sync/0 resource /Pod:fake-argocd-ns/my-pod nil->obj (SyncFailed,Failed,), SyncFail/0 hook /Pod:fake-argocd-ns/failed-sync-fail-hook nil->obj (SyncFailed,Failed,), SyncFail/0 hook /Pod:fake-argocd-ns/successful-sync-fail-hook nil->obj (,,)]"
time="2020-06-03T13:37:40+09:00" level=info msg="apply failed" application=fake-app dryRun=false message= task="SyncFail/0 hook /Pod:fake-argocd-ns/failed-sync-fail-hook nil->obj (SyncFailed,Failed,)"
time="2020-06-03T13:37:40+09:00" level=info msg="adding resource result, status: 'Synced', phase: 'Running', message: ''" application=fake-app kind=Pod name=successful-sync-fail-hook namespace=fake-argocd-ns phase=SyncFail
time="2020-06-03T13:37:40+09:00" level=info msg="Updating operation state. phase: Failed -> Failed, message: 'one or more objects failed to apply (dry run)' -> 'one or more synchronization tasks completed unsuccessfully'" application=fake-app
FAIL
FAIL github.com/argoproj/gitops-engine/pkg/sync 0.560s
ok github.com/argoproj/gitops-engine/pkg/sync/common (cached)
ok github.com/argoproj/gitops-engine/pkg/sync/hook (cached)
ok github.com/argoproj/gitops-engine/pkg/sync/hook/helm (cached)
ok github.com/argoproj/gitops-engine/pkg/sync/ignore (cached)
ok github.com/argoproj/gitops-engine/pkg/sync/resource (cached)
ok github.com/argoproj/gitops-engine/pkg/sync/syncwaves (cached)
? github.com/argoproj/gitops-engine/pkg/utils/errors [no test files]
ok github.com/argoproj/gitops-engine/pkg/utils/exec (cached)
? github.com/argoproj/gitops-engine/pkg/utils/io [no test files]
? github.com/argoproj/gitops-engine/pkg/utils/json [no test files]
ok github.com/argoproj/gitops-engine/pkg/utils/kube (cached)
? github.com/argoproj/gitops-engine/pkg/utils/kube/kubetest [no test files]
? github.com/argoproj/gitops-engine/pkg/utils/testing [no test files]
? github.com/argoproj/gitops-engine/pkg/utils/text [no test files]
ok github.com/argoproj/gitops-engine/pkg/utils/tracing (cached)
FAIL