Skip to content

Issue-LowPrio: fix the code coverage job in the workflow file ci_cd.yaml #168

@alan-techdev

Description

@alan-techdev

The job related to code coverage report upload passes but it is not uploading the coverage report
see issue from log
see the job codcove_coverage_host
step called Upload Coverage Reports to CodCov

read: codecov

log:
for file in coverage*.xml; do
OS_NAME=$(echo $file | sed -E "s/coverage-(\w+)-/\1/")
PY_VERSION=$(echo $file | sed -E "s/coverage-\w+-(\d.)+/\1/")
./codecov -f $file -e "OS=$OS_NAME,PYTHON=$PY_VERSION" --flags unittests --verbose
echo "Sent to Codecov: $file !"
done
shell: /usr/bin/bash -e {0}
env:
FULL_MATRIX_STRATEGY: {"platform": ["ubuntu-latest", "macos-latest", "windows-latest"], "python-version": ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]}
UBUNTU_PY313_STRATEGY: {"platform":["ubuntu-latest"], "python-version":["3.13"]}
TEST_STRATEGY: {"platform":["ubuntu-latest", "macos-latest", "windows-latest"], "python-version":["3.13"]}
RUN_UNIT_TESTS: true
RUN_CODE_COVERAGE: true
RUN_LINT_CHECKS: false
DOCKER_JOB_ON: false
PUBLISH_ON_PYPI: false
DOCS_ON: false
DRAW_DEPENDENCIES: false
ALWAYS_BUILD_N_PUBLSIH_DOCKER: false
DOCKER_JOB_POLICY: CDeployment
ALWAYS_LINT: false
LINT_JOB_POLICY: 2
STATIC_ANALYSIS_PY: 3.13
PYLINT_SCORE_THRESHOLD: 8.2
ALWAYS_DOCS: false
DOCS_JOB_POLICY: 2
DOCS_BUILDER_RUNTIME: 3.13
ALWAYS_CODE_VIZ: false
CODE_VIZ_POLICY: 2
[2025-07-16T15:46:14.536Z] ['verbose'] Start of uploader: 1752680774536...
[2025-07-16T15:46:14.538Z] ['info']
_____ _
/ | | |
| | ___ __| | ___ ___ _____ __
| | / _ \ / ` |/ _ / / _ \ \ / /
| |
| (
) | (
| | __/ (
| (
) \ V /
_
____/ _,|_|____/ _/

Codecov report uploader 0.8.0
[2025-07-16T15:46:14.543Z] ['info'] => Project root located at: /home/runner/work/dmc-view/dmc-view
[2025-07-16T15:46:14.544Z] ['info'] -> No token specified or token is empty
[2025-07-16T15:46:14.544Z] ['verbose'] Start of network processing...
[2025-07-16T15:46:14.544Z] ['verbose'] Searching for files in /home/runner/work/dmc-view/dmc-view
[2025-07-16T15:46:14.551Z] ['verbose'] coveragepy is not installed
[2025-07-16T15:46:14.551Z] ['info'] Searching for coverage files...
[2025-07-16T15:46:14.599Z] ['verbose'] Preparing to clean the following coverage paths: coverage-ubuntu-latest-3.13.xml,coverage-ubuntu-latest-3.13.xml
[2025-07-16T15:46:14.600Z] ['info'] => Found 1 possible coverage files:
coverage-ubuntu-latest-3.13.xml
[2025-07-16T15:46:14.600Z] ['verbose'] End of network processing
[2025-07-16T15:46:14.600Z] ['info'] Processing /home/runner/work/dmc-view/dmc-view/coverage-ubuntu-latest-3.13.xml...
[2025-07-16T15:46:14.602Z] ['info'] Detected GitHub Actions as the CI provider.
[2025-07-16T15:46:14.602Z] ['verbose'] -> Using the following env variables:
[2025-07-16T15:46:14.602Z] ['verbose'] GITHUB_ACTION: __run_2
[2025-07-16T15:46:14.602Z] ['verbose'] GITHUB_HEAD_REF:
[2025-07-16T15:46:14.602Z] ['verbose'] GITHUB_REF: refs/heads/master
[2025-07-16T15:46:14.602Z] ['verbose'] GITHUB_REPOSITORY: alanmehio/dmc-view
[2025-07-16T15:46:14.602Z] ['verbose'] GITHUB_RUN_ID: 16324077339
[2025-07-16T15:46:14.602Z] ['verbose'] GITHUB_SERVER_URL: https://github.com
[2025-07-16T15:46:14.602Z] ['verbose'] GITHUB_SHA: b5138e063330ebce201e0fb71c670602288ff951
[2025-07-16T15:46:14.603Z] ['verbose'] GITHUB_WORKFLOW: CI/CD Pipeline
[2025-07-16T15:46:15.091Z] ['verbose'] Using the following upload parameters:
[2025-07-16T15:46:15.091Z] ['verbose'] branch
[2025-07-16T15:46:15.091Z] ['verbose'] build
[2025-07-16T15:46:15.091Z] ['verbose'] buildURL
[2025-07-16T15:46:15.091Z] ['verbose'] commit
[2025-07-16T15:46:15.091Z] ['verbose'] job
[2025-07-16T15:46:15.091Z] ['verbose'] pr
[2025-07-16T15:46:15.091Z] ['verbose'] service
[2025-07-16T15:46:15.091Z] ['verbose'] slug
[2025-07-16T15:46:15.091Z] ['verbose'] name
[2025-07-16T15:46:15.091Z] ['verbose'] tag
[2025-07-16T15:46:15.091Z] ['verbose'] flags
[2025-07-16T15:46:15.091Z] ['verbose'] parent
[2025-07-16T15:46:15.093Z] ['info'] Pinging Codecov: https://codecov.io/upload/v4?package=uploader-0.8.0&token=*******&branch=master&build=16324077339&build_url=https%3A%2F%2Fgithub.com%2Falanmehio%2Fdmc-view%2Factions%2Fruns%2F16324077339%2Fjob%2F46[10](https://github.com/alanmehio/dmc-view/actions/runs/16324077339/job/46109508269#step:5:10)9508269&commit=b5138e063330ebce201e0fb71c670602288ff951&job=CI%2FCD+Pipeline&pr=&service=github-actions&slug=alanmehio%2Fdmc-view&name=&tag=&flags=unittests&parent=
[2025-07-16T15:46:15.093Z] ['verbose'] Passed token was 0 characters long
[2025-07-16T15:46:15.093Z] ['verbose'] https://codecov.io/upload/v4?package=uploader-0.8.0&branch=master&build=16324077339&build_url=https%3A%2F%2Fgithub.com%2Falanmehio%2Fdmc-view%2Factions%2Fruns%2F16324077339%2Fjob%2F46109508269&commit=b5138e063330ebce201e0fb71c670602288ff951&job=CI%2FCD+Pipeline&pr=&service=github-actions&slug=alanmehio%2Fdmc-view&name=&tag=&flags=unittests&parent=
Content-Type: 'text/plain'
Content-Encoding: 'gzip'
X-Reduced-Redundancy: 'false'
[2025-07-16T15:46:15.350Z] ['error'] There was an error running the uploader: Error uploading to https://codecov.io: Error: There was an error fetching the storage URL during POST: 429 - {"message":"Rate limit reached. Please upload with the Codecov repository upload token to resolve issue. Expected time to availability: 1219s."}

[2025-07-16T15:46:15.350Z] ['verbose'] The error stack is: Error: Error uploading to https://codecov.io: Error: There was an error fetching the storage URL during POST: 429 - {"message":"Rate limit reached. Please upload with the Codecov repository upload token to resolve issue. Expected time to availability: 1219s."}_

at main (/snapshot/repo/dist/src/index.js)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

[2025-07-16T15:46:15.350Z] ['verbose'] End of uploader: 814 milliseconds
[2025-07-16T15:46:15.350Z] ['info'] Codecov will exit with status code 0. If you are expecting a non-zero exit code, please pass in the -Z flag
Sent to Codecov: coverage-ubuntu-latest-3.13.xml !

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions