Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cause of error no reported when doing upload with -v #547

Open
mathroc opened this issue Oct 31, 2024 · 0 comments
Open

Cause of error no reported when doing upload with -v #547

mathroc opened this issue Oct 31, 2024 · 0 comments

Comments

@mathroc
Copy link

mathroc commented Oct 31, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant