Repository navigation
Conversation
The host test job runs the Espressif Python suite serially, followed by the host delegate checks on two builds. The suite is pure host work with no shared writable state, so run all three pytest invocations with pytest-xdist, capped to the container CPU quota with the existing pytest-parallelism helper and one torch thread per worker, following the emulator tests in test_espressif.sh. 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/26101
Note: Links to docs will display an error until the docs builds have been completed. ⏳ No Failures, 8 PendingAs of commit 3f88a1a with merge base f2d27e5 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This branch has not been deployed
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
The Espressif host-tests job runs the Python suite serially, followed by the host delegate checks on plain and sanitized builds. The suite is pure host work with no shared writable state, so run all three pytest invocations with pytest-xdist, capped to the container CPU quota with the existing pytest-parallelism helper and one torch thread per worker, following the emulator tests in test_espressif.sh.
--durations=10only reports the slowest tests for future profiling. The CMake builds are unchanged.Authored with AI assistance using Muse Code powered by muse-latest.
Test plan
Local verification:
bash -nand shellcheck pass on.ci/scripts/test_espressif_host.sh. The test set was audited before parallelizing it: all file writes go through per-testtmp_path(including the host-runner binaries, whose outputs land in the test's temp dir, and thexts3parser fixture, which compiles into a worker-specific temp dir), module-scoped fixtures are deep-copied before use or worker-local, thedisable_gradfixtures restore per test, randomness is explicitly seeded, and there is no hypothesis, env mutation,chdir, or module-level mutable state.Measured on this pull request (Test ESP32 Emulators run 47443230350, all jobs passing, versus run 47228895698): the main suite went from 1,236 passed, 82 skipped in 861 seconds to 1,259 passed, 82 skipped in 135 seconds, running on eight workers (
PYTEST_XDIST_AUTO_NUM_WORKERS=8); each host delegate phase went from 82 passed in about 172 seconds to 82 passed in 43 and 39 seconds; and the host-tests job fell from 25m39s to 9m10s, with no failures.