Skip to content

Conversation

@Xiaoming-AMD
Copy link
Collaborator

Summary

Add shared library system for Primus CLI with comprehensive test suite (19 tests passing).

What's New

  • 🔧 Runner Library (runner/lib/)

    • common.sh: Logging, error handling, utilities
    • validation.sh: Parameter validation for distributed training
    • config.sh: Configuration parsing and validation
  • 🧪 Test Suite (tests/runner/)

    • 19/19 tests passing ✅
    • Coverage: validation, logging, config handling
    • Master test runner: run_all_tests.sh
  • 🚀 CI Integration

    • Shell tests now run in GitHub Actions
    • Automatic validation on every PR

- Add runner/lib/ with common utilities, config handling, and validation
  - common.sh: Logging, environment detection, and utility functions
  - config.sh: Configuration parsing and validation
  - validation.sh: Parameter validation for distributed training

- Add tests/runner/ with comprehensive test suite
  - test_common.sh: Tests for common library functions
  - test_config.sh: Tests for configuration handling
  - test_validation.sh: Tests for validation functions (19 tests, all passing)
  - run_all_tests.sh: Master test runner script

All tests passing (19/19 for validation tests)
- Add 'Run Shell Tests' step to CI pipeline
- Run tests/runner/run_all_tests.sh after Python unit tests
- Tests runner/lib libraries (common, config, validation)
- Ensures shell script quality and functionality in CI
@Xiaoming-AMD Xiaoming-AMD changed the title Feature/cli/lib feat(CLI): Add Runner Library and Test Suite Nov 12, 2025
@wenxie-amd wenxie-amd merged commit 8c1e83c into main Nov 13, 2025
3 checks passed
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.

3 participants