CumulusCI icon indicating copy to clipboard operation
CumulusCI copied to clipboard

The `retry_failures` from the task `run_tests` is not working for me.

Open aniespica opened this issue 2 years ago • 0 comments

Describe the bug

When I run the run_tests, it always responds Retried: 0 even though some test fails for UNABLE_TO_LOCK_ROW. The cumulusci.yml has this setup:

tasks:
  run_tests:
    options:
      required_org_code_coverage_percent: 75
      managed: true
      retry_always: true
      retry_failures:
        - UNABLE_TO_LOCK_ROW

The response I'm getting is:

                   --------------------------------------------------------------------------------                        
                    Pass: 731  Retried: 0  Fail: 7  CompileFail: 0  Skip: 0                                                 
                    --------------------------------------------------------------------------------                        
                    --------------------------------------------------------------------------------                        
                    Failing Tests                                                                                           
                    -------------------------------------------------------------------------------- 
                    1: SyncWebServiceControllerTest.sendToRelatedFundMembershipTest3 - Fail                                 
                            Message: System.DmlException: Update failed. First exception on row 0 with id                   
                    0057i000009cLJmAAM; first error: UNABLE_TO_LOCK_ROW, unable to obtain exclusive access to this record or
                    1 records: 0057i000009cLJmAAM: []                                                                       
                            StackTrace: Class.vnfp.SyncWebServiceControllerTest.createDataWithFundraisingPlus: line 59,     
                    column 1                                                                                                
                    Class.vnfp.SyncWebServiceControllerTest.sendToRelatedFundMembershipTest3: line 147, column 1 

Please help me understand what I might be doing wrong in this scenario.

Reproduction steps

run cci task run run_tests --org dev output: Pass: 731 Retried: 0 Fail: 7 CompileFail: 0 Skip: 0 and the list of failing tests.

Your CumulusCI and Python versions

CumulusCI version: 3.75.1 (/opt/homebrew/bin/cci) Python version: 3.11.2 (/Users/veevart/.local/pipx/venvs/cumulusci/bin/python)

Operating System

macOS Monterey

Windows environment

PowerShell

CumulusCI installation method

pipx

Error Gist

No response

Additional information

No response

aniespica avatar Jun 01 '23 19:06 aniespica