Mistral工作流检查器
项目描述
用法
$ pip install mistral-lint $ mistral-lint path-to-files
在OpenStack的gerrit中审查审查?我们为您准备好了。
$ mistral-lint --review $GERRIT_REVIEW_ID
如果您添加了–diff,它将比较补丁与其父提交,使您更容易看到发生了什么变化。例如
$ mistral-lint --diff --review 428178 +E101: Input flavor_list is not used in Workflow tripleo.validations.v1.collect_flavors +W102: Workflow tripleo.validations.v1.collect_flavors has no description
当前检查器
这些是包含的当前检查器。
W101 & W102 描述
检查每个工作簿和工作流是否有描述。
W103 类型
检查工作流类型,如果给出“direct”,则给出警告表示它不是必需的
W103 task_names
检查任何使用task()表达式函数的用法都不包括对当前任务的引用。
E101 输入
检查工作流输入是否被使用。
E102 任务存在
检查在on-success、on-error或on-complete中使用任务时,任务是否在工作流中已定义。
E103、E104、E105 表达式
检查表达式是否有匹配的括号数量。使用库解析器验证 YAML 和 Jinja2 表达式。
示例输出
workbooks/baremetal.yaml W102: Workflow tripleo.baremetal.v1.set_node_state has no description W102: Workflow tripleo.baremetal.v1.set_power_state has no description W102: Workflow tripleo.baremetal.v1.manual_cleaning has no description E103: Input node_uuids is not used in Workflow tripleo.baremetal.v1.cellv2_discovery workbooks/deployment.yaml W102: Workflow tripleo.deployment.v1.deploy_on_server has no description W102: Workflow tripleo.deployment.v1.deploy_on_servers has no description workbooks/plan_management.yaml W102: Workflow tripleo.plan_management.v1.create_deployment_plan has no description W102: Workflow tripleo.plan_management.v1.update_deployment_plan has no description W102: Workflow tripleo.plan_management.v1.create_default_deployment_plan has no description workbooks/stack.yaml W102: Workflow tripleo.stack.v1.wait_for_stack_complete_or_failed has no description W102: Workflow tripleo.stack.v1.wait_for_stack_in_progress has no description W102: Workflow tripleo.stack.v1.wait_for_stack_does_not_exist has no description W102: Workflow tripleo.stack.v1.delete_stack has no description workbooks/validations.yaml W102: Workflow tripleo.validations.v1.run_validation has no description W102: Workflow tripleo.validations.v1.run_validations has no description W102: Workflow tripleo.validations.v1.run_groups has no description W102: Workflow tripleo.validations.v1.list has no description W102: Workflow tripleo.validations.v1.list_groups has no description W102: Workflow tripleo.validations.v1.add_validation_ssh_key_parameter has no description W102: Workflow tripleo.validations.v1.copy_ssh_key has no description E103: Input queue_name is not used in Workflow tripleo.validations.v1.add_validation_ssh_key_parameter
想法
检查任务是否存在(所有在 on-error、on-success、on-complete 等中提到的任务)。
检查所有任务都被调用。
检查所有任务都有 on-error/on-success 或 on-complete。
检查 zaqar 格式
与 zaqar 进行交互式工作流程,zaqar 发送继续代码。
检查子工作流程是否提供了队列名称
项目详情
下载文件
下载您平台上的文件。如果您不确定选择哪个,请了解有关安装包的更多信息。
源分发
mistral-lint-0.2.2.tar.gz (9.8 kB 查看哈希值)
构建分发
mistral_lint-0.2.2-py2.py3-none-any.whl (11.4 kB 查看哈希值)