Skip to content

v0.9.beta16

Pre-release
Pre-release
Compare
Choose a tag to compare
@amaslenn amaslenn released this 11 Oct 06:51
· 190 commits to main since this release
156ccf9

Highlights

Use subcommands instead of --mode <value> by @amaslenn in #194

New help message looks like this:

> cloudai --help
usage: cloudai [-h] [--log-file LOG_FILE] [--log-level {DEBUG,INFO,WARNING,ERROR,CRITICAL}]
               {uninstall,install,dry-run,run,generate-report,verify-systems,verify-tests,verify-test-scenarios} ...

Cloud AI

optional arguments:
  -h, --help            show this help message and exit
  --log-file LOG_FILE   The name of the log file (default: debug.log).
  --log-level {DEBUG,INFO,WARNING,ERROR,CRITICAL}
                        Set the logging level (default: INFO).

modes:
  {uninstall,install,dry-run,run,generate-report,verify-systems,verify-tests,verify-test-scenarios}
    uninstall           Remove the installed dependencies.
    install             Prepare execution by setting up env and dependencies for the tests to run.
    dry-run             Perform a dry-run of the test scenarios without executing them.
    run                 Execute the test scenarios.
    generate-report     Generate a report based on the test results.
    verify-systems      Verify the system configurations.
    verify-tests        Verify the test configurations.
    verify-test-scenarios
                        Verify the test scenario configurations.
  1. Each command (a.k.a mode) has own help message.
  2. Each command also has a uniq set of required and optional arguments. While for many commands options are the same, others are quite different, for example:
    > cloudai run --help
    usage: cloudai run [-h] --system-config SYSTEM_CONFIG --tests-dir TESTS_DIR --test-scenario TEST_SCENARIO [--output-dir OUTPUT_DIR]
    
    optional arguments:
      -h, --help            show this help message and exit
      --system-config SYSTEM_CONFIG
                            Path to the system configuration file.
      --tests-dir TESTS_DIR
                            Path to the test configuration directory.
      --test-scenario TEST_SCENARIO
                            Path to the test scenario file.
      --output-dir OUTPUT_DIR
                            Path to the output directory.
    
    > cloudai verify-tests --help
    usage: cloudai verify-tests [-h] test_configs
    
    positional arguments:
      test_configs  Path to the test configuration file or directory.
    
    optional arguments:
      -h, --help    show this help message and exit

What's Changed

Full Changelog: v0.9.beta15...v0.9.beta16