Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-29612

PTP CI: test suite logs not properly displayed

XMLWordPrintable

    • No
    • CNF RAN Sprint 249, CNF RAN Sprint 250
    • 2
    • False
    • Hide

      None

      Show
      None

      The logs in test suite are not properly displayed due to log.SetLogger() not called. This makes it hard to debug test issues.

      Example:

      [38;5;243m/tmp/cnf-aahQA/ptp-operator-conformance-test/test/conformance/parallel/parallel_suite_test.go:41[0m
      
        [38;5;243mCaptured StdOut/StdErr Output >>[0m
        [controller-runtime] log.SetLogger(...) was never called; logs will not be displayed.
        Detected at:
        	>  goroutine 82 [running]:
        	>  runtime/debug.Stack()
        	>  	/usr/local/go/src/runtime/debug/stack.go:24 +0x65
        	>  sigs.k8s.io/controller-runtime/pkg/log.eventuallyFulfillRoot()
        	>  	/tmp/cnf-aahQA/ptp-operator-conformance-test/vendor/sigs.k8s.io/controller-runtime/pkg/log/log.go:60 +0xcd
        	>  sigs.k8s.io/controller-runtime/pkg/log.(*delegatingLogSink).WithName(0xc00037aa00, {0x1e44ed6, 0x14})
        	>  	/tmp/cnf-aahQA/ptp-operator-conformance-test/vendor/sigs.k8s.io/controller-runtime/pkg/log/deleg.go:147 +0x4c
        	>  github.com/go-logr/logr.Logger.WithName({{0x211cd18, 0xc00037aa00}, 0x0}, {0x1e44ed6?, 0x4168e5?})
        	>  	/tmp/cnf-aahQA/ptp-operator-conformance-test/vendor/github.com/go-logr/logr/logr.go:336 +0x46
        	>  sigs.k8s.io/controller-runtime/pkg/client.newClient(0x0?, {0x0, 0xc0004d2380, {0x0, 0x0}, 0x0, {0x0, 0x0}, 0x0})
        	>  	/tmp/cnf-aahQA/ptp-operator-conformance-test/vendor/sigs.k8s.io/controller-runtime/pkg/client/client.go:122 +0xff
        	>  sigs.k8s.io/controller-runtime/pkg/client.New(0x0?, {0x0, 0xc0004d2380, {0x0, 0x0}, 0x0, {0x0, 0x0}, 0x0})
        	>  	/tmp/cnf-aahQA/ptp-operator-conformance-test/vendor/sigs.k8s.io/controller-runtime/pkg/client/client.go:103 +0x85
        	>  github.com/openshift/ptp-operator/test/pkg/client.New({0x0?, 0x8?})
        	>  	/tmp/cnf-aahQA/ptp-operator-conformance-test/test/pkg/client/clients.go:95 +0x44e
        	>  github.com/openshift/ptp-operator/test/conformance/parallel.glob..func3({0xc00005d998?, 0x0?, 0x0?})
        	>  	/tmp/cnf-aahQA/ptp-operator-conformance-test/test/conformance/parallel/parallel_suite_test.go:85 +0x58
        	>  reflect.Value.call({0x1a97560?, 0x1f5d288?, 0x13?}, {0x1e2c310, 0x4}, {0xc00041c0a8, 0x1, 0x1?})
        	>  	/usr/local/go/src/reflect/value.go:586 +0xb0b
        	>  reflect.Value.Call({0x1a97560?, 0x1f5d288?, 0x8?}, {0xc00041c0a8?, 0x1e27a20?, 0x0?})
        	>  	/usr/local/go/src/reflect/value.go:370 +0xbc
        	>  github.com/onsi/ginkgo/v2/internal.extractSynchronizedBeforeSuiteAllProcsBody.func1({0x211c460?, 0xc0003a6300?}, {0xc00005d998?, 0x0?, 0x0?})
        	>  	/tmp/cnf-aahQA/ptp-operator-conformance-test/vendor/github.com/onsi/ginkgo/v2/internal/node.go:521 +0x35f
        	>  github.com/onsi/ginkgo/v2/internal.(*Suite).runSuiteNode.func2({0x211c460?, 0xc0003a6300?})
        	>  	/tmp/cnf-aahQA/ptp-operator-conformance-test/vendor/github.com/onsi/ginkgo/v2/internal/suite.go:644 +0x3e
        	>  github.com/onsi/ginkgo/v2/internal.(*Suite).runNode.func3()
        	>  	/tmp/cnf-aahQA/ptp-operator-conformance-test/vendor/github.com/onsi/ginkgo/v2/internal/suite.go:865 +0x98
        	>  created by github.com/onsi/ginkgo/v2/internal.(*Suite).runNode
        	>  	/tmp/cnf-aahQA/ptp-operator-conformance-test/vendor/github.com/onsi/ginkgo/v2/internal/suite.go:852 +0xd65 

              jacding@redhat.com Jack Ding
              jacding@redhat.com Jack Ding
              Bonnie Block Bonnie Block
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: