Skip to content

refactor: extract reusable components from harness conformance - #5367

Merged
marta-sd merged 3 commits into
mainfrom
martas/fep-1923-extract-shared-ci-code
Nov 13, 2026
Merged

marta-sd merged 3 commits into
mainfrom
martas/fep-1923-extract-shared-ci-code

Conversation

@marta-sd

@marta-sd marta-sd commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

What does this PR do?

Moves the generic parts of scripts/harness_conformance/ into scripts/check_suites/ so other CI check suites can reuse them: changed-path detection, ci-result.json, artifact download, check-run publishing, annotation and table escaping, and process-tree reaping. github_actions.py uses only the standard library, because workflows import it before Gym is installed. process.py needs psutil.

Also:

  • The runner is now started with python -m scripts.run_harness_conformance and the sys.path bootstrap is gone; the docs, the add-harness skill, the workflow and the rerun command in reports are updated.
  • The module docstring of github_actions.py names its gh and GH_TOKEN requirement and the permissions callers need.

Validation

Compatibility and benchmark impact

The direct command python scripts/run_harness_conformance.py no longer works; run python -m scripts.run_harness_conformance from the repository root. The ::warning annotation in ci.py now also escapes newlines, which its messages do not contain.

🤖 Generated with Claude Code

@copy-pr-bot

copy-pr-bot Bot commented Oct 30, 2026

Copy link
Copy Markdown

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@marta-sd
marta-sd added this pull request to stack #5369 October 30, 2026 14:32
@marta-sd marta-sd changed the title martas/fep 1923 extract shared ci code refactor: extract reusable components from harness conformance Oct 30, 2026
@svcnvidia-nemo-ci svcnvidia-nemo-ci added area:ci CI workflows, test routing, and repository automation ci CI, automation, test queue, or workflow infrastructure work labels Oct 30, 2026
@marta-sd

Copy link
Copy Markdown
Contributor Author

/ok to test 96e2956

@github-actions

github-actions Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

@marta-sd
marta-sd marked this pull request as ready for review November 2, 2026 14:21

@svcnvidia-nemo-ci svcnvidia-nemo-ci left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

SHIP

LGTM — no concerns found. I reviewed all 12 changed files and traced the affected workflow, reporting, and worker-execution paths. I found no regressions in result schemas, artifact handling, selection, or process supervision. The reporter's import chain remains standard-library-only.

Static review only; I didn't execute tests.

Note: formal approval is not available for this request, so this review is posted as a comment only.

Review generated by codex. This was a full review. Request a full review with /review reset=true.

@github-actions github-actions Bot added the sla:review-overdue Review response is over the one-business-day SLA label Nov 2, 2026

@giuliolovisotto giuliolovisotto left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks, Marta, for extracting these shared helpers! This is a useful point to clarify the change-selection contract before more suites reuse it. I left comments on the merge-base edge cases and two non-blocking questions about the CLI dependency and import layout.

Comment thread scripts/check_suites/github_actions.py Resolved
Comment thread scripts/check_suites/github_actions.py Resolved
Comment thread scripts/run_harness_conformance.py Resolved
lafrancef
lafrancef previously approved these changes Nov 4, 2026
@marta-sd

Copy link
Copy Markdown
Contributor Author

/ok to test cc52c98

@giuliolovisotto giuliolovisotto left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Reviewed the extraction and its callers at cc52c98. No blocking findings; 309 focused tests passed, covering CI reporting, artifact failures, selection, rendering and process cleanup. The earlier dependency and module-entry comments are addressed. The separate comparison/ref-resolution fixes are present in stacked #5370; this approval covers #5367.

marta-sd and others added 3 commits November 13, 2026 07:58
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Signed-off-by: Marta Stepniewska-Dziubinska <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Signed-off-by: Marta Stepniewska-Dziubinska <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Signed-off-by: Marta Stepniewska-Dziubinska <[email protected]>
@marta-sd
marta-sd force-pushed the martas/fep-1923-extract-shared-ci-code branch from cc52c98 to 2c19621 Compare November 13, 2026 08:06
@marta-sd

Copy link
Copy Markdown
Contributor Author

/ok to test 2c19621

@marta-sd
marta-sd enabled stacked auto-merge November 13, 2026 10:55
@marta-sd
marta-sd added this pull request to the merge queue Nov 13, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/43416795265

@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 13, 2026
@marta-sd
marta-sd added this pull request to the merge queue Nov 13, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/43422347076

Merged via the queue into main with commit b1068c7 Nov 13, 2026
74 checks passed
@marta-sd
marta-sd deleted the martas/fep-1923-extract-shared-ci-code branch November 13, 2026 12:24
jthomson04 added a commit to jthomson04/Gym that referenced this pull request Nov 13, 2026
Brings the branch up to date with main (33 commits). No file this branch
changes was changed on main, so there are no conflicts. The harness
conformance workflow on this branch was older than the script it runs
after NVIDIA-NeMo#5367, which made every probe report unavailable.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Signed-off-by: jthomson04 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:ci CI workflows, test routing, and repository automation ci CI, automation, test queue, or workflow infrastructure work needs-review PR is ready for code review and waiting on a reviewer sla:review-overdue Review response is over the one-business-day SLA

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants