bubkoo
June 23, 2021, 3:07am
1
I have a monorepo that uses codecov.yml with flags to separate different tests.
Description
When I rename flag x6_geometry
to x6-geometry
, the Codecov Report in the PR’s comment still contains the old x6_geometry
flag with unknow coverage.
How can I remove the old flags in the report.
Repository
antvis:master
← antvis:fix/issue-1086
# [Codecov](https://codecov.io/gh/antvis/X6/pull/1122?src=pr&el=h1&utm_medium=re… ferral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=antvis) Report
> Merging [#1122](https://codecov.io/gh/antvis/X6/pull/1122?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=antvis) (5ba4d82) into [master](https://codecov.io/gh/antvis/X6/commit/0244e0d919e9a7ebdd97dede4be456290560da8a?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=antvis) (0244e0d) will **increase** coverage by `8.23%`.
> The diff coverage is `62.17%`.
> :exclamation: Current head 5ba4d82 differs from pull request most recent head b86a8ea. Consider uploading reports for the commit b86a8ea to get more accurate results
[![Impacted file tree graph](https://codecov.io/gh/antvis/X6/pull/1122/graphs/tree.svg?width=650&height=150&src=pr&token=15CO54WYUV&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=antvis)](https://codecov.io/gh/antvis/X6/pull/1122?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=antvis)
```diff
@@ Coverage Diff @@
## master #1122 +/- ##
==========================================
+ Coverage 31.06% 39.29% +8.23%
==========================================
Files 449 600 +151
Lines 31696 33428 +1732
Branches 6535 6789 +254
==========================================
+ Hits 9846 13136 +3290
+ Misses 21178 19487 -1691
- Partials 672 805 +133
```
| Flag | Coverage Δ | |
|---|---|---|
| x6 | `27.09% <ø> (+0.10%)` | :arrow_up: |
| x6-geometry | `47.20% <100.00%> (?)` | |
| x6-vector | `81.36% <62.11%> (?)` | |
| x6_geometry | `?` | |
| x6_vector | `?` | |
Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=antvis#carryforward-flags-in-the-pull-request-comment) to find out more.
| [Impacted Files](https://codecov.io/gh/antvis/X6/pull/1122?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=antvis) | Coverage Δ | |
|---|---|---|
| [packages/x6-vector/src/dom/events/store.ts](https://codecov.io/gh/antvis/X6/pull/1122/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=antvis#diff-cGFja2FnZXMveDYtdmVjdG9yL3NyYy9kb20vZXZlbnRzL3N0b3JlLnRz) | `100.00% <ø> (ø)` | |
| [packages/x6-vector/src/dom/types/index.ts](https://codecov.io/gh/antvis/X6/pull/1122/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=antvis#diff-cGFja2FnZXMveDYtdmVjdG9yL3NyYy9kb20vdHlwZXMvaW5kZXgudHM=) | `100.00% <ø> (ø)` | |
| [packages/x6-vector/src/global/env.ts](https://codecov.io/gh/antvis/X6/pull/1122/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=antvis#diff-cGFja2FnZXMveDYtdmVjdG9yL3NyYy9nbG9iYWwvZW52LnRz) | `100.00% <ø> (ø)` | |
| [packages/x6-vector/src/global/global.ts](https://codecov.io/gh/antvis/X6/pull/1122/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=antvis#diff-cGFja2FnZXMveDYtdmVjdG9yL3NyYy9nbG9iYWwvZ2xvYmFsLnRz) | `90.90% <ø> (-4.55%)` | :arrow_down: |
| [packages/x6-vector/src/struct/box.ts](https://codecov.io/gh/antvis/X6/pull/1122/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=antvis#diff-cGFja2FnZXMveDYtdmVjdG9yL3NyYy9zdHJ1Y3QvYm94LnRz) | `98.30% <ø> (-0.09%)` | :arrow_down: |
| [packages/x6-vector/src/struct/color-util.ts](https://codecov.io/gh/antvis/X6/pull/1122/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=antvis#diff-cGFja2FnZXMveDYtdmVjdG9yL3NyYy9zdHJ1Y3QvY29sb3ItdXRpbC50cw==) | `61.84% <ø> (ø)` | |
| [packages/x6-vector/src/struct/color.ts](https://codecov.io/gh/antvis/X6/pull/1122/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=antvis#diff-cGFja2FnZXMveDYtdmVjdG9yL3NyYy9zdHJ1Y3QvY29sb3IudHM=) | `98.52% <ø> (+0.02%)` | :arrow_up: |
| [packages/x6-vector/src/struct/matrix-util.ts](https://codecov.io/gh/antvis/X6/pull/1122/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=antvis#diff-cGFja2FnZXMveDYtdmVjdG9yL3NyYy9zdHJ1Y3QvbWF0cml4LXV0aWwudHM=) | `100.00% <ø> (ø)` | |
| [packages/x6-vector/src/struct/matrix.ts](https://codecov.io/gh/antvis/X6/pull/1122/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=antvis#diff-cGFja2FnZXMveDYtdmVjdG9yL3NyYy9zdHJ1Y3QvbWF0cml4LnRz) | `95.01% <ø> (+0.38%)` | :arrow_up: |
| [packages/x6-vector/src/struct/number-array.ts](https://codecov.io/gh/antvis/X6/pull/1122/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=antvis#diff-cGFja2FnZXMveDYtdmVjdG9yL3NyYy9zdHJ1Y3QvbnVtYmVyLWFycmF5LnRz) | `87.50% <ø> (ø)` | |
| ... and [421 more](https://codecov.io/gh/antvis/X6/pull/1122/diff?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=antvis) | |
CI/CD or Build URL
antvis:master
← antvis:fix/issue-1086
opened 09:35AM - 21 Jun 21 UTC
### Description
解决 minimap 中会因为节点/边的出现顺序不导致的循环渲染问题
### Motivation and Cont… ext
### Types of changes
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
- [ ] Enhancement (changes that improvement of current feature or performance)
- [ ] Refactoring (changes that neither fixes a bug nor adds a feature)
- [ ] Test Case (changes that add missing tests or correct existing tests)
- [ ] Code style optimization (changes that do not affect the meaning of the code)
- [ ] Docs (changes that only update documentation)
- [ ] Chore (changes that don't modify src or test files)
### Self Check before Merge
- [ ] My code follows the code style of this project.
- [ ] My change requires a change to the documentation.
- [ ] I have updated the documentation accordingly.
- [ ] I have read the [**CONTRIBUTING**](https://github.com/antvis/x6/blob/master/CONTRIBUTING.md) document.
- [ ] I have added tests to cover my changes.
- [ ] All new and existing tests passed.
Uploader
GitHub Action
Run codecov/codecov-action@v1
with:
token: ***
files: ./packages/x6-geometry/test/coverage/lcov.info
flags: x6-geometry
Codecov Output
/usr/bin/bash codecov.sh -n -F x6-geometry -Q github-action-v1.5.2 -f ./packages/x6-geometry/test/coverage/lcov.info -C 5ba4d82079854d522c0444f4889d69dc42e56393 -P 1122
_____ _
/ ____| | |
| | ___ __| | ___ ___ _____ __
| | / _ \ / _` |/ _ \/ __/ _ \ \ / /
| |___| (_) | (_| | __/ (_| (_) \ V /
\_____\___/ \__,_|\___|\___\___/ \_/
Bash-1.0.3
==> git version 2.32.0 found
==> curl 7.68.0 (x86_64-pc-linux-gnu) libcurl/7.68.0 OpenSSL/1.1.1f zlib/1.2.11 brotli/1.0.7 libidn2/2.2.0 libpsl/0.21.0 (+libidn2/2.2.0) libssh/0.9.3/openssl/zlib nghttp2/1.40.0 librtmp/2.3
Release-Date: 2020-01-08
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets
==> GitHub Actions detected.
Env vars used:
-> GITHUB_ACTIONS: true
-> GITHUB_HEAD_REF: fix/issue-1086
-> GITHUB_REF: refs/heads/master
-> GITHUB_REPOSITORY: antvis/X6
-> GITHUB_RUN_ID: 956585065
-> GITHUB_SHA: 27ad5e786c67e47788e1d8448af3a8cdb077f942
-> GITHUB_WORKFLOW: 👷 CI
project root: .
--> token set from env
Yaml found at: .codecov.yml
-> Found 1 reports
==> Detecting git/mercurial file structure
==> Reading reports
+ ./packages/x6-geometry/test/coverage/lcov.info bytes=77013
==> Appending adjustments
https://docs.codecov.io/docs/fixing-reports
+ Found adjustments
==> Gzipping contents
76K /tmp/codecov.4SWdxh.gz
==> Uploading reports
url: https://codecov.io
query: branch=fix%2Fissue-1086&commit=5ba4d82079854d522c0444f4889d69dc42e56393&build=956585065&build_url=http%3A%2F%2Fgithub.com%2Fantvis%2FX6%2Factions%2Fruns%2F956585065&name=&tag=&slug=antvis%2FX6&service=github-actions&flags=x6-geometry&pr=1122&job=%F0%9F%91%B7%E3%80%80CI&cmd_args=n,F,Q,f,C,P
-> Pinging Codecov
https://codecov.io/upload/v4?package=github-action-v1.5.2-1.0.3&token=secret&branch=fix%2Fissue-1086&commit=5ba4d82079854d522c0444f4889d69dc42e56393&build=956585065&build_url=http%3A%2F%2Fgithub.com%2Fantvis%2FX6%2Factions%2Fruns%2F956585065&name=&tag=&slug=antvis%2FX6&service=github-actions&flags=x6-geometry&pr=1122&job=%F0%9F%91%B7%E3%80%80CI&cmd_args=n,F,Q,f,C,P
-> Uploading to
https://storage.googleapis.com/codecov/v4/raw/2021-06-21/F42631AFA6F11877A1DA43E5DBBCADE0/5ba4d82079854d522c0444f4889d69dc42e56393/e3ef417a-a367-4437-8279-90d9df011429.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EKKHVKCKHW7KBCGM7IHR55T63V2PAVJWLVFNITJHDU5G6R5IRN3LMWJA%2F20210621%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20210621T094613Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=b026aff0f636cdb6d6fd9cb46959078ca4513c0cd2f95b89129946ab9f6dacda
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 76707 0 0 100 76707 0 423k --:--:-- --:--:-- --:--:-- 423k
-> Reports have been successfully queued for processing at https://codecov.io/github/antvis/X6/commit/5ba4d82079854d522c0444f4889d69dc42e56393
Expected Results
Do not contain the old flags in the report.
Actual Results
Old flags ware contained in the report with unknow coverage.
Additional Information
tom
July 6, 2021, 8:50pm
2
@bubkoo looks like your codecov.yml
is not valid, and so we cannot take it into account. See line 7 . threshold
should be under another subheader. You can validate the yaml with this