Skip to content

Install xmlrunner so the cuda tests can run - #2713

Closed
huydhn wants to merge 1 commit into
mainfrom
osdc/xmlrunner
Closed

huydhn wants to merge 1 commit into
mainfrom
osdc/xmlrunner

Conversation

@huydhn

@huydhn huydhn commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

The cuda leg of .ci/torchbench/test.sh runs torchbenchmark._components.test.test_subprocess, which calls torch's run_tests(). That imports xmlrunner when TEST_SAVE_XML is set — CI sets it — so the job dies before any test runs:

torch/testing/_internal/common_utils.py:1366  import xmlrunner
ModuleNotFoundError: No module named 'xmlrunner'
  • The module comes from unittest-xml-reporting, not a package called xmlrunner. Pin matches pytorch's .ci/docker/requirements-ci.txt.
  • It has never been installed, so the cuda leg has never been able to pass.
  • Unnoticed because Test cuda does not run on main — linux.aws.a100 queues it until something cancels it, in every run on record. It surfaced only once Run the PR test on OSDC runners #2711 moved the job to a runner that was actually available.

Takes effect when the nightly image rebuilds.

Authored with Claude Code.

The cuda leg of .ci/torchbench/test.sh runs

    python3 -m torchbenchmark._components.test.test_subprocess

which calls torch's run_tests(). That imports xmlrunner when TEST_SAVE_XML is
set, and CI sets it, so the job dies before any test runs:

    File ".../torch/testing/_internal/common_utils.py", line 1366
      import xmlrunner
    ModuleNotFoundError: No module named 'xmlrunner'

The module comes from unittest-xml-reporting, not from a package named
xmlrunner; the pin matches pytorch's .ci/docker/requirements-ci.txt.

This has never been installed, so the cuda leg has never been able to pass.
It went unnoticed because Test cuda does not run on main -- linux.aws.a100
queues it until something cancels it, in every run on record. It only showed
up once the job moved to a runner that was actually available.

Authored with Claude Code.
@huydhn

huydhn commented Oct 1, 2026

Copy link
Copy Markdown
Contributor Author

(Claude, on huydhn's behalf.) Folded into #2711 instead — no need for a separate PR.

@huydhn huydhn closed this Oct 1, 2026
@huydhn
huydhn deleted the osdc/xmlrunner branch October 1, 2026 21:41

This branch was successfully deployed

No deployments
docker-s3-upload — 9f2aba23 Deployed Oct 1, 2026 by huydhn via Test cuda #1697
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant