In AutomationMeetings20120621 there was an extended discussion on the use of oslc_auto:state
in the Automation Requests and Automation Results along with its relationship to oslc_auto:verdict
in the Automation Result.
One conclusion was that the current values for oslc_auto:verdict
in the [[AutoSpecificationV2#State_and_Verdict_properties][specification] are inadequate. The issues are:
oslc_auto:incomplete
verdict is a poor one. The suggested replacement is oslc_auto:unavailable
to indicate the final verdict cannot yet be given.
oslc_auto:error
verdict means the automation could not be run to completion due to some error condition. This is not to be confused with oslc_auto:fail
which indicates that the automation completed, but the result of the automation is considered a failure (compile error, automated test failed, etc).
Proposed new wording for the oslc_auto:verdict
property values defined in the specification:
The additional property values for oslc_auto:verdict
are:
http://open-services.net/ns/auto#unavailable
- used to indicate an automation result is in a state where a final verdict such as oslc:auto_pass
or oslc_auto:fail
is not yet available. Usually used when the result is in a state other than oslc_auto:complete
.
http://open-services.net/ns/auto#pass
- used to indicate an automation result represents a successful execution.
http://open-services.net/ns/auto#warning
- used to indicate an automation result represents an execution which encountered conditions which prevented successful execution but did not result in a failed execution.
http://open-services.net/ns/auto#fail
- used to indicate an automation result represents a failed execution.
http://open-services.net/ns/auto#error
- used to indicate an automation result has completed but did not run successfully due to some error. This could be a timeout, automation coding error, network problem or other error which prevented the automation from running successfully to a pass, warning or fail verdict as described above.
The second issue centers around how to interpret oslc_auto:state
on the Automation Request and Automation Result artifacts. The workgroup has recognized that requests and results will have a variety of potential lifecycles in different provider implementations. Some examples of what the workgroup has heard:
The flexibility allows a range of provider implementations, but causes some potential hardship for consumers:
oslc_auto:complete
and then look at the oslc_auto:verdict
For discussion in the next Automation workgroup
oslc_auto:inProgress
and Request is oslc_auto:queued
or oslc_auto:canceled