Skip to content

Commit that fixes a number of bugs.#302

Merged
sergey-serebryakov merged 1 commit into
mlcommons:masterfrom
sergey-serebryakov:bugix/configure
Apr 10, 2023
Merged

Commit that fixes a number of bugs.#302
sergey-serebryakov merged 1 commit into
mlcommons:masterfrom
sergey-serebryakov:bugix/configure

Conversation

@sergey-serebryakov

Copy link
Copy Markdown
Contributor
  • Adding missing help option for the run command.
  • Refactoring parse_cli_args function. Instead of many CLI parameters, it accepts two - parsed and unparsed arguments. Parsed arguments are those parsed by tools such as click or argparse. Unparsed arguments represent mlcube or task arguments.
  • Removing some unused imports.
  • Removing CliParsed.parse_optional_arg method. Its functionality has been merged into CliParser.parse_extra_arg method.
  • Adding more unit tests for MLCube CLI interface and mlcube.parser module.
  • Updating default values for new Docker and Singularity runners parameters (those that start with --). Default value is None now.
  • Docker runner was correctly processing new parameters (those starting with --) - it was ignoring empty values. Singularity runner did not check if parameters were not provided. This commit also fixes this.

- Adding missing help option for the `run` command.
- Refactoring `parse_cli_args` function. Instead of many CLI parameters, it accepts two - parsed and unparsed arguments. Parsed arguments are those parsed by tools such as `click` or `argparse`. Unparsed arguments represent mlcube or task arguments.
- Removing some unused imports.
- Removing `CliParsed.parse_optional_arg` method. Its functionality has been merged into `CliParser.parse_extra_arg` method.
- Adding more unit tests for MLCube CLI interface and `mlcube.parser` module.
- Updating default values for new Docker and Singularity runners parameters (those that start with `--`). Default value is None now.
- Docker runner was correctly processing new parameters (those starting with `--`) - it was ignoring empty values. Singularity runner did not check if parameters were not provided. This commit also fixes this.
@github-actions

Copy link
Copy Markdown
Contributor

MLCommons CLA bot All contributors have signed the MLCommons CLA ✍️ ✅

@sergey-serebryakov
sergey-serebryakov merged commit 12a2453 into mlcommons:master Apr 10, 2023
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 10, 2023
@sergey-serebryakov
sergey-serebryakov deleted the bugix/configure branch April 10, 2023 23:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant