Skip to content

Commit 6a5a21c

Browse files
CMCL-0000: Update CodeCov Reporting and Integration (#1071)
* update code coverage job * update wrench jobs * exclude tests asmdefs * forgot to regen job * fix formatting * try to fix upload
1 parent 499137d commit 6a5a21c

File tree

12 files changed

+243
-156
lines changed

12 files changed

+243
-156
lines changed

.github/codecov.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
codecov:
2+
require_ci_to_pass: no
3+
notify:
4+
wait_for_ci: no
5+
6+
coverage:
7+
precision: 2
8+
round: down
9+
range: "50...70"
10+
status:
11+
patch: off
12+
default_rules:
13+
flag_coverage_not_uploaded_behavior: exclude
14+
project:
15+
default:
16+
target: auto
17+
threshold: 0%
18+
base: auto
19+
if_ci_failed: success
20+
informational: false
21+
only_pulls: true
22+
23+
comment:
24+
layout: "reach,diff,flags,files"
25+
behavior: default
26+
require_changes: no
27+
require_base: no
28+
require_head: no
29+
after_n_builds: 1
30+
31+
# Components configuration
32+
component_management:
33+
individual_components:
34+
- component_id: "com.unity.cinemachine"
35+
name: "com.unity.cinemachine"
36+
paths:
37+
- com.unity.cinemachine

.yamato/code-coverage.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,7 @@ code_coverage_-_ubuntu_-_trunk:
99
flavor: b1.large
1010
commands:
1111
- command: npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
12-
- command: upm-ci package test -u trunk --package-path com.unity.cinemachine --type package-tests --enable-code-coverage --code-coverage-options "generateAdditionalMetrics;generateHtmlReport;assemblyFilters:+Unity.Cinemachine*" --extra-utr-arg=--coverage-results-path=${YAMATO_SOURCE_DIR}/upm-ci~/test-results/CoverageResults
13-
- command: curl -Os https://uploader.codecov.io/latest/linux/codecov
14-
- command: chmod a+x ./codecov
15-
- command: ./codecov -v -t "${CODECOV_TOKEN}" -B "${GIT_BRANCH}" -T "${GIT_TAG}" -P "${YAMATO_PR_ID}" -f "upm-ci~/test-results/CoverageResults/**/*.xml"
12+
- command: upm-ci package test -u trunk --package-path com.unity.cinemachine --type package-tests --enable-code-coverage --code-coverage-options "generateAdditionalMetrics;generateHtmlReport;assemblyFilters:+Unity.Cinemachine,+Unity.Cinemachine.Editor" --extra-utr-arg="--coverage-results-path=${YAMATO_SOURCE_DIR}/upm-ci~/test-results/CoverageResults --coverage-upload-options=\"reportsDir:upm-ci~/test-results;name:Ubuntu_trunk;flags:Ubuntu_trunk\""
1613
artifacts:
1714
packages:
1815
paths:

.yamato/wrench/api-validation-jobs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ api_validation_-_cinemachine_-_2022_3_-_windows:
2020
- command: npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
2121
timeout: 20
2222
retries: 10
23-
- command: unity-downloader-cli -u 2022.3/staging -c Editor --fast
23+
- command: unity-downloader-cli -u 2022.3/staging -c editor --path .Editor --fast
2424
timeout: 10
2525
retries: 3
2626
- command: python PythonScripts/PackageJsonCondersor.py
@@ -51,8 +51,8 @@ api_validation_-_cinemachine_-_2022_3_-_windows:
5151
dependencies:
5252
- path: .yamato/wrench/package-pack-jobs.yml#package_pack_-_cinemachine
5353
variables:
54-
UPMPVP_CONTEXT_WRENCH: 0.10.50.0
54+
UPMPVP_CONTEXT_WRENCH: 0.12.2.0
5555
metadata:
5656
Job Maintainers: '#rm-packageworks'
57-
Wrench: 0.10.50.0
57+
Wrench: 0.12.2.0
5858

.yamato/wrench/package-pack-jobs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ package_pack_-_cinemachine:
2424
UPMCI_ACK_LARGE_PACKAGE: 1
2525
metadata:
2626
Job Maintainers: '#rm-packageworks'
27-
Wrench: 0.10.50.0
27+
Wrench: 0.12.2.0
2828

0 commit comments

Comments
 (0)