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 mongosetup-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
andmongos
binaries compiled in Evergreen, including patch builds, mainline builds, and release/production builds. - Requires authenticating to an internal MongoDB symbol mapping service.
Dependencies
- Python 3.7 or later (python3 from the MongoDB Toolchain is highly recommended)
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
Versioning
This project uses semver for versioning.
Please include a description what is added for each new version in CHANGELOG.md
.
Code Review
Please open a Github Pull Request for code review.
This project uses the Evergreen Commit Queue.
Add a PR comment with evergreen merge
to trigger a merge.
Deployment
Deployment to pypi is automatically triggered on merges to main.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file db-contrib-tool-0.1.14.tar.gz
.
File metadata
- Download URL: db-contrib-tool-0.1.14.tar.gz
- Upload date:
- Size: 37.8 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | ddc045a84f91eaba20b570276cd783300a57fda37bb3649735c27470c48c5048 |
|
MD5 | 13538459e98ad2f8eb1ec26e40c0586a |
|
BLAKE2b-256 | 408b05c7f6f546fb25ae8b27b049328c1d697db1fc30e3c4caaada503c7db030 |
File details
Details for the file db_contrib_tool-0.1.14-py3-none-any.whl
.
File metadata
- Download URL: db_contrib_tool-0.1.14-py3-none-any.whl
- Upload date:
- Size: 42.5 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 214835ceeae132d802a4462a9c33f88ba01a99cff8b0afa2c64ca310c8d581b2 |
|
MD5 | c71ba560bb54962cd4b97d8a4a34b18b |
|
BLAKE2b-256 | 87b7004a70e929155541f25d0fc62a3c382535f4a779789745647a6e338d8841 |