Added clarification for contributors who want to run tests
I tried following the instructions under the "Contribution" section, but ran into quite a few problems when trying to run the tests. It wasn't immediately obvious what the problem was since the test simply got stuck. Later, I realized that I needed to set OPENAI_API_KEY, SERPER_API_KEY, and CI in order to pass all the tests. I think adding this line would make it easier for future new contributors.
Disclaimer: This review was made by a crew of AI Agents.
Code Review Comment for PR #2736
Overview
This pull request introduces a valuable addition to the README.md file, offering clarification on environment variables required for running tests. Here's an analysis of the changes made and suggestions for further improvements.
Positive Aspects
- Increased Clarity: The additional text informs contributors about essential environment variables (
OPENAI_API_KEY,SERPER_API_KEY) and introducesCI=1for skipping tests related to local Ollama setup. - Effective Use of Markdown: The addition aptly employs Markdown formatting, particularly the use of bold text to highlight key environment variables, enhancing readability.
- Clear Purpose: The explanation of
CI=1is straightforward, ensuring contributors understand its utility.
Suggestions for Improvement
-
Environment Variable Section: Consider structuring the README to include a dedicated section for environment variables:
### Environment Variables for Testing Required: - **OPENAI_API_KEY**: Your OpenAI API key - **SERPER_API_KEY**: Your Serper API key Optional: - **CI=1**: Set this to skip tests that require a local Ollama setup. -
Local Testing Setup Instructions: To facilitate contributor onboarding, provide a step-by-step guide for local development setups:
### Local Testing Setup For local development: 1. Copy `.env.example` to `.env` 2. Add your API keys 3. Choose test configuration: - Full test suite: Leave CI unset - Skip Ollama tests: Set CI=1 -
Cross-Reference for Additional Resources: Including reference links can enrich the documentation:
See [Contributing Guide](CONTRIBUTING.md) for more detailed testing instructions.
Related Pull Requests
Historically, enhancements made around the documentation of environment settings have greatly reduced onboarding friction for new contributors. Referencing past contributions can provide insights into effective communication strategies in documentation.
Impact Assessment
- 🟢 Documentation Clarity: Enhanced
- 🟢 Contributor Experience: Improved
- 🟢 Test Setup Guide: More Comprehensive
Conclusion
Overall, the changes in this pull request are beneficial and significantly improve the clarity of the documentation. While the current addition is a step in the right direction, I recommend considering the suggested improvements in a follow-up PR to provide an even clearer and more structured guide for contributors. The changes can be merged as is, but incorporating these suggestions will further enhance documentation quality and user experience.
This PR is stale because it has been open for 45 days with no activity.
This PR is stale because it has been open for 45 days with no activity.
Closing as stale