Repository navigation
docs(reference): name the judge profile default QOS source as a constant - #5602
Conversation
…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]>
|
/ok to test bdb7230 |
svcnvidia-nemo-ci
left a comment
There was a problem hiding this comment.
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.
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/41872269523 |
The Fern docs preview fails to parse the library reference page generated for
nemo_gym/orchestration/executors/judge_profile.py, withUnexpected character ' in attribute name.The page generator writes each field's default into a double-quoted MDX attribute as its Python repr.
JudgeExecutionProfile.qos_sourcedefaults to"the partition's default". Because the text contains an apostrophe, Python's repr wraps it in double quotes, so the generated line isand the attribute closes early.
The default is now the module constant
PARTITION_DEFAULT_QOS, with the same text, so the page showsstr = 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 innemo_gymcontains an apostrophe.The docs preview builds the library reference from
main's source, not the PR's. Until this is onmain, 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
mainfails with the error above, and the page from this change compiles. The judge profile unit tests pass unchanged.🤖 Generated with Claude Code