Skip to content

PYTHON-5343 Clean up contributing docs #2390

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 16, 2025
Merged

Conversation

blink1073
Copy link
Member

  • Moves the SSL considerations from the Team Practices document to the contributing guide
  • Cleans up the instructions for starting a server
  • Specifies that secrets are only required for certain tests

@blink1073 blink1073 requested a review from NoahStapp June 16, 2025 14:55
CONTRIBUTING.md Outdated
- Run `just install` to set a local virtual environment, or you can manually
create a virtual environment and run `pytest` directly. If you want to use a specific
version of Python, remove the `.venv` folder and set `PYTHON_BINARY` before running `just install`.
- Ensure you have started the appropriate Mongo Server(s). You can run `just run-server` with optional args
to set up the server. All given options will be passed to
`run-orchestration.sh` in `$DRIVERS_TOOLS`. See `$DRIVERS_TOOLS/evergreen/run-orchestration.sh -h`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$DRIVERS_TOOLS/evergreen/run-orchestration.sh -h should be a link to the actual file in drivers-evergreen-tools.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

### SSL tests

- Run `just run-server --ssl` to start the server with TLS enabled.
- Run `just setup-tests --ssl`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line is just a repeat of the previous one.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, they use different targets

CONTRIBUTING.md Outdated
- Run `just setup-tests --ssl`.
- Run `just run-tests`

Note: for general testing purposes with an TLS-enabled server, you can use the following:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd call out that this is for testing ONLY, and should never be used in a non-testing context.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@blink1073 blink1073 requested a review from NoahStapp June 16, 2025 15:44
@blink1073 blink1073 merged commit 8a94de1 into mongodb:master Jun 16, 2025
77 of 79 checks passed
@blink1073 blink1073 deleted the PYTHON-5343 branch June 16, 2025 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants