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

Update python code from optparse to argparse

    • Type: Icon: Bug Bug
    • Resolution: Won't Do
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Server Development Platform
    • ALL

      We currently have 19 different files using optparse:

      buildscripts/aggregate_tracefiles.py
      buildscripts/aws_ec2.py
      buildscripts/clang_format.py
      buildscripts/collect_resource_info.py
      buildscripts/combine_reports.py
      buildscripts/errorcodes.py
      buildscripts/eslint.py
      buildscripts/hang_analyzer.py
      buildscripts/make_archive.py
      buildscripts/mobile/benchrun_embedded_setup_android.py
      buildscripts/mongosymb.py
      buildscripts/promote_silent_failures.py
      buildscripts/remote_operations.py
      buildscripts/resmokelib/parser.py
      buildscripts/resmokelib/suitesconfig.py
      buildscripts/setup_multiversion_mongodb.py
      buildscripts/yaml_key_value.py
      pytests/powertest.py
      src/mongo/util/generate_icu_init_cpp.py
      

      optparse has been deprecated since python 2.7 (almost a decade) and the pathway to upgrade is well-defined.

            Assignee:
            backlog-server-devplatform [DO NOT ASSIGN] Backlog - Server Development Platform Team (SDP) (Inactive)
            Reporter:
            ben.caimano@mongodb.com Benjamin Caimano (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: