Skip to content

Code coverage is broken #767

@azeey

Description

@azeey

It seems code coverage is broken on gz-physics7 and later branches. Here's the error log from #764

/usr/bin/cmake -S/github/workspace -B/github/workspace/build --check-build-system CMakeFiles/Makefile.cmake 0
  make  -f CMakeFiles/Makefile2 coverage
  make[1]: Entering directory '/github/workspace/build'
  /usr/bin/cmake -S/github/workspace -B/github/workspace/build --check-build-system CMakeFiles/Makefile.cmake 0
  /usr/bin/cmake -E cmake_progress_start /github/workspace/build/CMakeFiles 0
  make  -f CMakeFiles/Makefile2 CMakeFiles/coverage.dir/all
  make[2]: Entering directory '/github/workspace/build'
  make  -f CMakeFiles/coverage.dir/build.make CMakeFiles/coverage.dir/depend
  make[3]: Entering directory '/github/workspace/build'
  cd /github/workspace/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /github/workspace /github/workspace /github/workspace/build /github/workspace/build /github/workspace/build/CMakeFiles/coverage.dir/DependInfo.cmake --color=
  make[3]: Leaving directory '/github/workspace/build'
  make  -f CMakeFiles/coverage.dir/build.make CMakeFiles/coverage.dir/build
  make[3]: Entering directory '/github/workspace/build'
  Processing code coverage counters and generating report.
  /usr/bin/cmake -E remove coverage.info.cleaned coverage.info
  /usr/bin/lcov -q --no-checksum --directory /github/workspace/build --capture --output-file coverage.info 2>/dev/null
  sed -i '/,-/d' coverage.info
  /usr/bin/lcov -q --remove coverage.info '*/test/*' '/usr/*' '*_TEST*' '*.cxx' 'moc_*.cpp' 'qrc_*.cpp' '*.pb.*' '*/build/*' '*/install/*' '/github/workspace/tpe/lib/src/aabb_tree/*' --output-file coverage.info.cleaned
  /usr/bin/genhtml -q --prefix /github/workspace --legend -o coverage coverage.info.cleaned
  /usr/bin/lcov --summary coverage.info.cleaned 2>&1 | grep lines | cut -d ' ' -f 4 | cut -d '%' -f 1 > coverage/lines.txt
  /usr/bin/lcov --summary coverage.info.cleaned 2>&1 | grep functions | cut -d ' ' -f 4 | cut -d '%' -f 1 > coverage/functions.txt
  /usr/bin/lcov --summary coverage.info.cleaned 2>&1 | grep branches | cut -d ' ' -f 4 | cut -d '%' -f 1 > coverage/branches.txt
  /usr/bin/cmake -E rename coverage.info.cleaned coverage.info
  Open ./coverage/index.html in your browser to view the coverage report.
  /usr/bin/lcov -q --zerocounters --directory /github/workspace/build
  make[3]: Leaving directory '/github/workspace/build'
  Built target coverage
  make[2]: Leaving directory '/github/workspace/build'
  /usr/bin/cmake -E cmake_progress_start /github/workspace/build/CMakeFiles 0
  make[1]: Leaving directory '/github/workspace/build'
  + curl -s https://codecov.io/bash
  + curl -s https://codecov.io/env
  ++ grep 'VERSION=\"[0-9\.]*\"' codecov
  ++ cut '-d"' -f2
  + VERSION=1.0.6
  + curl -s https://raw.githubusercontent.com/codecov/codecov-bash/1.0.6/SHA512SUM
  + shasum -a 512 -c hash_file
  codecov: OK
  env: OK
  + private_repo_token=
  + '[' -n '' ']'
  + bash codecov -X gcovout -X gcov
  
    _____          _
   / ____|        | |
  | |     ___   __| | ___  ___ _____   __
  | |    / _ \ / _` |/ _ \/ __/ _ \ \ / /
  | |___| (_) | (_| |  __/ (_| (_) \ V /
   \_____\___/ \__,_|\___|\___\___/ \_/
                                Bash-1.0.6
  
  
  ==> git version 2.34.1 found
  ==> curl 7.81.0 (x86_64-pc-linux-gnu) libcurl/7.81.0 OpenSSL/3.0.2 zlib/1.2.11 brotli/1.0.9 zstd/1.4.8 libidn2/2.3.2 libpsl/0.21.0 (+libidn2/2.3.2) libssh/0.9.6/openssl/zlib nghttp2/1.43.0 librtmp/2.3 OpenLDAP/2.5.19
  Release-Date: 2022-01-05
  Protocols: dict file ftp ftps gopher gophers http https imap imaps ldap ldaps mqtt pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp 
  Features: alt-svc AsynchDNS brotli GSS-API HSTS HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets zstd
  ==> GitHub Actions detected.
      Env vars used:
        -> GITHUB_ACTIONS:    true
        -> GITHUB_HEAD_REF:   ahcorde/7/gravity_static
        -> GITHUB_REF:        refs/pull/764/merge
        -> GITHUB_REPOSITORY: gazebosim/gz-physics
        -> GITHUB_RUN_ID:     16597637050
        -> GITHUB_SHA:        411c7d320c25f869d9958e6fbdc295c7479dacba
        -> GITHUB_WORKFLOW:   Ubuntu CI
  ->  Issue detecting commit SHA. Please run actions/checkout with fetch-depth > 1 or set to 0
      current dir:  /github/workspace/build
      project root: /github/workspace
      Yaml found at: codecov.yml
  ==> gcov disabled
  ==> Python coveragepy exists disable via -X coveragepy
      No .coverage file found.
  ==> Searching for coverage reports in:
      + /github/workspace
      -> Found 2 reports
  ==> Detecting git/mercurial file structure
  ==> Reading reports
      + /github/workspace/build/coverage.info bytes=3074949
      + /github/workspace/build/coverage.ignore bytes=24
  ==> Appending adjustments
      https://docs.codecov.io/docs/fixing-reports
      + Found adjustments
  ==> Gzipping contents
          172K	/tmp/codecov.N0RnLW.gz
  ==> Uploading reports
      url: https://codecov.io/
      query: branch=ahcorde%2F7%2Fgravity_static&commit=411c7d320c25f869d9958e6fbdc295c7479dacba&build=16597637050&build_url=https%3A%2F%2Fgithub.com%2Fgazebosim%2Fgz-physics%2Factions%2Fruns%2F16597637050&name=&tag=&slug=gazebosim%2Fgz-physics&service=github-actions&flags=&pr=764&job=Ubuntu+CI&cmd_args=X,X
  ->  Pinging Codecov
  https://codecov.io/upload/v4?package=bash-1.0.6&token=<hidden>&package=bash-1.0.6&token=&branch=ahcorde%2F7%2Fgravity_static&commit=411c7d320c25f869d9958e6fbdc295c7479dacba&build=16597637050&build_url=https%3A%2F%2Fgithub.com%2Fgazebosim%2Fgz-physics%2Factions%2Fruns%2F16597637050&name=&tag=&slug=gazebosim%2Fgz-physics&service=github-actions&flags=&pr=764&job=Ubuntu+CI&cmd_args=X,X
  {"message":"Rate limit reached. Please upload with the Codecov repository upload token to resolve issue. Expected time to availability: 1547s."}
  {"message":"Rate limit reached. Please upload with the Codecov repository upload token to resolve issue. Expected time to availability: 1545s."}
  {"message":"Rate limit reached. Please upload with the Codecov repository upload token to resolve issue. Expected time to availability: 1543s."}
  {"message":"Rate limit reached. Please upload with the Codecov repository upload token to resolve issue. Expected time to availability: 1541s."}
  {"message":"Rate limit reached. Please upload with the Codecov repository upload token to resolve issue. Expected time to availability: 1539s."}
  {"message":"Rate limit reached. Please upload with the Codecov repository upload token to resolve issue. Expected time to availability: 1537s."}
  
  429
  ==> Uploading to Codecov
    % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                   Dload  Upload   Total   Spent    Left  Speed
  
    0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
   99  169k    0     0  100  168k      0   512k --:--:-- --:--:-- --:--:--  511k
  100  169k  100   182  100  168k    550   511k --:--:-- --:--:-- --:--:--  510k
  Warning: Problem : HTTP error. Will retry in 2 seconds. 5 retries left.
  
    0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  100  169k  100   182  100  168k    814   756k --:--:-- --:--:-- --:--:--  758k
  Warning: Problem : HTTP error. Will retry in 2 seconds. 4 retries left.
  
    0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  100  169k  100   182  100  168k    925   858k --:--:-- --:--:-- --:--:--  862k
  Warning: Problem : HTTP error. Will retry in 2 seconds. 3 retries left.
  
    0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  100  169k  100   182  100  168k    849   788k --:--:-- --:--:-- --:--:--  794k
  Warning: Problem : HTTP error. Will retry in 2 seconds. 2 retries left.
  
    0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  100  169k  100   182  100  168k    941   873k --:--:-- --:--:-- --:--:--  876k
  Warning: Problem : HTTP error. Will retry in 2 seconds. 1 retries left.
  
    0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
   99  169k    0     0  100  168k      0   753k --:--:-- --:--:-- --:--:--  750k
  100  169k  100   182  100  168k    800   743k --:--:-- --:--:-- --:--:--  741k
      {'detail': ErrorDetail(string='Rate limit reached. Please upload with the Codecov repository upload token to resolve issue. Expected time to availability: 1536s.', code='throttled')}{'detail': ErrorDetail(string='Rate limit reached. Please upload with the Codecov repository upload token to resolve issue. Expected time to availability: 1534s.', code='throttled')}{'detail': ErrorDetail(string='Rate limit reached. Please upload with the Codecov repository upload token to resolve issue. Expected time to availability: 1532s.', code='throttled')}{'detail': ErrorDetail(string='Rate limit reached. Please upload with the Codecov repository upload token to resolve issue. Expected time to availability: 1530s.', code='throttled')}{'detail': ErrorDetail(string='Rate limit reached. Please upload with the Codecov repository upload token to resolve issue. Expected time to availability: 1527s.', code='throttled')}{'detail': ErrorDetail(string='Rate limit reached. Please upload with the Codecov repository upload token to resolve issue. Expected time to availability: 1525s.', code='throttled')}
  + echo ::endgroup::

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Inbox

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions