Skip to content

Open nightly failure issues for sample maintainers - #2

Merged
felixmey merged 3 commits into
NVIDIA:mainfrom
felixmey:fmeyer/nightly-failure-issues
Dec 2, 2026
Merged

felixmey merged 3 commits into
NVIDIA:mainfrom
felixmey:fmeyer/nightly-failure-issues

Conversation

@felixmey

@felixmey felixmey commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator

Note

Stacked on #1. This branch builds on the contributor guidelines in #1, so the diff below also contains #1's commit until it merges. To review only this change, see commit 4e62996.

Summary

Implements the remediation step in CONTRIBUTING.md ("we will open a GitHub issue and assign it to you") for the nightly run against Newton main.

One folder per sample. Each sample's code, README, images, and tests now live together in examples/<category>/<sample>/, so a single CODEOWNERS line covers a sample and removing a sample means deleting one folder.

  • get_examples() discovers examples/<category>/<sample>/example_*.py; uv run -m examples <name> is unchanged.
  • conftest.py moves to the repository root; pytest collects from examples/.
  • The wheel excludes sample tests, images, and READMEs, so it contains the same code as before.
  • CI lint covers every sample folder (examples/*/*/) instead of listing files.

CODEOWNERS. Adds .github/CODEOWNERS with the pulley sample folder and the shared repository infrastructure.

Nightly failure issues. A new report job in newton-main.yml runs only when the GPU job fails on main:

  • It maps failing JUnit tests to their sample folder and assigns the issue to that folder's CODEOWNERS (teams are mentioned, since they can't be assigned).
  • An open issue for the same sample gets a comment on later failures instead of a duplicate.
  • Failures outside the sample tests (dependency install, timeouts, missing results) go to the owners of the nightly workflow file.
  • The job runs on a GitHub-hosted runner with issues: write; the GPU job running Newton main keeps its read-only token.

Testing

  • CPU tests: 22 passed. CUDA tests (local RTX GPU): 5 passed.
  • ruff check / ruff format --check on the new lint paths.
  • Reporter dry runs against real JUnit output with an injected failure, a collection error, and missing results.
  • Built the wheel and checked its contents.

The report job itself has not run in Actions yet; the first failing nightly (or a manual dispatch on main with a failing test) will exercise it.

Alex-Omar-Nvidia and others added 3 commits December 1, 2026 09:59
Move each sample into its own folder (code, README, images, tests) so
CODEOWNERS can own a sample with one line, and register maintainers there.

When the nightly run against Newton main fails, a separate job with
issues: write opens or updates one issue per failing sample, assigned to
its CODEOWNERS. Failures outside the sample tests go to the owners of the
nightly workflow.
@Alex-Omar-Nvidia

Alex-Omar-Nvidia commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

suggestion: Post a reminder comment on each open nightly-failure issue roughly every seven days while it remains unresolved, mentioning its CODEOWNERS. This would implement the reminders at days 7, 14, and 21 in CONTRIBUTING.md without notifying maintainers on every nightly failure. Please keep the remediation clock tied to the unresolved failure, so reminder comments do not reset it.

suggestion (non-blocking): Automate removal through a pull request after the documented 28-day remediation window, accounting for approved extensions. The removal PR should link to the original compliance issue, and that issue should receive a link back to the PR. Track this separately in #4; reuse any existing removal PR and leave merging to maintainers.

I approved this PR so we can do these in a follow up if you want

@felixmey
felixmey marked this pull request as ready for review December 2, 2026 21:04
@felixmey
felixmey merged commit a49f851 into NVIDIA:main Dec 2, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants