Skip to content

Latest commit

 

History

History
148 lines (109 loc) · 3.47 KB

CONTRIBUTING.md

File metadata and controls

148 lines (109 loc) · 3.47 KB

Contributing to Data Center Cooling Simulation Framework

Thank you for your interest in contributing! This document provides guidelines and instructions for contributing to this project.

Code of Conduct

  • Be respectful and inclusive
  • Welcome newcomers and help them learn
  • Focus on constructive feedback
  • Respect different viewpoints and experiences

How to Contribute

Reporting Bugs

  1. Check if the bug has already been reported in Issues
  2. If not, create a new issue with:
    • Clear title and description
    • Steps to reproduce
    • Expected vs actual behavior
    • Environment details (OS, Docker version, etc.)
    • Relevant logs or error messages

Suggesting Enhancements

  1. Check existing issues and discussions
  2. Create an issue describing:
    • The enhancement and its use case
    • Proposed approach (if you have one)
    • Potential impact

Pull Requests

  1. Fork the repository and create a feature branch:

    git checkout -b feature/your-feature-name
  2. Make your changes:

    • Follow existing code style and conventions
    • Add tests if applicable
    • Update documentation as needed
    • Ensure Docker builds succeed
  3. Test your changes:

    # Test the component you modified
    cd ai-datacenter-sim
    docker-compose up --build
  4. Commit your changes:

    • Write clear, descriptive commit messages
    • Reference related issues in commit messages
  5. Push and create a Pull Request:

    • Push to your fork
    • Create a PR with:
      • Clear description of changes
      • Reference to related issues
      • Screenshots (if UI changes)
      • Testing notes

Development Setup

Prerequisites

  • Docker and Docker Compose
  • Python 3.8+
  • Node.js 16+ (for dashboard development)
  • Git

Local Development

  1. Clone your fork:

    git clone https://github.com/kardashev-lab/datacenter-cooling-sim.git
    cd datacenter-cooling-sim
  2. Set up development environment:

    # For Python components
    python -m venv venv
    source venv/bin/activate  # On Windows: venv\Scripts\activate
    pip install -r requirements.txt
  3. Run tests:

    # Add component-specific test commands here

Coding Standards

Python

  • Follow PEP 8 style guide
  • Use type hints where appropriate
  • Write docstrings for functions and classes
  • Maximum line length: 100 characters

Docker

  • Use multi-stage builds when possible
  • Pin specific versions for reproducibility
  • Keep images minimal

Documentation

  • Update README files when adding features
  • Add inline comments for complex logic
  • Include examples in documentation

Project Structure

  • ai-datacenter-sim/: Main simulation engine
  • AlphaDataCenterCooling/: Cooling system testbed
  • Each component should have its own README

Testing

  • Write unit tests for new features
  • Ensure existing tests pass
  • Test with Docker Compose setup
  • Verify integration between components

Documentation

  • Update relevant README files
  • Add code comments for complex logic
  • Update API documentation if endpoints change
  • Include usage examples

Review Process

  1. All PRs require review
  2. Address review comments promptly
  3. Maintainers will merge after approval
  4. Large changes may require additional discussion

Questions?

  • Open a discussion in GitHub Discussions
  • Check existing issues and documentation
  • Reach out to maintainers

Thank you for contributing! 🎉