Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-6502

Use a python venv wherever we use Python in driver CI

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 5.10.0, 6.11.0
    • Affects Version/s: None
    • Component/s: None
    • 0.5
    • Not Needed
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      Use Case

      As a driver engineer,
      I want to use a venv and find-python from drivers evergreen tools,
      So that so that drivers-evergreen-tools can be sure we're always using the correct version of Python in our CI.

      User Experience

      Some places in Node's CI we rely on the system python/pip, which can lead to compatibility issues when we call drivers-evergreen-tools scripts and broken CI.

      Dependencies

      • Once we complete this, drivers-evergreen-tools can rely on every driver (that we know of) using the correct version of python.  This lets Steve and the other maintainers make improvements to the tooling (upgrading python versions, reliably adding new packages / dependencies, etc).

      Risks/Unknowns

      n/a

      Acceptance Criteria

      Implementation Requirements

      • Audit the driver for all usages of Python scripts from drivers-evergreen-tools.   This includes scripts that exist in our `config.yml`.
      • Launch each script in a python venv from drivers-evergreen-tools.

      Testing Requirements

      • CI passes.

      Documentation Requirements

      • n/a

      Follow Up Requirements

      • n/a

            Assignee:
            steve.silvester@mongodb.com Steve Silvester
            Reporter:
            bailey.pearson@mongodb.com Bailey Pearson
            Bailey Pearson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: