filecoin-project / filecoin-project/venus

[chain-co] CodeCov unable to upload test coverage / CodeCov 无法推送测试覆盖率的结果

Open
#5,780 0 comments 0 reactions 0 assignees View on GitHub
C-bug P3
Dominant language
Go
Stars
2.1k
Forks
493
PR merge metrics
No merged PRs in 30d

Description

### 链服务模块 / Chain Service Components

- [ ] venus
- [ ] venus-auth
- [ ] venus-gateway
- [ ] venus-messager
- [ ] venus-miner
- [ ] 文档 / docs

### 订单服务模块 / Deal Service Components

- [ ] venus-market
- [ ] 文档 / docs

### 算力服务模块 / Storage Power Service Components

- [ ] venus-sector-manager
- [ ] venus-worker
- [ ] 文档 / docs

### 版本 / Version

```text
v0.4.0
```

### 描述 / Describe the Bug

如题

ref: https://github.com/codecov/codecov-action/issues/557
ref: https://community.codecov.com/t/upload-issues-unable-to-locate-build-via-github-actions-api/3954

### 日志 / Logging Information

```text
[2023-02-28T09:49:48.062Z] ['verbose'] Start of uploader: 1677577788062...
[2023-02-28T09:49:48.064Z] ['info']
_____ _
/ ____| | |
| | ___ __| | ___ ___ _____ __
| | / _ \ / _` |/ _ \/ __/ _ \ \ / /
| |___| (_) | (_| | __/ (_| (_) \ V /
\_____\___/ \__,_|\___|\___\___/ \_/

Codecov report uploader 0.3.5
[2023-02-28T09:49:48.070Z] ['info'] => Project root located at: /home/runner/work/chain-co/chain-co
[2023-02-28T09:49:48.071Z] ['info'] -> No token specified or token is empty
[2023-02-28T09:49:48.072Z] ['verbose'] Start of network processing...
[2023-02-28T09:49:48.072Z] ['verbose'] Searching for files in /home/runner/work/chain-co/chain-co
[2023-02-28T09:49:48.078Z] ['verbose'] coveragepy is not installed
[2023-02-28T09:49:48.079Z] ['info'] Searching for coverage files...
[2023-02-28T09:49:48.144Z] ['verbose'] Preparing to clean the following coverage paths: ./coverage.txt
[2023-02-28T09:49:48.145Z] ['info'] => Found 1 possible coverage files:
./coverage.txt
[2023-02-28T09:49:48.145Z] ['verbose'] End of network processing
[2023-02-28T09:49:48.145Z] ['info'] Processing ./coverage.txt...
[2023-02-28T09:49:48.150Z] ['info'] Detected GitHub Actions as the CI provider.
[2023-02-28T09:49:48.150Z] ['verbose'] -> Using the following env variables:
[2023-02-28T09:49:48.150Z] ['verbose'] GITHUB_ACTION: __codecov_codecov-action
[2023-02-28T09:49:48.150Z] ['verbose'] GITHUB_HEAD_REF: feat/tanlang/update-the-auth-client-with-token
[2023-02-28T09:49:48.151Z] ['verbose'] GITHUB_REF: refs/pull/39/merge
[2023-02-28T09:49:48.151Z] ['verbose'] GITHUB_REPOSITORY: ipfs-force-community/chain-co
[2023-02-28T09:49:48.151Z] ['verbose'] GITHUB_RUN_ID: 4291588747
[2023-02-28T09:49:48.151Z] ['verbose'] GITHUB_SERVER_URL: https://github.com
[2023-02-28T09:49:48.151Z] ['verbose'] GITHUB_SHA: 72f3e36b6015a7bb516fb69969d4bfd86e1ce6ff
[2023-02-28T09:49:48.151Z] ['verbose'] GITHUB_WORKFLOW: Go
[2023-02-28T09:49:48.151Z] ['verbose'] Using the following upload parameters:
[2023-02-28T09:49:48.151Z] ['verbose'] branch
[2023-02-28T09:49:48.151Z] ['verbose'] build
[2023-02-28T09:49:48.152Z] ['verbose'] buildURL
[2023-02-28T09:49:48.152Z] ['verbose'] commit
[2023-02-28T09:49:48.152Z] ['verbose'] job
[2023-02-28T09:49:48.152Z] ['verbose'] pr
[2023-02-28T09:49:48.153Z] ['verbose'] service
[2023-02-28T09:49:48.153Z] ['verbose'] slug
[2023-02-28T09:49:48.153Z] ['verbose'] name
[2023-02-28T09:49:48.153Z] ['verbose'] tag
[2023-02-28T09:49:48.153Z] ['verbose'] flags
[2023-02-28T09:49:48.153Z] ['verbose'] parent
[2023-02-28T09:49:48.154Z] ['info'] Pinging Codecov: https://codecov.io/upload/v4?package=github-action-2.1.0-uploader-0.3.5&token=*******&branch=feat%2Ftanlang%2Fupdate-the-auth-client-with-token&build=4291588747&build_url=https%3A%2F%2Fgithub.com%2Fipfs-force-community%2Fchain-co%2Factions%2Fruns%2F4291588747&commit=57e7086a7501ecc120bde8a36eb27f05e9db75ae&job=Go&pr=39&service=github-actions&slug=ipfs-force-community%2Fchain-co&name=chain-co&tag=&flags=unittests&parent=
[2023-02-28T09:49:48.154Z] ['verbose'] Passed token was 0 characters long
[2023-02-28T09:49:48.154Z] ['verbose'] https://codecov.io/upload/v4?package=github-action-2.1.0-uploader-0.3.5&branch=feat%2Ftanlang%2Fupdate-the-auth-client-with-token&build=4291588747&build_url=https%3A%2F%2Fgithub.com%2Fipfs-force-community%2Fchain-co%2Factions%2Fruns%2F4291588747&commit=57e7086a7501ecc120bde8a36eb27f05e9db75ae&job=Go&pr=39&service=github-actions&slug=ipfs-force-community%2Fchain-co&name=chain-co&tag=&flags=unittests&parent=
Content-Type: 'text/plain'
Content-Encoding: 'gzip'
X-Reduced-Redundancy: 'false'
[2023-02-28T09:49:48.502Z] ['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')}
[2023-02-28T09:49:48.503Z] ['verbose'] The error stack is: Error: 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')}
at main (/snapshot/repo/dist/src/index.js)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
```

### 重现步骤 / Repo Steps

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.