Skip to content

docs(reference): name the judge profile default QOS source as a constant - #5602

Merged
yuhezhang-ai merged 1 commit into
mainfrom
arajfer/docs-reference-default-quote
Nov 4, 2026
Merged

yuhezhang-ai merged 1 commit into
mainfrom
arajfer/docs-reference-default-quote

Conversation

@AdamRajfer

Copy link
Copy Markdown
Contributor

The Fern docs preview fails to parse the library reference page generated for nemo_gym/orchestration/executors/judge_profile.py, with Unexpected character ' in attribute name.

The page generator writes each field's default into a double-quoted MDX attribute as its Python repr. JudgeExecutionProfile.qos_source defaults to "the partition's default". Because the text contains an apostrophe, Python's repr wraps it in double quotes, so the generated line is

<ParamField path="qos_source" type="str = "the partition's default"">

and the attribute closes early.

The default is now the module constant PARTITION_DEFAULT_QOS, with the same text, so the page shows str = PARTITION_DEFAULT_QOS. The two other places that set the same source use the constant as well. The text written to the operator's log does not change. No other plain string default in nemo_gym contains an apostrophe.

The docs preview builds the library reference from main's source, not the PR's. Until this is on main, the preview of every PR that touches docs fails on this page.

Verified by generating the page locally with the docs CLI and compiling it with MDX 3: the page from main fails with the error above, and the page from this change compiles. The judge profile unit tests pass unchanged.

🤖 Generated with Claude Code

…stant

The library reference page for the judge_profile module failed to parse.
The page generator writes each field's default into an MDX attribute as
its Python repr, and JudgeExecutionProfile.qos_source defaulted to the
string "the partition's default". Because of the apostrophe, the repr is
double-quoted, so the generated line was

  <ParamField path="qos_source" type="str = "the partition's default"">

and MDX stopped at the `'` ("Unexpected character `'` in attribute name").

The default is now the module constant PARTITION_DEFAULT_QOS, with the same
text, so the page shows `str = PARTITION_DEFAULT_QOS`, as it does for
`kind: str = CPU_PROFILE`. The two other places that set the same source
use the constant too. The text in the operator's log does not change. No
other plain string default in nemo_gym contains an apostrophe.

Verified by generating the page locally with the docs CLI and compiling it
with MDX 3: the old page fails with the error above, the new one compiles.
The judge profile tests pass unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Adam Rajfer <[email protected]>
@AdamRajfer

Copy link
Copy Markdown
Contributor Author

/ok to test bdb7230

@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. The constant extraction preserves the runtime default, CPU and served-judge QOS precedence, and reported text. I checked the affected callers, existing tests, and Fern generation configuration.

I didn't execute tests or compile the generated MDX; Fern's generator implementation isn't present in the supplied tree.

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.

@yuhezhang-ai
yuhezhang-ai added this pull request to the merge queue Nov 4, 2026
@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

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

Merged via the queue into main with commit e254137 Nov 4, 2026
63 of 66 checks passed
@yuhezhang-ai
yuhezhang-ai deleted the arajfer/docs-reference-default-quote branch November 4, 2026 17:16

This branch was previously deployed

1 inactive deployment
public — bdb72309 Deployed Nov 4, 2026 by copy-pr-bot[bot] via release / finalize / notify #10017
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.

3 participants