Skip to content

fix(competitive_coding_challenges): prefer CCC_-prefixed dir env vars - #3963

Merged
zyzhou5 merged 1 commit into
mainfrom
pjin/ccc-env-vars-20261002
Oct 15, 2026
Merged

zyzhou5 merged 1 commit into
mainfrom
pjin/ccc-env-vars-20261002

Conversation

@pjin-nvidia

Copy link
Copy Markdown
Contributor

Super 3.5 post-training launchers export CCC_SHARED_TEMP_DIR and mount it into the sandbox containers, but main reads only SHARED_TEMP_DIR. shared_dir then silently falls back to /tmp, which the sandbox cannot see, so every CCC compile fails and scores 0.

Port #3113 (8ff4a09 on super-v3.5-posttraining) with backward compatibility, and give LOCAL_COMPILE_DIR (#3087) the same prefix:

  • shared_dir reads CCC_SHARED_TEMP_DIR, then SHARED_TEMP_DIR, then /tmp
  • local_compile_dir reads CCC_LOCAL_COMPILE_DIR, then LOCAL_COMPILE_DIR, then /tmp/nemo-gym-compile
  • drop the shared_dir overrides in benchmarks/ioi and benchmarks/ioi26; they duplicated the inherited CCC value and would have kept IOI on the old name
  • point the /tmp warning and the README at the prefixed names

Add tests that resolve the CCC, IOI and IOI26 configs through GlobalConfigDictParser with the variables unset, legacy-only, prefixed-only, and both set.

@copy-pr-bot

copy-pr-bot Bot commented Oct 3, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@yaoyu-33 yaoyu-33 added area:environment Individual environments, benchmarks, verifiers, and environment-specific resources servers bug Something isn't working complexity:low Localized change in one scope with a small, straightforward review surface needs-review PR is ready for code review and waiting on a reviewer labels Oct 3, 2026
@github-actions github-actions Bot added the sla:triage-overdue Review assignment is over the one-business-day SLA label Oct 5, 2026

@zyzhou5 zyzhou5 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.

LGTM

@zyzhou5
zyzhou5 enabled auto-merge October 9, 2026 22:55
@zyzhou5

zyzhou5 commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

/ok to test 27d0753

@zyzhou5 zyzhou5 added ready-to-merge PR is approved, current, and waiting for final CI or merge and removed sla:triage-overdue Review assignment is over the one-business-day SLA needs-review PR is ready for code review and waiting on a reviewer labels Oct 9, 2026
@nemo-automation-bot
nemo-automation-bot Bot requested a review from a team October 9, 2026 22:56
@zyzhou5 zyzhou5 added waiting-on-customer Waiting on the original author to respond and removed ready-to-merge PR is approved, current, and waiting for final CI or merge labels Oct 12, 2026
Super 3.5 post-training launchers export CCC_SHARED_TEMP_DIR and mount
it into the sandbox containers, but main reads only SHARED_TEMP_DIR.
shared_dir then silently falls back to /tmp, which the sandbox cannot
see, so every CCC compile fails and scores 0.

Port #3113 (8ff4a09 on super-v3.5-posttraining) with backward
compatibility, and give LOCAL_COMPILE_DIR (#3087) the same prefix:

- shared_dir reads CCC_SHARED_TEMP_DIR, then SHARED_TEMP_DIR, then /tmp
- local_compile_dir reads CCC_LOCAL_COMPILE_DIR, then LOCAL_COMPILE_DIR,
  then /tmp/nemo-gym-compile
- drop the shared_dir overrides in benchmarks/ioi and benchmarks/ioi26;
  they duplicated the inherited CCC value and would have kept IOI on
  the old name
- point the /tmp warning and the README at the prefixed names

Add tests that resolve the CCC, IOI and IOI26 configs through
GlobalConfigDictParser with the variables unset, legacy-only,
prefixed-only, and both set.

Signed-off-by: Peter Jin <[email protected]>
@ananthsub
ananthsub force-pushed the pjin/ccc-env-vars-20261002 branch from 27d0753 to 66e5536 Compare October 15, 2026 15:37
@ananthsub

Copy link
Copy Markdown
Contributor

/ok to test 66e5536

@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/38765444032

Merged via the queue into main with commit 5ba257d Oct 15, 2026
42 of 47 checks passed
@zyzhou5
zyzhou5 deleted the pjin/ccc-env-vars-20261002 branch October 15, 2026 16:19
yfw added a commit that referenced this pull request Oct 15, 2026
Brings in main via yifuw/sandbox-verify-code-gen. Resolved benchmarks/ioi{,26}/config.yaml:
dropped the shared_dir override (main's #3963 made the server default read CCC_SHARED_TEMP_DIR)
and kept this branch's grade_all_subtasks/partial_credit lines.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Yi-Fu Wu <[email protected]>

This branch was previously deployed

1 inactive deployment
public — 66e55360 Deployed Oct 15, 2026 by copy-pr-bot[bot] via release / finalize / notify #5506
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:environment Individual environments, benchmarks, verifiers, and environment-specific resources servers bug Something isn't working complexity:low Localized change in one scope with a small, straightforward review surface waiting-on-customer Waiting on the original author to respond

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants