Repository navigation
Description
🚀 The feature, motivation and pitch
Currently, AD unit tests are run as a single test block in CI via unittest/_torch/auto_deploy/unit/singlegpu.
This is not ideal for CI for various reasons, see discussion with @chzblych:
Regarding point (a), the test granularity is controlled by our developers, who have the flexibility to split "unittest/_torch/auto_deploy/unit/singlegpu" into smaller groups such as "unittest/_torch/auto_deploy/unit/singlegpu/compile", "unittest/_torch/auto_deploy/unit/singlegpu/custom_ops", and others. It's a trade-off between finer test granularity and additional setup overhead. In general, I think we should avoid having one large, monolithic test entry.
For unit tests, we use a two-level Pytest execution model. The outer level corresponds to the test entry specified in the test-db YAML files (e.g., "unittest/_torch/auto_deploy/unit/singlegpu"), while the inner level represents the underlying individual unit tests. If any inner test fails, the corresponding outer test entry fails as well. Capturing both levels of test results is important for cross-run reuse and unit test parallel execution. In some cases, due to fatal errors, test results for one or both levels might not be generated.
The goal is to
- split up and register AD unit tests in smaller blocks of tests
- re-organize and restructure tests to be more intuitively organized
- Update AD dev guide with clearer instructions on AD test hierarchy (unit, integration, dashboard), see this discussion as well: https://docs.google.com/document/d/1aW1A2kjggc83-amEgRd5f3amLygszop3jlb7i5pzQak/edit?disco=AAAByqJInMg
Alternatives
No response
Additional context
No response
Before submitting a new issue...
- Make sure you already searched for relevant issues, and checked the documentation and examples for answers to frequently asked questions.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
[NVIDIA#11166][infra] AutoDeploy: improve test organization in CI and…
[NVIDIA#11166][infra] AutoDeploy: improve test organization in CI and…
[NVIDIA#11166][infra] AutoDeploy: improve test organization in CI and…
[NVIDIA#11166][infra] AutoDeploy: improve test organization in CI and…
[NVIDIA#11166][infra] AutoDeploy: improve test organization in CI and…
[NVIDIA#11166][infra] AutoDeploy: improve test organization in CI and…
[NVIDIA#11166][infra] AutoDeploy: improve test organization in CI and…
[NVIDIA#11166][infra] AutoDeploy: improve test organization in CI and…
[NVIDIA#11166][infra] AutoDeploy: improve test organization in CI and…
[#11166][infra] AutoDeploy: improve test organization in CI and add o…
[NVIDIA#11166][infra] AutoDeploy: improve test organization in CI and…
[NVIDIA#11166][infra] AutoDeploy: improve test organization in CI and…
[NVIDIA#11166][infra] AutoDeploy: improve test organization in CI and…