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

Get pretty printer tests running under v5

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Server Programmability
    • Fully Compatible
    • Programmability 2025-02-17, Programmability 2025-03-03, Programmability 2025-03-17
    • 200
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The v5 bazel toolchains don't currently provide a gdb binary, so the pretty printer tests can't run using the v5 bazel toolchain as-is. I've also been unable to get them to run directly from scons with a v5 toolchain installed under /opt.

      Until they get ported to bazel, it's going to be a bit of a pain to run the pretty printer tests. A command like this will build and run them: ./buildscripts/scons.py --opt=off --dbg=on --variables-files=etc/scons/mongodbtoolchain_v5_clang.vars --link-model=dynamic +pretty-printer-tests. Be warned that it seems to build nearly everything (and these tests won't run through ninja either), so it takes a long time.

      To bypass the issue with running directly from scons and actually test the pretty printers against a v5 toolchain, you can do the following: ./buildscripts/scons.py --opt=off --dbg=on --variables-files=etc/scons/mongodbtoolchain_v5_clang.vars --link-model=dynamic build/install/bin/pretty_printer_test_launcher_optimizer_gdb_test.py build/install/bin/pretty_printer_test_launcher_pretty_printer_test.py build/install/bin/pretty_printer_test_launcher_lock_gdb_test.py build/install/bin/pretty_printer_test_program and then run each of those three python scripts.

      There's a better alternative in SERVER-79122: python buildscripts/scons.py --dbg=off --opt=on --link-model=dynamic --variables-files=./etc/scons/mongodbtoolchain_stable_gcc.vars GDB_PPTEST_PYONLY=1 install-pretty-printer-tests-pyonly
      python buildscripts/resmoke.py run --suite=pretty-printer-tests

            Assignee:
            james.bronsted@mongodb.com James Bronsted
            Reporter:
            ryan.berryhill@mongodb.com Ryan Berryhill
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              None
              None
              None
              None