Please search for similar issues before creating a ticket.
All fields below are required.
Description
Codecov is displaying “Unable to find commit in Bitbucket” for all commits, when viewing the recent commits.
We also notice that when we click on a commit, the commit page properly displays the commit title, but it also displays the following message: “Waiting for CI to complete.”.
Third issue is, not sure if related or not, codecov isn’t posting codecov results in bitbucket, even though we configured the global yaml.
Commit SHAs
eadfb8fa7ce17ef01c57b5a96b8ead93f4da849c
Repository
Repo is private.
Below is a link to the codecov project.
CI/CD or Build URL
Bitbucket pipelines.
Uploader
# Download the latest upload script and make it executable.
curl -Os https://uploader.codecov.io/latest/linux/codecov
chmod +x codecov
# Upload the coverage files to codecov.
cd "${BITBUCKET_CLONE_DIR}" || exit
"${CODECOV_DIR}/codecov" -t "${CODECOV_UPLOAD_TOKEN}"
Codecov Output
_____ _
/ ____| | |
| | ___ __| | ___ ___ _____ __
| | / _ \ / _` |/ _ \/ __/ _ \ \ / /
| |___| (_) | (_| | __/ (_| (_) \ V /
\_____\___/ \__,_|\___|\___\___/ \_/
Codecov report uploader 0.1.0
[2021-09-11T06:15:56.209Z] ['info'] => Project root located at: /opt/atlassian/pipelines/agent/build
[2021-09-11T06:15:56.210Z] ['info'] -> Token found by arguments
[2021-09-11T06:15:56.279Z] ['info'] Searching for coverage files...
[2021-09-11T06:15:56.344Z] ['info'] => Found 8 possible coverage files:
scripts/upload_code_coverage.sh
app_courier/coverage/lcov.info
app_customers/coverage/lcov.info
app_partners/coverage/lcov.info
common/internationalization/coverage/lcov.info
core/authentication/coverage/lcov.info
core/database/coverage/lcov.info
core/remote_config/coverage/lcov.info
[2021-09-11T06:15:56.344Z] ['info'] Processing /opt/atlassian/pipelines/agent/build/scripts/upload_code_coverage.sh...
[2021-09-11T06:15:56.346Z] ['info'] Processing /opt/atlassian/pipelines/agent/build/app_courier/coverage/lcov.info...
[2021-09-11T06:15:56.346Z] ['info'] Processing /opt/atlassian/pipelines/agent/build/app_customers/coverage/lcov.info...
[2021-09-11T06:15:56.347Z] ['info'] Processing /opt/atlassian/pipelines/agent/build/app_partners/coverage/lcov.info...
[2021-09-11T06:15:56.348Z] ['info'] Processing /opt/atlassian/pipelines/agent/build/common/internationalization/coverage/lcov.info...
[2021-09-11T06:15:56.348Z] ['info'] Processing /opt/atlassian/pipelines/agent/build/core/authentication/coverage/lcov.info...
[2021-09-11T06:15:56.349Z] ['info'] Processing /opt/atlassian/pipelines/agent/build/core/database/coverage/lcov.info...
[2021-09-11T06:15:56.349Z] ['info'] Processing /opt/atlassian/pipelines/agent/build/core/remote_config/coverage/lcov.info...
[2021-09-11T06:15:56.354Z] ['info'] Detected Bitbucket as the CI provider.
[2021-09-11T06:15:56.355Z] ['info'] Pinging Codecov: https://codecov.io/upload/v4?package=uploader-0.1.0&token=*******&branch=master&build=2319&build_url=&commit=70e2722d67ab7a8881ee51f760d63281aa586af5&job=2319&pr=&service=bitbucket&slug=spreeloop/place&name=&tag=&flags=&parent=
[2021-09-11T06:15:56.470Z] ['info'] Uploading...
[2021-09-11T06:15:56.642Z] ['info'] {"status":"success","resultURL":"https://codecov.io/bitbucket/spreeloop/place/commit/70e2722d67ab7a8881ee51f760d63281aa586af5"}
Expected Results
- Proper commit title.
- CI doesn’t show up as being in progress
- codecov bot posts on pull requests
Actual Results
- “Unable to find commit in Bitbucket” title.
- COmmit page says “Waiting for CI to complete.”
- codecov bot isn’t posting on pull requests
Additional Information
Any additional information, configuration or data that might be necessary to reproduce the issue.