-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(coverage): fix carry-forward coverage
Code coverage carry-forward is tied to flags (used to present modules/subprojects) and code coverage for a flag can be carried forward if ci optimizations skips a module build. So created a module `flag` for each group of projects that the ci builds together. This roughly corresponds to the groups defined in ci-optimization action.
- Loading branch information
Showing
8 changed files
with
108 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
comment: | ||
layout: "header, files, footer" # remove "new" from "header" and "footer" | ||
hide_project_coverage: true # set to false | ||
require_changes: false # if true: only post the comment if coverage changes | ||
|
||
codecov: | ||
#due to ci-optimization, reports for modules that have not changed may be quite old | ||
max_report_age: off | ||
|
||
flag_management: | ||
default_rules: # the rules that will be followed for any flag added, generally | ||
carryforward: true | ||
statuses: | ||
- type: project | ||
target: auto | ||
threshold: 0% #Not enforcing project coverage yet. | ||
- type: patch | ||
target: 90% | ||
individual_flags: # exceptions to the default rules above, stated flag by flag | ||
- name: frontend | ||
paths: | ||
- "datahub-frontend/**" | ||
- "datahub-web-react/**" | ||
- name: backend | ||
paths: | ||
- "metadata-models/**" | ||
- "datahub-upgrade/**" | ||
- "entity-registry/**" | ||
- "li-utils/**" | ||
- "metadata-auth/**" | ||
- "metadata-dao-impl/**" | ||
- "metadata-events/**" | ||
- "metadata-jobs/**" | ||
- "metadata-service/**" | ||
- "metadata-utils/**" | ||
- "metadata-operation-context/**" | ||
- "datahub-graphql-core/**" | ||
- name: metadata-io | ||
paths: | ||
- "metadata-io/**" | ||
- name: ingestion | ||
paths: | ||
- "metadata-ingestion/**" | ||
- name: ingestion-airflow | ||
paths: | ||
- "metadata-ingestion-modules/airflow-plugin/**" | ||
- name: ingestion-dagster | ||
paths: | ||
- "metadata-ingestion-modules/dagster-plugin/**" | ||
- name: ingestion-gx-plugin | ||
paths: | ||
- "metadata-ingestion-modules/gx-plugin/**" | ||
- name: ingestion-prefect | ||
paths: | ||
- "metadata-ingestion-modules/prefect-plugin/**" | ||
coverage: | ||
status: | ||
project: | ||
default: | ||
target: 0% # no threshold enforcement yet | ||
only_pulls: true | ||
patch: | ||
default: | ||
target: 90% # for new code added in the patch | ||
only_pulls: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters