Bug 1078610
| Summary: | The output of command "bkr workflow-installer-test" should be consistent with other workflow command. | ||
|---|---|---|---|
| Product: | [Retired] Beaker | Reporter: | xjia <xjia> |
| Component: | command line | Assignee: | Amit Saha <asaha> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | tools-bugs <tools-bugs> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | develop | CC: | aigao, asaha, atodorov, dcallagh, ebaak, rmancy, tools-bugs, xtian |
| Target Milestone: | 0.16.2 | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-04-28 23:00:38 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
xjia
2014-03-20 02:48:39 UTC
To clarify, the guiding principle here is consistency: we want workflow-installer-test to behave consistently with all other bkr workflow commands, because needless inconsistency is surprising and introduces cognitive load on our users for no reason. The inconsistency here is related to the --verbose option, which was added to all workflow commands as part of the patch for workflow-installer-test but it has no effect in any of the others. Also, no other workflow commands print the message "Dry run only, nothing submitted." That's because the reason to a dry run is to see the generated XML using --debug, in which case having the extra sentence appear on stdout makes the output invalid XML. So the expected result here is that workflow-installer-test behaves the same as the other workflow commands: * If --debug is given, the generated XML is printed (this works currently) * If --dryrun is given, no message about that fact is printed * If submission succeeds, a message is printed like this: Submitted: ['J:123'] Additionally, the --verbose option should be removed from all workflow commands since it will have no effect anymore. (In reply to Dan Callaghan from comment #3) > Additionally, the --verbose option should be removed from all workflow > commands since it will have no effect anymore. If anyone wants to enhance the workflow commands to produce different output (for example, add a way to silence the Submitted message) we can do that. I know Ray was keen for the workflow commands to have a --verbose switch. But that needs to be a separate RFE and the patch needs to be applied to all workflow commands consistently. It also cannot change the existing default output format of the commands since that would be a break in compatibility. Beaker 0.16.2 has been released. |