1919 # develop_nightly or develop_weekly_trunk in _triggers.yml.
2020
2121# CONFIGURATION STRUCTURE--------------------------------------------------------------
22- # Windows only, and not looped over test_platforms: run-upgrade-test.ps1 is PowerShell and uses
23- # robocopy to purge Library (paths there exceed MAX_PATH, which Remove-Item cannot delete).
22+ # Runs on the default platform (Ubuntu) like every other basic job. run_upgrade_test.py is Python, so
23+ # there is no platform constraint - the earlier PowerShell version forced a Windows agent because it
24+ # needed robocopy to purge Library past MAX_PATH.
2425 # A single editor is enough - the job is asserting on the editor's API updater, not on NGO
2526 # behaviour across editor versions. Widen to validation_editors.all if that stops being true.
2627
3031 # and needs no package-pack dependency.
3132 # The script restores the 2.x sources when it finishes, so the checkout is left unmodified and the
3233 # job is safe to re-run on the same agent.
33- # -Clean purges Library first: the assertion is meaningless against a warm Library that already
34+ # --clean purges Library first: the assertion is meaningless against a warm Library that already
3435 # holds rewritten sources from a previous run.
3536
3637# QUALITY CONSIDERATIONS--------------------------------------------------------------------
37- # The expected type list in run-upgrade-test.ps1 is inline and hand-written. That is fine because
38+ # The expected type list in run_upgrade_test.py is inline and hand-written. That is fine because
3839 # its input is frozen: it enumerates the 2.x public editor API, and develop-2.0.0 is released.
3940 # TODO: the list does not extend itself. A later relocation within 3.x, or a back port into 2.x,
4041 # has to be added by hand or this job silently stops covering it. Deriving the list from the
4142 # [MovedFrom] attributes in the package source would close that.
4243
4344# ------------------------------------------------------------------------------------
4445
45- {% for platform in test_platforms.desktop -%}
46- {% if platform.name == "win" -%}
46+ {% for platform in test_platforms.default -%}
4747{% for editor in validation_editors.default -%}
4848api_updater_test_{{ platform.name }}_{{ editor }} :
4949 name : API Updater Test - NGO 2.x editor scripts upgrade [{{ platform.name }}, {{ editor }}]
@@ -53,13 +53,12 @@ api_updater_test_{{ platform.name }}_{{ editor }}:
5353 flavor : {{ platform.flavor }}
5454 commands :
5555 - unity-downloader-cli --fast --wait -u {{ editor }} -c Editor # Installing basic editor for the import
56- - powershell -NoProfile -ExecutionPolicy Bypass -File apiupdaterproject/run-upgrade-test.ps1 -UnityExe .Editor/Editor/Unity.exe -Clean
56+ - python apiupdaterproject/run_upgrade_test.py --unity .Editor/Editor/Unity --clean
5757 artifacts :
5858 logs :
5959 paths :
6060 - " apiupdaterproject/upgrade-test.log"
6161 dependencies :
6262 - .yamato/_run-all.yml#run_quick_checks # initial checks to perform fast validation of common errors
6363{% endfor -%}
64- {% endif -%}
6564{% endfor -%}
0 commit comments