Skip to content

Reduce CI Log Verbosity and Improve Failure Visibility - #6462

Merged
mataylor-nvidia merged 32 commits into
isaac-sim:developfrom
mataylor-nvidia:mataylor/improve-loglevels
Jul 16, 2026
Merged

mataylor-nvidia merged 32 commits into
isaac-sim:developfrom
mataylor-nvidia:mataylor/improve-loglevels

Conversation

@mataylor-nvidia

Copy link
Copy Markdown
Contributor

Description

CI output is noticeably less verbose for normal successful setup and initialization paths
Failure logs preserve the important debugging details for failed tests
The end of the CI log includes a clear summary of failed tests
Logs from tasks/core are easier to navigate and no longer dominated by scene/task init noise
Engineers can identify the failing test and its main error from the log without excessive scrolling

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context.
List any dependencies that are required for this change.

Fixes # (OMPE-100763)

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Screenshots

Please attach before and after screenshots of the change if applicable.

Checklist

  • I have read and understood the contribution guidelines
  • I have run the pre-commit checks with ./isaaclab.sh --format
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • I have updated the changelog and the corresponding version in the extension's config/extension.toml file
  • I have added my name to the CONTRIBUTORS.md or my name already exists there

@github-actions github-actions Bot added isaac-lab Related to Isaac Lab team infrastructure labels Jul 10, 2026
@mataylor-nvidia mataylor-nvidia changed the title Use logger, set log level in conftest Reduce CI Log Verbosity and Improve Failure Visibility Jul 10, 2026
@greptile-apps

greptile-apps Bot commented Jul 10, 2026 •

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR reduces CI log verbosity by converting diagnostic print() calls in tools/conftest.py to structured logging calls (INFO for progress messages, WARNING for empty-report events, ERROR for read failures), and refactors artifact upload logic into a new reusable upload-junit-results composite action. The outer pytest invocation also changes from -sv to --show-capture=all to suppress passing-test noise while still surfacing captured output on failures.

  • New upload-junit-results action: Consolidates JUnit XML upload, comparison-image upload, and omni-github forwarding into a single reusable step, replacing duplicated upload-artifact + upload-omni-github-test-results blocks across run-tests, install-ci-run, and daily-compatibility workflows.
  • conftest.py logging refactor: All orchestrator print statements move to logging.* at appropriate levels; debug-only messages (skipping files) are downgraded to logger.debug() so they are invisible in normal runs.
  • Subprocess command change: The individual-test subprocess (_run_one_pass) now includes --show-capture=all alongside the existing -s flag, and the outer install-ci-run invocation drops -sv in favor of --show-capture=all.

Confidence Score: 5/5

Safe to merge; the CI workflow refactoring is well-structured and all existing upload call sites have corresponding upload-junit-results steps.

The consolidation of artifact upload logic into the new reusable action is clean and all three calling contexts have been updated consistently. The logging refactor uses appropriate levels throughout. The two new findings are both minor: a redundant flag in the subprocess command and a missing guard that only affects future callers.

tools/conftest.py (redundant --show-capture=all with -s) and .github/actions/upload-junit-results/action.yml (missing artifact-name guard for comparison images)

Important Files Changed

Filename Overview
tools/conftest.py All diagnostic print() calls converted to logger.*; --show-capture=all added to subprocess pytest cmd alongside existing -s (making it a no-op for subprocess capture)
.github/actions/upload-junit-results/action.yml New reusable action consolidating artifact upload; comparison-images step guard checks path but not artifact-name, creating a footgun for future callers
.github/actions/run-tests/action.yml Upload steps removed and delegated to callers; all existing callers confirmed to have corresponding upload-junit-results steps
.github/actions/install-ci-run/action.yml Upload step removed from action; outer pytest args changed from -sv to --show-capture=all; install-ci.yml compensates with upload-junit-results step
.github/actions/run-package-tests/action.yml Adds upload-junit-results step with correct parameters; properly provides both comparison-images-path and comparison-images-artifact-name
.github/workflows/daily-compatibility.yml Switches both jobs from raw upload-artifact to upload-junit-results; junit-file paths match what is copied from Docker containers
.github/workflows/install-ci.yml Adds upload-junit-results after install-ci-run for both x86 and ARM jobs; artifact names use runner.arch for uniqueness

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[CI Job] --> B[run-tests / install-ci-run]
    B --> C[Test execution]
    C --> D{Tests pass?}
    D -->|yes| E[JUnit XML written]
    D -->|no| E
    E --> F[upload-junit-results action]
    F --> G[Upload comparison images if path provided]
    F --> H[Upload JUnit XML artifact]
    F --> I[upload-omni-github-test-results]
    H --> J[artifact-url output]
    J --> I
    G --> K[comparison-images-url output]
    K --> I
    I --> L[Convert JUnit to omni-github format]
    L --> M[Schema validate]
    M --> N[Upload omni-github artifact]
Loading
%%{init: {'theme': 'base', 'themeVariables': {"darkMode": true, "background": "#0d1117", "primaryColor": "#21262d", "primaryTextColor": "#e6edf3", "primaryBorderColor": "#8b949e", "lineColor": "#8b949e", "textColor": "#e6edf3", "edgeLabelBackground": "#161b22", "actorBkg": "#21262d", "actorBorder": "#8b949e", "actorTextColor": "#e6edf3", "actorLineColor": "#8b949e", "signalColor": "#8b949e", "signalTextColor": "#e6edf3", "noteBkgColor": "#373320", "noteBorderColor": "#d4a72c", "noteTextColor": "#f0e6c0", "labelBoxBkgColor": "#21262d", "labelBoxBorderColor": "#8b949e", "labelTextColor": "#e6edf3", "loopTextColor": "#e6edf3", "activationBkgColor": "#30363d", "activationBorderColor": "#8b949e"}}}%%
flowchart TD
    A[CI Job] --> B[run-tests / install-ci-run]
    B --> C[Test execution]
    C --> D{Tests pass?}
    D -->|yes| E[JUnit XML written]
    D -->|no| E
    E --> F[upload-junit-results action]
    F --> G[Upload comparison images if path provided]
    F --> H[Upload JUnit XML artifact]
    F --> I[upload-omni-github-test-results]
    H --> J[artifact-url output]
    J --> I
    G --> K[comparison-images-url output]
    K --> I
    I --> L[Convert JUnit to omni-github format]
    L --> M[Schema validate]
    M --> N[Upload omni-github artifact]
Loading

Reviews (8): Last reviewed commit: "update" | Re-trigger Greptile

Comment thread tools/conftest.py Resolved
Comment thread tools/conftest.py Resolved

"""
# prepare the managers
# -- event manager (we print it here to make the logging consistent)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

print vs logger usage could effect how verbose the logs are

comment says print it here to make the logging consistent, but I do not see print used elsewhere besides scripts

Comment thread tools/conftest.py Resolved
Set CARB_LOG_LEVEL=Warn in Docker env so Isaac Sim initialization
messages no longer flood CI logs. Remove -v from the outer pytest
invocation inside the container (verbose item headers add no value
when conftest.py owns the run and summary). Add logging.basicConfig
so the conftest logger.info() progress messages reliably appear
instead of being silently dropped by Python's default WARNING filter.
Add --log-level=WARNING to all pytest invocations so that verbose
logger.info() calls (e.g. Simulation Joint Information tables from
articulation init) are suppressed during normal CI runs.

Also switch --show-capture=all to --show-capture=failed so captured
output sections only appear for failing tests.
Comment thread pyproject.toml Outdated
[tool.pytest.ini_options]

log_level = "WARNING"
log_file_level = "INFO"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

log file should have full traceback for download

@github-actions github-actions Bot added the isaac-mimic Related to Isaac Mimic team label Jul 16, 2026
Remove yml changes that crept in from earlier CI work and partial reverts.
The only intended changes in this PR are Python/conftest logging improvements.
Comment thread tools/conftest.py Resolved
Comment thread tools/conftest.py
if os.environ.get("ISAACLAB_TEST_QUEUE"):
test_files = list(test_status)

print("failed tests:", failed_tests)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

todo: I think failed tests should be an error?

@mataylor-nvidia mataylor-nvidia Jul 16, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, I was thinking this however is it a test error or an error of the manager

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the errors of the manager world be unable to run tests, ....

Comment thread tools/conftest.py
sys.executable,
"-m",
"pytest",
"-s",

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question (non-blocking): if there is no capture how does the new flag work --show-capture=all if the main change is to remove this flag which is --capture=no?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

--capture=no (or -s) disables capturing entirely. stdout/stderr stream directly to the terminal in real-time, nothing is buffered.
--show-capture=all keeps capturing on (default fd mode buffers everything), but when a test fails, pytest dumps all captured stdout, stderr, and logs into the failure report

i.e. only dump the capture on failure

@mataylor-nvidia
mataylor-nvidia merged commit afef437 into isaac-sim:develop Jul 16, 2026
62 of 66 checks passed
matthewtrepte pushed a commit to matthewtrepte/IsaacLab that referenced this pull request Aug 4, 2026
# Description

CI output is noticeably less verbose for normal successful setup and
initialization paths
Failure logs preserve the important debugging details for failed tests
The end of the CI log includes a clear summary of failed tests
Logs from tasks/core are easier to navigate and no longer dominated by
scene/task init noise
Engineers can identify the failing test and its main error from the log
without excessive scrolling

Please include a summary of the change and which issue is fixed. Please
also include relevant motivation and context.
List any dependencies that are required for this change.

Fixes # (OMPE-100763)

## Type of change

- Bug fix (non-breaking change which fixes an issue)

## Screenshots

Please attach before and after screenshots of the change if applicable.

<!--
Example:

| Before | After |
| ------ | ----- |
| _gif/png before_ | _gif/png after_ |

To upload images to a PR -- simply drag and drop an image while in edit
mode and it should upload the image directly. You can then paste that
source into the above before/after sections.
-->

## Checklist

- [x] I have read and understood the [contribution
guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html)
- [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with
`./isaaclab.sh --format`
- [x] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [x] I have added tests that prove my fix is effective or that my
feature works
- [x] I have updated the changelog and the corresponding version in the
extension's `config/extension.toml` file
- [x] I have added my name to the `CONTRIBUTORS.md` or my name already
exists there

<!--
As you go through the checklist above, you can mark something as done by
putting an x character in it

For example,
- [x] I have done this task
- [ ] I have not done this task
-->

---------

Signed-off-by: Matthew Taylor <[email protected]>
mataylor-nvidia added a commit that referenced this pull request Aug 13, 2026
# Description

Fixes large blocks of NUL bytes being written to CI logs during kitless
rendering tests, at the source.

The kitless rendering tests overrode `OVRTXRendererCfg.log_file_path` to
`/dev/stdout` (`CON` on Windows), added in #5749 so the RTX
shader-compilation timeline would be visible while a test appeared to
hang.

OVRTX opens that path natively and, running with
`keep_system_alive=True`, retains the handle for the lifetime of the
process. Under pytest's file-descriptor capture, fd 1 is a temporary
file that pytest rewinds and truncates between tests, so the retained
handle keeps writing at a stale offset and the resulting sparse gap is
read back as a block of NUL bytes.

This drops the override entirely rather than working around it.
`log_file_path` already defaults to `<system temp>/ovrtx_renderer.log`,
so `_redirect_ovrtx_renderer_log_to_stdout()` only ever moved the log
somewhere less safe — and its hardcoded camera-name list
(`tiled_camera`, `base_camera`, `wrist_camera`) silently missed any
camera named otherwise.

To keep the log visible, an autouse fixture in
`source/isaaclab_tasks/test/conftest.py` replays the bytes each test
appends. It is a no-op for tests that never build an OVRTX renderer,
records only the byte range written during the test, and replays from
the beginning when the 64 bytes in front of that range changed — the log
was truncated and rewritten, by OVRTX opening one an earlier pytest
process left behind, say.

Net effect: 48 lines deleted, 36 added, and no test-owned file
descriptor competing with pytest for stdout.

## Alternative considered

Running the child pytest with `--capture=sys` (#7031) avoids the
sparse-file mechanism, but breaks `SimulationApp.__init__`, which calls
`faulthandler.enable()` — that needs a real fd, and under `sys` capture
`sys.stderr` is a `CaptureIO` with no `fileno()`. It also sends every
native fd-1/fd-2 write and all subprocess output from passing tests
straight to the job log, reversing #6462.

## Type of change

- Bug fix (non-breaking change which fixes an issue)

## Screenshots

Failure output with the fixture in place:

```
--------------------------- Captured stdout teardown ---------------------------

----- OVRTX renderer log: test_failing_ovrtx_test -----
[omni.rtx] BOOM
```

## Checklist

- [x] I have read and understood the [contribution
guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html)
- [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with
`./isaaclab.sh --format`
- [x] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [x] I have added a changelog fragment under
`source/<pkg>/changelog.d/` for every touched package (do **not** edit
`CHANGELOG.rst` or bump `extension.toml` — CI handles that)
- [x] I have added my name to the `CONTRIBUTORS.md` or my name already
exists there
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infrastructure isaac-lab Related to Isaac Lab team isaac-mimic Related to Isaac Mimic team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants