Skip to content

[NVBug 6847498] Fix ARC-AGI resources README dataset cd sequence #4492

Closed

Description

@qiaochuz-nv

Queue rank 5/48 · Difficulty 1/5 · Status on main: not_fixed

NVBug: https://nvbugspro.nvidia.com/bug/6847498 · NVBug priority: Unprioritized (Severity 3; reporter suggests P2) · ARB: Ananth Subramaniam
GitHub: none found (no fix PR; related doc rewrite #2735 covers only environments/arc_agi)

Summary

The "Create datasets" block in resources_servers/arc_agi/README.md uses cd resources_servers/arc_agi twice. After the first cd the shell is already inside that dir, so the second cd targets a nonexistent nested path. ARC-AGI-2 is cloned in the wrong directory, so create_dataset.py --version 2 reads nothing and silently writes empty ARC-AGI-2 datasets. Docs-only defect.

Reproduction

From a clean Gym checkout, paste README.md:30-42 as one shell session (the published block separates commands by newlines, not &&): cd Gym/; git clone .../ARC-AGI; cd resources_servers/arc_agi; python3 create_dataset.py; git clone .../ARC-AGI-2; cd resources_servers/arc_agi; python3 create_dataset.py --version 2. Without set -e it exits 0 with 0-row arc_agi_2_*.jsonl and example_2.jsonl; the QA case adds set -e and exits 1 at cd: resources_servers/arc_agi: No such file or directory. (With && the failed second cd would abort before --version 2, writing nothing.)

Root cause

Confirmed. README.md:35 and :40 both cd resources_servers/arc_agi relative; the second runs from inside that dir. The ARC-AGI-2 clone lands in resources_servers/arc_agi/ARC-AGI-2, but create_dataset.py:49 reads ../../ARC-AGI-2 (Gym root). The script never checks the source dirs exist (:50-51, :56/:86 glob empty→0) and hard-codes "5 tasks" at :120.

Status on main (not_fixed)

HEAD 75bb53e. resources_servers/arc_agi/README.md:30-42 still has both cd resources_servers/arc_agi lines. git log 4b30acc3..HEAD -- README.md create_dataset.py is empty; last touch is #1831 (adc5e71) / #105. create_dataset.py is byte-identical to environments/arc_agi/prepare.py.

Proposed fix

Replace README.md:30-42 with the working block from environments/arc_agi/README.md:74-81: clone both repos from Gym root, cd resources_servers/arc_agi, run both versions, then cd ../... The rewritten block keeps cd Gym/ as its first line (the section precedes "Install Gym") and ends with cd ../... Remove the now-redundant cd Gym/ at README.md:46. Optional hardening in create_dataset.py: fail when ../../ARC-AGI{,-2}/data/{training,evaluation} is missing/empty and print the real example count at :120.

Validation

testcases/environments/arc_agi.py (registry arc_agi, e2e, status=fail, nvbugs=[6847498]). After merge, QA repoints the canonical case resource_readme_directory_sequence (lines 562-592) to run the shipped README block, then re-runs all three cases; expect ARC-AGI-2 to yield 1000 training / 120 evaluation rows.

Triage

Difficulty 1/5 — localized one-file doc fix, correct working-dir pattern already shipped in the sibling README, reproducible without GPU. Effort ~1.5 h. Needs GPU/model: no (dataset case; full testcase needs H100). External dependency: none.

Reviewer notes

Verifier confirmed not_fixed and lowered difficulty 2→1 (minimal fix is one docs file; the sibling README already ships the correct working-dir pattern, and the create_dataset.py guard is explicitly optional). Corrections applied: the published repro block uses newlines, not && (with && the failed second cd aborts before --version 2); the rewritten block keeps cd Gym/ first and ends cd ../... QA names match.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions