-
Notifications
You must be signed in to change notification settings - Fork 856
Make editor pinning optional [skip ci] #2112
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
Conversation
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 --upgrade | ||
- unity-downloader-cli -u $CUSTOM_REVISION -c editor --wait --published-only |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On other branches it indeed is using the source file argument, but I admit I don't understand why. Aren't we supposed to use the $CUSTOM_REVISION variable?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this gets passed to the editor-priming job, which uses the $CUSTOM_REVISION and then outputs the unity_revision.txt, and we want to use what the editor priming outputs.
Although, now I am thinking if this even matters because in both cases the revision should be the same anyways?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah Liis is correct, the next line down is green and - unity-downloader-cli --source-file unity_revision.txt -c editor --wait --published-only
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah yes, sorry, I forgot how the "old" editor priming works :) 100% makes sense, thanks!
# Conflicts: # .yamato/config/_abv.metafile # .yamato/ruamel/jobs/abv/abv_all_project_ci_nightly.py # .yamato/ruamel/jobs/abv/abv_all_smoke_tests.py # .yamato/ruamel/jobs/abv/abv_smoke_test.py # .yamato/ruamel/jobs/abv/yml_abv.py # .yamato/ruamel/jobs/projects/_project_base.py # .yamato/ruamel/jobs/shared/namer.py
Purpose of this PR
Makes editor pinning optional, makes shared metafile a bigger 'source-of-truth' for editors, and allows more flexibility on setting up editors:
This makes it possible to not run editor pinning for every track on a branch, or bring in the old latest and --fast options, or disable it as we branch off master, and allows to keep the python script consistent across all branches (should ease backporting things which now differ due to editor pinning being present or not)
This is done by each editor section containing (examples copied from updated docs):
Testing status
Comments to reviewers
See more details in the updated docs, or check out some examples on this branch branch https://github.com/Unity-Technologies/Graphics/tree/yamato/editor-pin-boolean-examples/.yamato
Also took the changes on 8xx branch, to show that we can now keep same python across branches (with or without editor pinning) https://github.com/Unity-Technologies/Graphics/tree/8.x.x/yamato/test-editor-pin (compare 8.x.x/release...8.x.x/yamato/test-editor-pin )
The changes to custom-revision test-dependencies job seem to be legitimate (when compared to 9.x.x branch), and have been possibly missed before
One of the examples: https://yamato.cds.internal.unity3d.com/jobs/902-Graphics/tree/yamato%252Feditor-pin-boolean-examples/.yamato%252F_abv.yml%2523all_project_ci_latest-2020.2
When changes taken to 8xx branch https://yamato.cds.internal.unity3d.com/jobs/902-Graphics/tree/8.x.x%252Fyamato%252Ftest-editor-pin/.yamato%252F_abv.yml%2523all_project_ci_fast-2020.1/3720199/job