zilliztech / knowhere

Knowhere is an open-source vector search engine, integrating FAISS, HNSW, etc.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Upgrade Codecov Action from v3 to v4 to Resolve Upload Error

samhuang-z opened this issue · comments

Description:

While integrating Codecov with our CI pipeline via GitHub Actions, we encountered an error during the upload process. The error indicates a failure in fetching the storage URL, suggesting an incompatibility or issue with the current version of the Codecov GitHub Action we are using.

Error:

[2024-04-09T14:01:56.543Z] ['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: 404 - {'detail': ErrorDetail(string='Unable to locate build via Github Actions API. Please upload with the Codecov repository upload token to resolve issue.', code='not_found')}

Steps to Reproduce:

  1. Configure GitHub Actions workflow with Codecov action using version 3.
  2. Trigger the workflow by pushing commits or making a pull request.
  3. Observe the workflow execution log, particularly the step involving Codecov upload.

Expected Behavior:
Codecov action should successfully upload coverage reports to Codecov without errors.

Actual Behavior:
The upload process fails with a 404 error, indicating an inability to locate the build via the GitHub Actions API. The error message suggests using the Codecov repository upload token, hinting at a possible issue with the current action version's method of locating builds.

Proposed Solution:
Upgrade the Codecov GitHub Action from version 3 to version 4 in our workflow file. This upgrade is expected to resolve the issue by potentially using updated methods for build location and authentication, aligning with the latest changes in the GitHub Actions and Codecov platforms.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. Rotten issues close after 30d of inactivity. Reopen the issue with /reopen.