Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-97983

Create evergreen task to check for correct usage of txn API in javascript tests

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Catalog and Routing
    • 2

      Following up the results and recommendations of SPM-3904, in order to avoid a wrong usage of the transaction API in our tests, which could impact negatively developer productivity by causing test only fixes bf's, we should add a new evergreen task in the static analysis variant that ensures newly added js tests are properly using the txn API. We could follow a similar approach to SERVER-97430, checking if the added file is a jstests, and if it's running transactions, ensure the txn api is used, or, by investigating about special linting rules in javascript.

            Assignee:
            Unassigned Unassigned
            Reporter:
            marcos.grillo@mongodb.com Marcos José Grillo Ramirez
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: