Skip to main content

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

Project description

db-contrib-tool

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

Table of contents

Description

The command line tool with various subcommands:

  • bisect - performs an evergreen-aware git-bisect to find the 'last passing version' and 'first failing version' of mongo
  • 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
  • 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

Usage

Print out help message:

$ db-contrib-tool -h

More information on the usage of setup-repro-env can be found here.

Contributor's Guide (local development)

Install project dependencies

This project uses poetry for dependency management.

$ poetry install

Run command line tool (local development)

$ ENV=DEV poetry run db-contrib-tool -h

Run linters

$ poetry run isort src tests
$ poetry run black src tests

Run tests

$ poetry run pytest

Pre-commit

This project has pre-commit configured. Pre-commit will run configured checks at git commit time.
To enable pre-commit on your local repository run:

$ poetry run pre-commit install

To run pre-commit manually:

$ poetry run pre-commit run

Test pipx package

Pipx installation recommendations can be found in installation section.
The tool can be installed via pipx from your local repo:

$ python3 -m pipx install /path/to/db-contrib-tool

Project details


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-0.1.13.tar.gz (37.3 kB view details)

Uploaded Source

Built Distribution

db_contrib_tool-0.1.13-py3-none-any.whl (42.3 kB view details)

Uploaded Python 3

File details

Details for the file db-contrib-tool-0.1.13.tar.gz.

File metadata

  • Download URL: db-contrib-tool-0.1.13.tar.gz
  • Upload date:
  • Size: 37.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.9.2 Linux/4.15.0-1044-aws

File hashes

Hashes for db-contrib-tool-0.1.13.tar.gz
Algorithm Hash digest
SHA256 87a73fe4c75cde9c359a6b178fdfb2af1bc33213094aae51628f15724cb6962e
MD5 a3394cecca2797bdf81aaaa19c1de6e5
BLAKE2b-256 e08c334b54c42972dae8e4cb268762e814b53346b9a99789b01eb4737f9bd994

See more details on using hashes here.

File details

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

File metadata

  • Download URL: db_contrib_tool-0.1.13-py3-none-any.whl
  • Upload date:
  • Size: 42.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.9.2 Linux/4.15.0-1044-aws

File hashes

Hashes for db_contrib_tool-0.1.13-py3-none-any.whl
Algorithm Hash digest
SHA256 665c0f806f4b4c37812a8f79587a8479c55a5158a99afd9e7618af784e8324dc
MD5 1cfc85d2c59443ef765226b2710294bf
BLAKE2b-256 8f7591a7f54723d47f821d0ecc1142d97cb75d2b3872f88fb29485a9e3328375

See more details on using hashes here.

Supported by

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