Updated test logging and timeouts#608
Open
Micky774 wants to merge 6 commits into
Open
Conversation
ipanfilo
reviewed
Jun 4, 2026
| # traceback instead of the run silently timing out hours later. | ||
| # All are overridable from the environment. | ||
| export PYTHONFAULTHANDLER=1 | ||
| : ${PYTEST_TIMEOUT:=1200} # per-test (per-parametrization) timeout, seconds |
Collaborator
There was a problem hiding this comment.
I would say 20 minutes for individual test is overkill
| if: always() | ||
| run: | | ||
| command -v python3 >/dev/null 2>&1 || { echo "python3 not available; skipping report"; exit 0; } | ||
| python3 ci/junit_report.py test-results \ |
Collaborator
There was a problem hiding this comment.
Can separate reports be generated for Pytorch/JAX/Core then? It will require passing JUNITXML_PREFIX=${JUNITXML_PREFIX}/[torch|jax|core] but will probably be much user friendly than having all tests in one report
ipanfilo
reviewed
Jun 4, 2026
| fi | ||
| } | ||
|
|
||
| get_ctest_junitxml() { |
Collaborator
There was a problem hiding this comment.
Please also update README to indicate that core tests honor JUNITXML* envs
The sGPU job ran pytorch.sh/jax.sh/core.sh in parallel into a shared test-results/ dir and merged them into one report. Give each suite its own subdir via a per-subprocess JUNITXML_PREFIX override and emit one junit_report.py report per suite. This also fixes a latent collision: test_sanity_import.py runs in both the torch and jax suites at level 1/auto, so both wrote test-results/test_sanity_import.auto.xml in parallel and clobbered each other. Per-suite subdirs resolve it. mGPU is unchanged (already per-framework via the build matrix). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Contributor
Author
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.

Description
This PR improves CI test logging by:
JUNITXML_PREFIXloggingFixes # (issue)
Type of change
Changes
Please list the changes introduced in this PR:
Checklist: