Thank you for your interest in contributing! This document provides guidelines and instructions for contributing to this project.
- Be respectful and inclusive
- Welcome newcomers and help them learn
- Focus on constructive feedback
- Respect different viewpoints and experiences
- Check if the bug has already been reported in Issues
- 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
- Check existing issues and discussions
- Create an issue describing:
- The enhancement and its use case
- Proposed approach (if you have one)
- Potential impact
-
Fork the repository and create a feature branch:
git checkout -b feature/your-feature-name
-
Make your changes:
- Follow existing code style and conventions
- Add tests if applicable
- Update documentation as needed
- Ensure Docker builds succeed
-
Test your changes:
# Test the component you modified cd ai-datacenter-sim docker-compose up --build
-
Commit your changes:
- Write clear, descriptive commit messages
- Reference related issues in commit messages
-
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
- Docker and Docker Compose
- Python 3.8+
- Node.js 16+ (for dashboard development)
- Git
-
Clone your fork:
git clone https://github.com/kardashev-lab/datacenter-cooling-sim.git cd datacenter-cooling-sim -
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
-
Run tests:
# Add component-specific test commands here
- Follow PEP 8 style guide
- Use type hints where appropriate
- Write docstrings for functions and classes
- Maximum line length: 100 characters
- Use multi-stage builds when possible
- Pin specific versions for reproducibility
- Keep images minimal
- Update README files when adding features
- Add inline comments for complex logic
- Include examples in documentation
ai-datacenter-sim/: Main simulation engineAlphaDataCenterCooling/: Cooling system testbed- Each component should have its own README
- Write unit tests for new features
- Ensure existing tests pass
- Test with Docker Compose setup
- Verify integration between components
- Update relevant README files
- Add code comments for complex logic
- Update API documentation if endpoints change
- Include usage examples
- All PRs require review
- Address review comments promptly
- Maintainers will merge after approval
- Large changes may require additional discussion
- Open a discussion in GitHub Discussions
- Check existing issues and documentation
- Reach out to maintainers
Thank you for contributing! 🎉