Skip to content

feat: Yamato jobs to trigger format & UPM project pack #489

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

Merged
merged 48 commits into from
May 11, 2022
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
0d50df7
formatting yamato job and dotnet format project
fernando-cortez Feb 3, 2022
68ebecb
trigger job added to pack and test projects
fernando-cortez Feb 4, 2022
6649e26
Merge branch 'develop' into feature/code-formatting-job
fernando-cortez Feb 4, 2022
dc17400
Merge branch 'feature/code-formatting-job' into feature/yamato-trigge…
fernando-cortez Feb 4, 2022
c20fab3
reordered project versions so 2020.3 is tested first
fernando-cortez Feb 24, 2022
c2d9836
merge develop
fernando-cortez Feb 24, 2022
10105e3
removing legacy blocker on ubuntu
fernando-cortez Apr 25, 2022
bbb5712
mobile build & run tests added & triggered by PRs
fernando-cortez Apr 26, 2022
7c23f9d
adding reference to project metafile
fernando-cortez Apr 26, 2022
27a09eb
dependency file name fix
fernando-cortez Apr 26, 2022
516dd0b
reordering name
fernando-cortez Apr 26, 2022
5850345
android commands syntax fixed
fernando-cortez Apr 26, 2022
4b75de7
job name definition descriptor
fernando-cortez Apr 26, 2022
890d315
name for build file
fernando-cortez Apr 26, 2022
a2a8552
adding matching build jobs for running jobs
fernando-cortez Apr 26, 2022
6c2b551
reference to project metafile
fernando-cortez Apr 26, 2022
2f9525d
Merge branch 'develop' into feature/yamato-trigger-format-project-pack
fernando-cortez Apr 26, 2022
fa0ae17
Merge branch 'feature/yamato-trigger-format-project-pack' into featur…
fernando-cortez Apr 26, 2022
812e5eb
using project path as name
fernando-cortez Apr 26, 2022
cc8b256
updated build params
fernando-cortez Apr 27, 2022
4a0d753
burst compilation removed on android, ios utr url param
fernando-cortez Apr 27, 2022
d0f0e68
disable burst .py file
fernando-cortez Apr 27, 2022
f010420
shifting order of operations
fernando-cortez Apr 28, 2022
6e77e97
test: using ngo params
fernando-cortez Apr 28, 2022
c32ebe0
python script enabling/disabling burst fixed, cleanup
fernando-cortez May 2, 2022
a354c0a
Merge branch 'develop' into feature/yamato-trigger-format-project-pack
fernando-cortez May 2, 2022
f709dcb
Merge branch 'feature/yamato-trigger-format-project-pack' into featur…
fernando-cortez May 2, 2022
1bf0b7f
specifying test filter
fernando-cortez May 2, 2022
f75bcf4
adding testfilter to builds and runs
fernando-cortez May 2, 2022
44c9593
android image change
fernando-cortez May 2, 2022
c050492
utr command param update for playerconnection
fernando-cortez May 2, 2022
aa36010
utr version?
fernando-cortez May 3, 2022
7e7b7f8
project name addition
fernando-cortez May 3, 2022
fbe1a10
adding editor path
fernando-cortez May 3, 2022
cbac55a
testing building with utr 0.12.0 as well
fernando-cortez May 3, 2022
140e404
formatting test
fernando-cortez May 3, 2022
0023594
joined mobile build and run to single yml file
fernando-cortez May 4, 2022
6f4b998
format
fernando-cortez May 4, 2022
43ab6fd
Merge branch 'feature/yamato-trigger-format-project-pack-mobile' into…
fernando-cortez May 4, 2022
c475c5a
Merge branch 'develop' into feature/yamato-trigger-format-project-pack
fernando-cortez May 4, 2022
1fa8875
test editors 2021 & trunk
fernando-cortez May 4, 2022
9ad8c35
just 2021
fernando-cortez May 4, 2022
c1f50b3
adding testfilter for only bossroom tests
fernando-cortez May 4, 2022
0aa265a
removing testfilter on packing
fernando-cortez May 5, 2022
528b7d4
fix to hanging tests
fernando-cortez May 5, 2022
8976485
code source added
fernando-cortez May 6, 2022
46c18eb
Merge branch 'develop' into feature/yamato-trigger-format-project-pack
fernando-cortez May 10, 2022
9a24c10
formatting files from RNSM PR
fernando-cortez May 11, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .yamato/_triggers.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{% metadata_file .yamato/project.metafile %}
---

# Run all relevant tasks when a pull request targeting specified
# branches is created or updated.
pull_request_trigger:
name: Pull Request Trigger (main, develop, & release branches)
dependencies:
- .yamato/project-standards.yml#standards_{{ projects.first.name }}
{% for project in projects -%}
{% for platform in test_platforms -%}
- .yamato/project-tests.yml#test_{{ project.name }}_{{ project.test_editors.first }}_{{ platform.name }}
{% endfor -%}
{% endfor -%}
triggers:
cancel_old_ci: true
pull_requests:
- targets:
only:
- "main"
- "develop"
- "/release\/.*/"
17 changes: 17 additions & 0 deletions .yamato/project-pack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{% metadata_file .yamato/project.metafile %}
---
{% for project in projects -%}
pack_{{ project.name }}:
name: Pack {{ project.name }}
agent:
type: Unity::VM
image: package-ci/ubuntu:stable
flavor: b1.small
commands:
- npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
- upm-ci project pack --project-path {{ project.path }}
artifacts:
packages:
paths:
- "upm-ci~/packages/**/*"
{% endfor -%}
29 changes: 29 additions & 0 deletions .yamato/project-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{% metadata_file .yamato/project.metafile %}
---

# For every platform and editor version, run its project tests without
# running package tests too since they are handled on their respective
# jobs
{% for project in projects -%}
{% for editor in project.test_editors -%}
{% for platform in test_platforms -%}
test_{{ project.name }}_{{ editor }}_{{ platform.name }}:
name : {{ project.name }} project tests - {{ editor }} on {{ platform.name }}
agent:
type: {{ platform.type }}
image: {{ platform.image }}
flavor: {{ platform.flavor}}
commands:
- npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
- pip install unity-downloader-cli --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple
- unity-downloader-cli -u {{ editor }} -c editor -w --fast
- {% if platform.name == "ubuntu" %}DISPLAY=:0 && {% endif %}upm-ci project test -u {{ editor }} --project-path {{ project.path }} --type project-tests
artifacts:
logs:
paths:
- "upm-ci~/test-results/**/*"
dependencies:
- .yamato/project-pack.yml#pack_{{ project.name }}
{% endfor -%}
{% endfor -%}
{% endfor -%}
2 changes: 1 addition & 1 deletion .yamato/project.metafile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ projects:
- name: com.unity.multiplayer.samples.coop
path: Packages/com.unity.multiplayer.samples.coop
test_editors:
- 2020.3
- 2021.1
- 2021.2
- 2020.3
- trunk