- Using Bitbucket and bitbucket pipelines
- Python project
- Error:
Container ‘docker’ exceeded memory limit.
Sonar command:
- pipe: sonarsource/sonarcloud-scan:1.0.1
variables:
DEBUG: "true"
SONAR_TOKEN: ${SONARCLOUD_TOKEN}
EXTRA_ARGS: -Dsonar.host.url=https://sonarcloud.io
-Dsonar.organization=<redacted>
-Dsonar.projectKey=<redacted>
-Dsonar.projectVersion=${BITBUCKET_BRANCH}-${BITBUCKET_BUILD_NUMBER}
-Dsonar.pullrequest.bitbucketcloud.repository=${BITBUCKET_REPO_UUID}
-Dsonar.pullrequest.bitbucketcloud.owner=${BITBUCKET_REPO_OWNER_UUID}
-Dsonar.python.xunit.reportPath=test-results/results.xml
-Dsonar.python.coverage.reportPaths=test-results/coverage.xml
-Dsonar.sources=src
-Dsonar.exclusions=src/tests/**
-Dsonar.python.bandit.reportPaths=test-results/bandit-report.json
-Dsonar.python.pylint.reportPath=test-results/pylint.txt
Last successful run: 2020-06-16 00:03 UTC
First failed run: 2020-06-16 14:35 UTC
Everything was working fine yesterday. Today every pipeline run across several branches is failing with the docker memory error - including rerunning builds that worked yesterday. It always fails in the midst of the rules execution
.
What I’ve tried: I’m already using the size: 2x
option. I’ve tried setting the memory up to 10G instead of the 8 that is the default. That seems to have little to no effect. Also, normally we don’t have the DEBUG
option enabled. I’ve confirmed that we didn’t make any configuration changes recently.
Last few logs from the debug for one of the failed runs:
20:05:43.206 INFO: 117/117 source files have been analyzed
20:05:43.206 INFO: Starting rules execution
20:05:43.207 INFO: 117 source files to be analyzed
20:05:44.220 DEBUG: Not enough content in 'src/extraction/__init__.py' to have CPD blocks, it will not be part of the duplication detection
20:05:55.006 INFO: 7/117 files analyzed, current file: src/assignment/condition_value_preprocess_functions.py
20:06:05.409 INFO: 8/117 files analyzed, current file: src/models/main_model.py
20:06:15.781 INFO: 8/117 files analyzed, current file: src/models/main_model.py
20:06:26.069 INFO: 8/117 files analyzed, current file: src/models/main_model.py
20:06:37.022 INFO: 8/117 files analyzed, current file: src/models/main_model.py
20:06:49.771 INFO: 8/117 files analyzed, current file: src/models/main_model.py
20:07:01.451 INFO: 8/117 files analyzed, current file: src/models/main_model.py
20:07:11.938 INFO: 8/117 files analyzed, current file: src/models/main_model.py
20:07:22.109 INFO: 8/117 files analyzed, current file: src/models/main_model.py
20:07:32.790 INFO: 8/117 files analyzed, current file: src/models/main_model.py
20:07:43.428 INFO: 8/117 files analyzed, current file: src/models/main_model.py
20:07:54.300 INFO: 8/117 files analyzed, current file: src/models/main_model.py
20:08:05.310 INFO: 8/117 files analyzed, current file: src/models/main_model.py
20:08:16.227 INFO: 8/117 files analyzed, current file: src/models/main_model.py
20:08:26.912 INFO: 8/117 files analyzed, current file: src/models/main_model.py
20:08:37.566 INFO: 8/117 files analyzed, current file: src/models/main_model.py
20:08:48.587 INFO: 8/117 files analyzed, current file: src/models/main_model.py
time="2020-06-16T20:08:51Z" level=error msg="error waiting for container: unexpected EOF"