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

Make error code linter work with 6 digit SERVER ticket ids

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: Testing Infrastructure
    • None
    • Query Execution
    • Fully Compatible
    • QE 2025-02-17

      Running the buildscripts/errorcodes.py linter on code that adds new error codes for 6 digit SERVER ticket ids currently fails with errors such as

      $ python buildscripts/errorcodes.py --quiet
      MALFORMED ID: 10027300
        src/mongo/bson/json.cpp:1586:13:uassert(10027300
      MALFORMED ID: 10027301
        src/mongo/bson/json.cpp:1596:13:uassert(10027301
      ok: False
      
      ERRORS DETECTED. To correct, run "buildscripts/errorcodes.py --fix" to replace zero codes.
      Other errors require manual correction.
      

      This should be fix to allow new error codes from these tickets again.

            Assignee:
            jan.steemann@mongodb.com Jan Steemann
            Reporter:
            jan.steemann@mongodb.com Jan Steemann
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: