Skip to content

Commit 10807fe

Browse files
ci: compile testproject in a separate editor session before the unified test pass
The IL post-processor and compiler processes the editor starts stay resident through the test pass and, on a b1.large agent, leave too little memory for the hybrid tests. The project is now imported and compiled in its own batchmode session that exits first, any build process that outlives it is stopped, and the job log lists the largest processes left before the tests start. Also drops the temporary 6000.7.0b4 editor pin.
1 parent 830384e commit 10807fe

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

‎.yamato/unified-tests.yml‎

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,23 @@ unified_test_{{ project.name }}_{{ platform.name }}_{{ editor }}:
3434
UNIFIED_TESTS: "true"
3535

3636
commands:
37-
# TEMPORARY (#4195): pinned to 6000.7.0b4 on b1.large to test whether 6000.7.0b6 raised memory use. Revert before merge.
38-
- unity-downloader-cli --fast --wait -u 6000.7.0b4 -c Editor --arch {{ platform.architecture }}
37+
- unity-downloader-cli --fast --wait -u {{ editor }} -c Editor --arch {{ platform.architecture }}
38+
# Import and compile testproject in its own editor session first. The IL post-processor and compiler processes it starts
39+
# otherwise stay resident for the whole test pass and, on this agent, leave too little memory for the tests.
40+
- mkdir -p warmup
41+
- .Editor/Unity -batchmode -nographics -logFile warmup/editor.log -projectPath {{ project.path }} -quit
42+
# Stop any build processes that outlive the warm-up editor, then list what is left so the job log shows it.
43+
- dotnet build-server shutdown || true
44+
- pkill -f Unity.ILPP.Runner || true
45+
- pkill -f VBCSCompiler || true
46+
- pkill -f bee_backend || true
47+
- ps -eo rss,comm --sort=-rss | head -15
3948
- UnifiedTestRunner --testproject={{ project.path }} --suite=playmode --artifacts-path=test-results --editor-location=.Editor --rerun-strategy=Test --retry={{ num_test_retries }} --clean-library-on-rerun --timeout={{ test_timeout }}
4049
artifacts:
4150
logs:
4251
paths:
4352
- "test-results/**/*"
53+
- "warmup/**/*"
4454
dependencies:
4555
- .yamato/_run-all.yml#run_quick_checks
4656
{% endfor -%}

0 commit comments

Comments
 (0)