Repository navigation
NXP backend: shortening test names POC - #25002
novak-vaclav merged 1 commit into
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/25002
Note: Links to docs will display an error until the docs builds have been completed. ❌ 3 New FailuresAs of commit c8727b2 with merge base efd7f9b ( NEW FAILURES - The following jobs have failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
517c414 to
abfcf00
Compare
|
Internal tests are passing: https://bamboo3.sw.nxp.com/browse/MLTECE-EXGHSPEC86-4 |
abfcf00 to
6963af5
Compare
6963af5 to
359c887
Compare
|
Fixed issues found by @robert-kalmar and rebased onto |
|
LGTM. Two small things:
Generated by WChat AI Agent |
359c887 to
c938232
Compare
|
Fixed issues found by @robert-kalmar. |
Not yet : filelock is used in nsys_testing.py but not declared in requirements-dev.txt — please add it. |
c938232 to
423d03a
Compare
423d03a to
4402fbe
Compare
|
Fixed issues found by @robert-kalmar and @MartinPavella and rebased onto current main. |
4402fbe to
c8727b2
Compare
|
Thank you for reviews. Rebased onto main so OSS tests run again, then I will merge. |
|
Internal tests are passsing. The OSS CI failures do not seem to be related to this PR. |
Summary
Motivation
This commit adds a proof-of-concept mechanism that shortens the names of the per-test output directories in the NXP backend test suite. By default, Windows limits a file path to 260 characters. Until now, each output directory was named after the full sanitized PyTest node ID, which includes the class name and parametrization ID. As a result, the paths of the output directories and debug archives often went over this limit.
Gathering test information
The code no longer derives the test identity by sanitizing the raw PyTest node ID with a regex. It now builds it from the PyTest
requestobject, usingrequest.node.name.Naming scheme
Each test's output directory, and the
.ziparchive created from it in debug mode, is named<test_name>_<hash>. Here<hash>is the first 8 hex characters of the SHA-256 hash of the PyTest node id.Files inside the directory no longer repeat the test name. They have fixed names such as
model_delegated.pte,model_non_delegated.pte,model_non_quantized.pte,model_cortex_m_delegated.pteandmodel_partitioned.json. This also shortens the paths.Linking shortened names back to tests
This works on two levels:
<dir_name>: <full test ID>entry totest_name_mapping.yamlin the root of the outputs directory.DEBUG,summary.yamlinside the test directory records the full test identity.cc @robert-kalmar @JakeStevens @digantdesai @rascani @roman-janik-nxp