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

optimize: standardized the properties of codecov.yml #5918

Merged
merged 2 commits into from Oct 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions changes/en-us/develop.md
Expand Up @@ -16,6 +16,7 @@ Add changes here for all PR submitted to the develop branch.
- [[#5890](https://github.com/seata/seata/pull/5890)] remove 7z format compression support
- [[#5891](https://github.com/seata/seata/pull/5891)] remove mariadb.jdbc dependency
- [[#5828](https://github.com/seata/seata/pull/5828)] fix codecov chart not display
- [[#5918](https://github.com/seata/seata/pull/5918)] standardized the properties of codecov.yml

### security:
- [[#5867](https://github.com/seata/seata/pull/5867)] fix npm package vulnerabilities
Expand Down
1 change: 1 addition & 0 deletions changes/zh-cn/develop.md
Expand Up @@ -16,6 +16,7 @@
- [[#5890](https://github.com/seata/seata/pull/5890)] 移除7z压缩支持
- [[#5891](https://github.com/seata/seata/pull/5891)] 移除 mariadb.jdbc 依赖
- [[#5828](https://github.com/seata/seata/pull/5828)] 修正 `codecov chart` 不展示的问题
- [[#5918](https://github.com/seata/seata/pull/5918)] 修正codecov.yml不标准属性

### security:
- [[#5867](https://github.com/seata/seata/pull/5867)] 修复npm package漏洞
Expand Down
23 changes: 12 additions & 11 deletions codecov.yml
Expand Up @@ -2,24 +2,25 @@ codecov:
require_ci_to_pass: yes
coverage:
status:
patch: no
patch: off
changes: off
project:
default:
threshold: 1%
if_not_found: success
changes: no
round: down
precision: 2
range: "50...100"
range: "50..75"
ignore:
- "test/.*"
- ".github/.*"
- ".mvn/.*"
- ".style/.*"
- "*.md"
- "**/test"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

more upper folder?

Does this include the following cases?

server/test/xxx

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, this rule will ignore any folders and files that call test. The example: https://docs.codecov.com/docs/ignoring-paths#ignoring-specific-file-names

- "**/.github"
- "**/.mvn"
- "**/.style"
- "**/*.md"
- "rm-datasource/src/test/java/io/seata/rm/datasource/mock"
- "sqlparser/seata-sqlparser-antlr/src/main/java/io/seata/sqlparser/antlr/mysql/antlr/.*"
- "sqlparser/seata-sqlparser-antlr/src/main/java/io/seata/sqlparser/antlr/mysql/parser/.*"
- "sqlparser/seata-sqlparser-antlr/src/main/java/io/seata/sqlparser/antlr/mysql/antlr"
- "sqlparser/seata-sqlparser-antlr/src/main/java/io/seata/sqlparser/antlr/mysql/parser"
comment:
layout: "reach,diff,flags,tree"
layout: "reach, diff, flags, tree"
behavior: default
require_changes: no