Repository navigation
Conversation
Eight pytest workers build firmware concurrently in the operator-library implementation tests, and each idf.py build otherwise uses the container's whole CPU count for Ninja. Cap each worker's build to two jobs with IDF_PY_BUILD_JOBS, following the same oversubscription reasoning as the worker and thread caps. This is an experiment: if the implementation pytest does not get faster, revert it. Authored with AI assistance using Muse Code powered by muse-latest.
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/26104
Note: Links to docs will display an error until the docs builds have been completed. ❌ 4 Cancelled Jobs, 8 Pending, 1 Unrelated FailureAs of commit 2347b34 with merge base 7060464 ( CANCELLED JOBS - The following jobs were cancelled. Please retry:
FLAKY - The following job failed but was likely due to flakiness present on trunk:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This reverts commit 2347b34.
Contributor
Author
|
Reverted: run 47454237359 showed no improvement from capping Ninja jobs (824, 900, and 964 seconds versus roughly 750 to 860 seconds without the cap, with unchanged cold-build times), so the experiment commit is reverted in 9388566. Closing. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Eight pytest workers build firmware concurrently in the operator-library implementation tests, and each
idf.pybuild otherwise uses the container's whole CPU count for Ninja. Cap each worker's build to two jobs withIDF_PY_BUILD_JOBS, following the same oversubscription reasoning as the worker and thread caps. The variable is scoped to the implementation-test pytest invocation only; no harness or build code changes, and no other invocation in the script is affected. This is an experiment: if the implementation pytest does not get faster, it should be reverted.Authored with AI assistance using Muse Code powered by muse-latest.
Test plan
Local verification:
bash -nand shellcheck pass on.ci/scripts/test_espressif.sh. The control is documented in ESP-IDF v6.1, the version the emulator jobs use:IDF_PY_BUILD_JOBScaps the number of parallel build jobs when runningidf.pywith the Ninja generator.Measured on this pull request (Test ESP32 Emulators run 47454237359, all jobs passing): no improvement. The implementation pytest took 824, 900, and 964 seconds on ESP32-S3, ESP32-P4, and ESP32-S31, versus roughly 750 to 860 seconds on recent runs without this cap, and the slowest first-test cold builds were essentially unchanged (173 to 176 seconds on ESP32-S3, 202 to 205 seconds on ESP32-P4, 227 to 230 seconds on ESP32-S31). Total optimized job time was 30m37s, 32m50s, and 34m55s, versus 31m05s, 32m42s, and 34m01s on the control run. The cap did not make the cold builds faster, so this change should be reverted.