crewAI icon indicating copy to clipboard operation
crewAI copied to clipboard

Added clarification for contributors who want to run tests

Open andychan1998 opened this issue 1 year ago • 1 comments

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.

andychan1998 avatar May 01 '25 04:05 andychan1998

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

  1. Increased Clarity: The additional text informs contributors about essential environment variables (OPENAI_API_KEY, SERPER_API_KEY) and introduces CI=1 for skipping tests related to local Ollama setup.
  2. Effective Use of Markdown: The addition aptly employs Markdown formatting, particularly the use of bold text to highlight key environment variables, enhancing readability.
  3. Clear Purpose: The explanation of CI=1 is straightforward, ensuring contributors understand its utility.

Suggestions for Improvement

  1. 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.
    
  2. 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
    
  3. 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.

joaomdmoura avatar May 01 '25 04:05 joaomdmoura

This PR is stale because it has been open for 45 days with no activity.

github-actions[bot] avatar Jun 18 '25 12:06 github-actions[bot]

This PR is stale because it has been open for 45 days with no activity.

github-actions[bot] avatar Aug 05 '25 12:08 github-actions[bot]

Closing as stale

greysonlalonde avatar Sep 28 '25 15:09 greysonlalonde