Project

General

Profile

action #176820

Updated by livdywan 16 days ago

## Observation 

 See documentation for [`force_soft_failure`](https://open.qa/api/testapi/#_force_soft_failure): 
 > Similar to `record_soft_failure` but can be used to override the test module status to softfail from a `post_fail_hook` if the module would be set to fail otherwise. This can be used for easier tracking of known issues without needing to handle failed tests a lot. 

 However as can be seen in [reproducer](https://openqa.opensuse.org/tests/4842740/modules/reproducer/steps/5) this does not work. 

 ## Expected result 

 The result of the module and job in [reproducer](https://openqa.opensuse.org/tests/4842740/modules/reproducer/steps/5) is softfailed and not failed. 

 ## Acceptance Criteria 
 * **AC1**: force_soft_failure overrides the job result when called from a post_fail_hook 

 ## Further details 
 * `force_soft_failure` is only used in osado to turn passing modules into soft-failing ones so maybe this limitation has never been spotted.

Back