Project

General

Profile

Actions

action #176820

closed

force_soft_failure does not override status to softfail in post_fail_hook size:S

Added by jbaier_cz 20 days ago. Updated 9 days ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Regressions/Crashes
Target version:
Start date:
2025-02-09
Due date:
% Done:

0%

Estimated time:

Description

Observation

See documentation for 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 this does not work.

Expected result

The result of the module and job in reproducer 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.
Actions

Also available in: Atom PDF