Blazemeter / taurus
Showing 1 of 1 files from the diff.

@@ -24,6 +24,7 @@
Loading
24 24
25 25
BZA_TEST_DATA_RECEIVED = 100
26 26
ENDED = 140
27 +
PERMANENT_ERROR_CODES = [500]
27 28
28 29
29 30
def send_with_retry(method):
@@ -32,7 +33,13 @@
Loading
32 33
        try:
33 34
            method(self, *args, **kwargs)
34 35
        except (IOError, TaurusNetworkError):
35 -
            self.log.debug("Error sending data: %s", traceback.format_exc())
36 +
            error_msg = f"Error sending data: {traceback.format_exc()}"
37 +
38 +
            if any(f"API call error {code}" in error_msg for code in PERMANENT_ERROR_CODES):
39 +
                self.log.error(error_msg)
40 +
                return
41 +
42 +
            self.log.debug(error_msg)
36 43
            self.log.warning("Failed to send data, will retry in %s sec...", self.timeout)
37 44
            try:
38 45
                time.sleep(self.timeout)
Files Coverage
bzt 90.29%
Project Totals (70 files) 90.29%
9264.2
TRAVIS_PYTHON_VERSION=3.8
TRAVIS_OS_NAME=linux
1
codecov:
2
  notify:
3
    require_ci_to_pass: yes
4

5
coverage:
6
  round: up
7

8
ignore:
9
  - bzt/resources
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading