BitBucket Integration Not Working

Description

CodeCov is not displaying commit information, BitBucket avatars, or commenting on pull requests.

1 - When I view the CodeCov dashboard for this project, I see a list of commits all saying “Unable to find commit in Bitbucket”. If I click on one of the commits I am able to see the report and commit title. If I refresh the dashboard the commit title now shows up.

2 - Avatar logos are just broken links. In the browser console I get the error: Refused to load the image 'https://d301sr5gafysq2.cloudfront.net/8c0b162f5f7b/img/default_workspace_avatar/workspace_code.svg' because it violates the following Content Security Policy directive: "img-src 'self' https://googletagmanager.com https://googleads.g.doubleclick.net https://www.google.com https://www.google-analytics.com http://www.google-analytics.com https://bitbucket-assetroot.s3.amazonaws.com https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net https://codecov-cdn.storage.googleapis.com/ https://avatar-cdn.atlassian.com https://avatars.io https://bitbucket.org http://www.gravatar.com https://secure.gravatar.com https://avatars0.githubusercontent.com https://assets.gitlab-static.net https://gitlab.com *.stripe.com http://t.co http://p.adsymptotic.com https://*.linkedin.com data:".

2 - I also get a 404 when Codecov tries to load https://bitbucket.org/workspaces/Tony%20Giancola/avatar

3 - Codecov shows some PRs for a project (Codecov). But CodeCov does not create comments on the PRs that it displays. And it does not show #28 (https://bitbucket.org/jobapp/internal-applicant-support-ui/pull-requests/28) which has a successful build (https://app.circleci.com/pipelines/bitbucket/jobapp/internal-applicant-support-ui/127/workflows/26ff721a-7912-462f-8107-b3a85d930106) and CodeCov upload:

  _____          _
 / ____|        | |
| |     ___   __| | ___  ___ _____   __
| |    / _ \ / _` |/ _ \/ __/ _ \ \ / /
| |___| (_) | (_| |  __/ (_| (_) \ V /
 \_____\___/ \__,_|\___|\___\___/ \_/
                              Bash-20201217-3d3df35


   git version 2.11.0 found
   curl 7.52.1 (x86_64-pc-linux-gnu) libcurl/7.52.1 OpenSSL/1.0.2r zlib/1.2.8 libidn2/0.16 libpsl/0.17.0 (+libidn2/0.16) libssh2/1.7.0 nghttp2/1.18.1 librtmp/2.3
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp 
Features: AsynchDNS IDN IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz TLS-SRP HTTP2 UnixSockets HTTPS-proxy PSL  found
==> Circle CI detected.
    project root: .
--> token set from env
    Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml
==> Running gcov in . (disable via -X gcov)
==> Python coveragepy not found
==> Searching for coverage reports in:
    + .
    -> Found 3 reports
==> Detecting git/mercurial file structure
==> Reading reports
    + ./coverage/coverage-final.json bytes=32709
    + ./coverage/clover.xml bytes=12899
    + ./coverage/lcov.info bytes=5832
==> Appending adjustments
    https://docs.codecov.io/docs/fixing-reports
    -> No adjustments found
==> Gzipping contents
        8.0K	/tmp/codecov.uxrxEJ.gz
==> Uploading reports
    url: https://codecov.io
    query: branch=feature%2FTRDEV-7325&commit=fc2a63ed451da3ac5c9c8e7e0cd91a2106aa625b&build=631&build_url=&name=&tag=&slug=jobapp%2Finternal-applicant-support-ui&service=circleci&flags=&pr=&job=0&cmd_args=
->  Pinging Codecov
https://codecov.io/upload/v4?package=bash-20201217-3d3df35&token=secret&branch=feature%2FTRDEV-7325&commit=fc2a63ed451da3ac5c9c8e7e0cd91a2106aa625b&build=631&build_url=&name=&tag=&slug=jobapp%2Finternal-applicant-support-ui&service=circleci&flags=&pr=&job=0&cmd_args=
->  Uploading to
https://storage.googleapis.com/codecov/v4/raw/2020-12-22/BFD651936DC8103C89CFECC2659A76D6/fc2a63ed451da3ac5c9c8e7e0cd91a2106aa625b/789b37c7-11dc-4b00-9fca-acc8a59d7b46.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EQX6OZVJGHKK3633AAFGLBUCOOATRACRQRQF6HMSMLYUP6EAD6XSWAAY%2F20201222%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20201222T174549Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=48d5cd39c6150f66e6ad56756672c19a35b22237372f9ab1a95fe3d5e29d3768
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  7780    0     0  100  7780      0  43112 --:--:-- --:--:-- --:--:-- 43222
    -> View reports at https://codecov.io/bitbucket/jobapp/internal-applicant-support-ui/commit/fc2a63ed451da3ac5c9c8e7e0cd91a2106aa625b

Commit SHAs

1 - https://codecov.io/bb/jobapp/internal-applicant-support-ui/commit/26410be913ce7f9996dba7612109d3c0ad244ec7/

2 - n/a

3 - https://codecov.io/bitbucket/jobapp/internal-applicant-support-ui/commit/fc2a63ed451da3ac5c9c8e7e0cd91a2106aa625b

Repository

https://codecov.io/bitbucket/jobapp/internal-applicant-support-ui/

CI/CD or Build URL

See above

Uploader

bash

Codecov Output

See above

Expected Results

1 - I expect the title and author of commits to be displayed on the CodeCov dashboard without having to click into each one

2 - I expect avatars to be displayed OR the UI to show an empty icon / default avatar. The broken link and alt text screws up the layout.

3 - I expect CodeCov to display information on all pull requests and add comments to all pull requests

Actual Results

See above

Additional Information

See above

Hi @thed000d,

1 - Can you provide a link for this and a screenshot?
2 - Thanks here, we are working on this issue.
3 - I don’t believe I can view that PR. Can you provide a new commit SHA so we can investigate?