Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Mar 18, 2024. It is now read-only.
This repository was archived by the owner on Mar 18, 2024. It is now read-only.

Parallel apex retry doesn't handle error cases: 'Too many concurrent Apex compilations during resource mitigation' & 'LIMIT_EXCEEDED' #1437

Description

@jdrbc

Describe the bug

Parallel apex tests that fail with concurrency errors: 'Too many concurrent Apex compilations during resource mitigation' or 'LIMIT_EXCEEDED' are not retried.

Suggested fix: #1436

To Reproduce
Steps to reproduce the behavior:

@IsTest
class ParallelTest {
    @IsTest
    static void limitExceeded() {
	    System.assert(false, 'LIMIT_EXCEEDED');
    }

    @IsTest
    static void otherError() {
	    System.assert(false, 'Too many concurrent Apex compilations during resource mitigation');
    }

    @IsTest
    static void successTest() {
	    System.assert(true, 'yes');
    }
}

Expected behavior

Tests are re-run automatically due to concurrency error message.

Screenshots
n/a

Platform Details (please complete the following information):
n/a

Additional context
n/a

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementenhancement to existing feature

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions