Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-46098

Investigate failures due to miscellaneous import errors

    XMLWordPrintable

Details

    • Task
    • Resolution: Fixed
    • Major
    • 7.0.0
    • Cheshire-Cat
    • tools
    • 1

    Description

      What's the issue?
      The integration testing is currently failing to run due to (what appear to be) import errors. We should investigate why we're seeing these errors and try get it back up-and-running again.

      Considering we haven't changed examinador for a while, and the relevant imports haven't changed considerably I imagine it may be an environmental issue on the Jenkins machines/perhaps there has been a Python upgrade.

      Examine error

      Error in file '/home/couchbase/jenkins/workspace/backup_integration_tests_master/examinador/cbm_tests' on line 4: Importing test library '/home/couchbase/jenkins/workspace/backup_integration_tests_master/examinador/libraries/sdk_utils.py' failed: ImportError: cannot import name 'Protocol' from 'couchbase_core._pyport' (/home/couchbase/jenkins/workspace/backup_integration_tests_master/examinador/robot-env/lib/python3.7/site-packages/couchbase_core/_pyport.py)
      Traceback (most recent call last):
        File "/home/couchbase/jenkins/workspace/backup_integration_tests_master/examinador/libraries/sdk_utils.py", line 8, in <module>
          from couchbase.cluster import Cluster, ClusterOptions, QueryOptions
        File "/home/couchbase/jenkins/workspace/backup_integration_tests_master/examinador/robot-env/lib/python3.7/site-packages/couchbase/cluster.py", line 5, in <module>
          from couchbase.management.queries import QueryIndexManager
        File "/home/couchbase/jenkins/workspace/backup_integration_tests_master/examinador/robot-env/lib/python3.7/site-packages/couchbase/management/queries.py", line 8, in <module>
          from couchbase_core._pyport import Protocol
      PYTHONPATH:
        /home/couchbase/jenkins/workspace/backup_integration_tests_master/examinador/robot-env/bin
        /usr/lib/python37.zip
        /usr/lib/python3.7
        /usr/lib/python3.7/lib-dynload
        /home/couchbase/jenkins/workspace/backup_integration_tests_master/examinador/robot-env/lib/python3.7/site-packages
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            james.lee James Lee
            james.lee James Lee
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty