Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Cause of error no reported when doing upload with `-v`

Đang mở
#547 0 bình luận 0 reaction 1 người được giao Xem trên GitHub

@thomasrockhu-codecov đang làm issue này rồi.

Từ ngày 2/12/2024.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

codecov/codecov-cli

There's probably something wrong with my self-hosted Codecov instance, but I can't find what on the API container logs, and running the command with -v doesn't show the requests responses either

(env) root@c8f240ddda26:/app# ./codecov -u https://codecov.texthtml.net -v do-upload -t 87cc6352-8f45-4b3f-88d7-27b1ad232beb --git-service gitlab_enterprise -r mathieu/codecov-demo -C 661d9094a3a51ce564b0feb6254e161623bdf5ed
info - 2024-10-31 12:20:34,522 -- ci service found: local
debug - 2024-10-31 12:20:34,523 -- versioning system found: <class 'codecov_cli.helpers.versioning_systems.NoVersioningSystem'>
debug - 2024-10-31 12:20:34,524 -- versioning system found: <class 'codecov_cli.helpers.versioning_systems.NoVersioningSystem'>
warning - 2024-10-31 12:20:34,524 -- No config file could be found. Ignoring config.
debug - 2024-10-31 12:20:34,524 -- No codecov_yaml found
debug - 2024-10-31 12:20:34,525 -- Starting upload processing --- {"enterprise_url": "https://codecov.texthtml.net", "verbose": true, "auto_load_params_from": null, "codecov_yml_path": null, "version": "cli-0.8.0", "command": "do-upload", "git_service": "gitlab_enterprise", "slug": "mathieu/codecov-demo", "commit_sha": "661d9094a3a51ce564b0feb6254e161623bdf5ed", "report_code": "default", "network_root_folder": "/app", "files_search_root_folder": "/app", "files_search_exclude_folders": [], "files_search_explicitly_listed_files": [], "disable_search": false, "disable_file_fixes": false, "build_code": null, "build_url": null, "job_code": null, "name": null, "branch": null, "pull_request_number": null, "env_vars": {}, "flags": [], "plugin_names": ["xcode", "gcov", "pycoverage"], "dry_run": false, "use_legacy_uploader": false, "handle_no_reports_found": false, "report_type": "coverage", "network_filter": null, "network_prefix": null, "gcov_args": null, "gcov_ignore": null, "gcov_include": null, "gcov_executable": null, "swift_project": null, "fail_on_error": false}
debug - 2024-10-31 12:20:34,525 -- Selected preparation plugins --- {"selected_plugins": ["<class 'codecov_cli.plugins.xcode.XcodePlugin'>", "<class 'codecov_cli.plugins.gcov.GcovPlugin'>", "<class 'codecov_cli.plugins.pycoverage.Pycoverage'>"], "cli_config": {}}
debug - 2024-10-31 12:20:34,525 -- Running preparation plugin: <class 'codecov_cli.plugins.xcode.XcodePlugin'>
debug - 2024-10-31 12:20:34,525 -- Running xcode plugin...
warning - 2024-10-31 12:20:34,525 -- xcrun is not installed or can't be found.
debug - 2024-10-31 12:20:34,525 -- Running preparation plugin: <class 'codecov_cli.plugins.gcov.GcovPlugin'>
debug - 2024-10-31 12:20:34,525 -- Running gcov plugin...
warning - 2024-10-31 12:20:34,539 -- No gcov data found.
debug - 2024-10-31 12:20:34,539 -- Running preparation plugin: <class 'codecov_cli.plugins.pycoverage.Pycoverage'>
info - 2024-10-31 12:20:34,539 -- Generating coverage.xml report in /app
info - 2024-10-31 12:20:34,599 -- Wrote XML report to coverage.xml
debug - 2024-10-31 12:20:34,599 -- Collecting relevant files
info - 2024-10-31 12:20:34,603 -- Found 1 coverage files to report
info - 2024-10-31 12:20:34,604 -- > /app/coverage.xml
debug - 2024-10-31 12:20:34,604 -- Selected uploader to use: <class 'codecov_cli.services.upload.upload_sender.UploadSender'>
debug - 2024-10-31 12:20:34,604 -- Sending upload request to Codecov
info - 2024-10-31 12:20:35,075 -- Your upload is now processing. When finished, results will be available at: https://codecov.texthtml.net/gitlab_enterprise/mathieu/codecov-demo/commit/661d9094a3a51ce564b0feb6254e161623bdf5ed
debug - 2024-10-31 12:20:35,075 -- Upload request to Codecov complete. --- {"response": {"external_id": "d3541c88-a6d9-4ec0-bc91-fea5eb6c64f8", "created_at": "2024-10-31T12:20:34.792613Z", "raw_upload_location": "http://minio:9000/archive/v4/raw/2024-10-31/7451918C048C1316996EED8E45FCE559/661d9094a3a51ce564b0feb6254e161623bdf5ed/3df86fea-dd75-4c91-af8b-1bb596cc8d11/d3541c88-a6d9-4ec0-bc91-fea5eb6c64f8.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=codecov-default-key%2F20241031%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20241031T122035Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=ab7dcedb1621633877ef35d0e297b8ef5f873f21bc20c547ff62fd8a28f6a110", "state": "", "provider": null, "upload_type": "uploaded", "url": "https://codecov.texthtml.net/gitlab_enterprise/mathieu/codecov-demo/commit/661d9094a3a51ce564b0feb6254e161623bdf5ed", "ci_url": null, "flags": [], "env": {}, "name": null, "job_code": null}}
debug - 2024-10-31 12:20:35,075 -- Sending upload to storage
warning - 2024-10-31 12:20:35,093 -- Request failed. Retrying --- {"retry": 0}
warning - 2024-10-31 12:20:35,614 -- Request failed. Retrying --- {"retry": 1}
warning - 2024-10-31 12:20:36,632 -- Request failed. Retrying --- {"retry": 2}
Traceback (most recent call last):
  File "codecov_cli/main.py", line 87, in <module>
  File "codecov_cli/main.py", line 83, in run
  File "click/core.py", line 1157, in __call__
  File "click/core.py", line 1078, in main
  File "click/core.py", line 1688, in invoke
  File "click/core.py", line 1434, in invoke
  File "click/core.py", line 783, in invoke
  File "click/decorators.py", line 33, in new_func
  File "codecov_cli/commands/upload.py", line 261, in do_upload
  File "codecov_cli/services/upload/__init__.py", line 133, in do_upload_logic
  File "codecov_cli/services/upload/upload_sender.py", line 94, in send_upload_data
  File "codecov_cli/helpers/request.py", line 83, in wrapper
Exception: Request failed after too many retries
[PYI-229:ERROR] Failed to execute script 'main' due to unhandled exception!
(env) root@c8f240ddda26:/app# ./codecov --version
codecovcli, version 0.8.0

edit: I'm pretty sure it's because it's trying to reach http://minio:9000/... which is an internal URL not accessible from there but it would be nice to have a better error message

Ngôn ngữ chính
Python
Star
90
Fork
65
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của codecov/codecov-cli

Tất cả issue của codecov/codecov-cli

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.