Skip to content

ci: Add code coverage that depends on the pack job - #633

Merged
JesseOlmer merged 18 commits into
developfrom
experimental/add-code-coverage
Mar 16, 2021
Merged

ci: Add code coverage that depends on the pack job#633
JesseOlmer merged 18 commits into
developfrom
experimental/add-code-coverage

Conversation

@seanstolberg-unity

Copy link
Copy Markdown
Contributor

This change will introduce a single build job that depends on the package pack job. The code coverage runs and generates a coverage report that looks like this: https://yamato-artifactviewer.prd.cds.internal.unity3d.com/2b46863c-27b1-4b98-9819-578e1ee01ec6%2Flogs%2Fupm-ci~%2Ftest-results%2Fisolation-5820322-com.unity.multiplayer.mlapi%2FReport/index.htm

Comment thread .yamato/project.metafile
# for validation
test_editors:
- 2021.1
- 2021.2

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

These changes were already made in the release branch - they're pending merge back to develop so it'd make that merge easier if you don't add these here :)

Comment thread .yamato/code-coverage.yml
commands:
- pip install unity-downloader-cli --upgrade --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple
- npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
- unity-downloader-cli -u trunk -c editor --wait --fast

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

A lot of the other "one version" jobs just use {{ test_editors.first }} to keep all the editor configuration in one place. I don't feel strongly one way or the other, but might be a bit odd in the future to have coverage run against a different version.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Plan is to run this on trunk to start out with to ensure we're liking it. If it's good, we can expand to other versions/branches

@JesseOlmer JesseOlmer changed the title Add code coverage that depends on the pack job ci: Add code coverage that depends on the pack job Mar 16, 2021
@JesseOlmer
JesseOlmer enabled auto-merge (squash) March 16, 2021 16:51
@JesseOlmer
JesseOlmer merged commit 2252347 into develop Mar 16, 2021
@JesseOlmer
JesseOlmer deleted the experimental/add-code-coverage branch March 16, 2021 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants