-
-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
Environment
11.2.4 on windows or macos
Steps to Reproduce
I use a CI: https://github.com/moi15moi/VideoTimestamps/blob/ed1bcb59134576db347c8939b165a0c1d85dce42/.github/workflows/run_test.yml#L39-L100
This is the job that failed: https://github.com/moi15moi/VideoTimestamps/actions/runs/18765801390/job/53543153627
To reproduce the issue locally, you can do this (it is basically the same step as the CI)
- Clone https://github.com/moi15moi/VideoTimestamps/tree/Use-bestsource (see that I used the branch
Use-bestsource). - Download the wheel for your platform and put it in the same folder has the repos.
- Open a terminal where the cwd is the repos.
- Run
pip download videotimestamps[dev] -d wheelhouse - Run
find wheelhouse -name 'videotimestamps-*.whl' -delete(or delete manually the filevideotimestamps-0.2.1-py3-none-any.whlin thewheelhousefolder). - Run
pip install videotimestamps[dev] --no-index --find-links . --find-links wheelhouse - Run
rm -rf video_timestamps - Run
coverage run --source=video_timestamps,tests -m pytest(by specifyingvideo_timestamps, it will use the package insite-packages). - Run
coverage xml - Run
codecovcli upload-process --token MY_TOKEN
PS: I do the step 7 and 8 because it I try to run coverage run -m pytest, I get other kind of error.
Expected Result
It would upload the coverage properly.
Actual Result
I get this error:
info - 2025-10-23 20:33:28,142 -- ci service found: local
warning - 2025-10-23 20:33:28,262 -- No config file could be found. Ignoring config.
info - 2025-10-23 20:33:28,952 -- Using token to create a commit for protected branch `Use-bestsource`
info - 2025-10-23 20:33:29,809 -- Process Commit creating complete
info - 2025-10-23 20:33:30,659 -- Process Report creating complete
info - 2025-10-23 20:33:30,660 -- Finished creating report successfully --- {"response": "{\"status\":\"queued\"}\n"}
warning - 2025-10-23 20:33:30,675 -- xcrun is not installed or can't be found.
warning - 2025-10-23 20:33:30,689 -- gcov is not installed or can't be found.
info - 2025-10-23 20:33:30,698 -- Generating coverage.xml report in C:\Users\moi15moi\Documents\GitHub\VideoTimestamps
info - 2025-10-23 20:33:31,149 -- Wrote XML report to coverage.xml
info - 2025-10-23 20:33:31,304 -- Found 1 coverage files to report
info - 2025-10-23 20:33:31,305 -- > C:\Users\moi15moi\Documents\GitHub\VideoTimestamps\coverage.xml
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "C:\Users\moi15moi\AppData\Local\Programs\Python\Python311\Scripts\codecovcli.exe\__main__.py", line 7, in <module>
File "C:\Users\moi15moi\AppData\Local\Programs\Python\Python311\Lib\site-packages\codecov_cli\main.py", line 96, in run
cli(obj={})
File "C:\Users\moi15moi\AppData\Local\Programs\Python\Python311\Lib\site-packages\click\core.py", line 1442, in __call__
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\moi15moi\AppData\Local\Programs\Python\Python311\Lib\site-packages\click\core.py", line 1363, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "C:\Users\moi15moi\AppData\Local\Programs\Python\Python311\Lib\site-packages\click\core.py", line 1830, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\moi15moi\AppData\Local\Programs\Python\Python311\Lib\site-packages\click\core.py", line 1226, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\moi15moi\AppData\Local\Programs\Python\Python311\Lib\site-packages\click\core.py", line 794, in invoke
return callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\moi15moi\AppData\Local\Programs\Python\Python311\Lib\site-packages\click\decorators.py", line 34, in new_func
return f(get_current_context(), *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\moi15moi\AppData\Local\Programs\Python\Python311\Lib\site-packages\codecov_cli\commands\upload_process.py", line 98, in upload_process
ctx.invoke(
File "C:\Users\moi15moi\AppData\Local\Programs\Python\Python311\Lib\site-packages\click\core.py", line 794, in invoke
return callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\moi15moi\AppData\Local\Programs\Python\Python311\Lib\site-packages\click\decorators.py", line 34, in new_func
return f(get_current_context(), *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\moi15moi\AppData\Local\Programs\Python\Python311\Lib\site-packages\codecov_cli\commands\upload.py", line 275, in do_upload
do_upload_logic(
File "C:\Users\moi15moi\AppData\Local\Programs\Python\Python311\Lib\site-packages\codecov_cli\services\upload\__init__.py", line 104, in do_upload_logic
upload_data = collector.generate_upload_data(report_type)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\moi15moi\AppData\Local\Programs\Python\Python311\Lib\site-packages\codecov_cli\services\upload\upload_collector.py", line 194, in generate_upload_data
self._produce_file_fixes(unfiltered_network)
File "C:\Users\moi15moi\AppData\Local\Programs\Python\Python311\Lib\site-packages\codecov_cli\services\upload\upload_collector.py", line 104, in _produce_file_fixes
result.append(self._get_file_fixes(filename, fix_patterns))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\moi15moi\AppData\Local\Programs\Python\Python311\Lib\site-packages\codecov_cli\services\upload\upload_collector.py", line 118, in _get_file_fixes
with open(filename, "r", encoding="utf-8") as f:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'video_timestamps/video_provider/abc_video_provider.cpp'
I don't know why it try to use the file video_timestamps/video_provider/abc_video_provider.cpp. It isn't even in my coverage.xml file.
Note that with the version 11.2.3, I don't have this problem.
Metadata
Metadata
Assignees
Labels
No labels