Skip to main content

The `db-contrib-tool` - MongoDB's tool for contributors.

Project description

db-contrib-tool

The db-contrib-tool - a collection of tooling to support repro environments.

Description

The command line tool with various subcommands:

  • setup-repro-env
    • README.md
    • downloads and installs:
      • particular MongoDB versions
      • debug symbols
      • artifacts (including resmoke, python scripts etc)
      • python venv for resmoke, python scripts etc
  • setup-mongot-repro-env
    • README.md
    • Downloads and installs particular Mongot versions into install directory.
  • symbolize
    • README.md
    • Symbolizes stacktraces from recent mongod and mongos binaries compiled in Evergreen, including patch builds, mainline builds, and release/production builds.
    • Requires authenticating to an internal MongoDB symbol mapping service.

Dependencies

Installation

Make sure dependencies are installed. Use pipx to install db-contrib-tool that will be available globally on your machine:

python3 -m pip install pipx
python3 -m pipx ensurepath

Installing db-contrib-tool:

python3 -m pipx install db-contrib-tool

Upgrading db-contrib-tool:

python3 -m pipx upgrade db-contrib-tool

In case of installation errors, some of them may be related to pipx and could be fixed by re-installing pipx.

Removing pipx completely (WARNING! This will delete everything that is installed and managed by pipx):

python3 -m pip uninstall pipx
rm -rf ~/.local/pipx  # in case you're using the default pipx home directory

Now you can try to install again from scratch.

Usage

Print out help message:

db-contrib-tool --help

Download and install the v8.0 mongo binary:

db-contrib-tool setup-repro-env 8.0

Download other accompanying artifacts with flags:

db-contrib-tool setup-repro-env 8.0 \
  --downloadSymbols \
  --downloadArtifacts \
  --downloadPythonVenv

Download latest binary from the 10gen/mongo master branch:

db-contrib-tool setup-repro-env master

There are more ways to specify binary versions - see setup_repro_env/README.md.

Contributing

See ./CONTRIBUTING.md on details for development on this project.

Project details


Release history Release notifications | RSS feed

This version

2.2.7

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

db_contrib_tool-2.2.7.tar.gz (52.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

db_contrib_tool-2.2.7-py3-none-any.whl (66.3 kB view details)

Uploaded Python 3

File details

Details for the file db_contrib_tool-2.2.7.tar.gz.

File metadata

  • Download URL: db_contrib_tool-2.2.7.tar.gz
  • Upload date:
  • Size: 52.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.9.25 Linux/5.4.0-1009-aws

File hashes

Hashes for db_contrib_tool-2.2.7.tar.gz
Algorithm Hash digest
SHA256 f0241a9cf79a86fbdc0f7826db48286623fd138add67b8d53ea9b5dd0b4a3f14
MD5 e8b788b725fcf86d182fc06e9dfd4659
BLAKE2b-256 7e19ce2d43813c0563a0ca6a9c57b404ada3848f1a0b441818b1494bd9df56f0

See more details on using hashes here.

File details

Details for the file db_contrib_tool-2.2.7-py3-none-any.whl.

File metadata

  • Download URL: db_contrib_tool-2.2.7-py3-none-any.whl
  • Upload date:
  • Size: 66.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.9.25 Linux/5.4.0-1009-aws

File hashes

Hashes for db_contrib_tool-2.2.7-py3-none-any.whl
Algorithm Hash digest
SHA256 551b89b08b02f96f297e1ffc6de1e4d34538c51baa7d4cd8f4c6eef91ea78fbd
MD5 ee50a91f0788618439fd04196945643a
BLAKE2b-256 cf5c4bfe978b837b005cde9a8f41da0c579b3399c3304f25d4571f8a2ef4e4eb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page