Repository navigation
feat(harbor): Compose service builds (M24) - #4689
Conversation
|
/ok to test b8c94f1 |
yuhezhang-ai
left a comment
There was a problem hiding this comment.
Early feedback on this draft, reviewed at b8c94f17 against the immediate stack parent #4566. Sharing two verified correctness cases now because they affect service preparation and verifier startup. The focused reproductions used controlled builders/sandboxes; no live provider/model rollout was performed during this review.
b8c94f1 to
3f718d0
Compare
|
/ok to test 3f718d0 |
3f718d0 to
faae5ef
Compare
|
/ok to test faae5ef |
faae5ef to
5ab8e28
Compare
|
/ok to test 5ab8e28 |
530416d to
de389db
Compare
|
/ok to test de389db |
de389db to
e68fc0a
Compare
|
/ok to test e68fc0a |
|
/ok to test 456fd32 |
|
/ok to test 57e6343 |
|
/ok to test 1e4309d |
|
/ok to test 760d1c8 |
|
/ok to test c4f91b9 |
svcnvidia-nemo-ci
left a comment
There was a problem hiding this comment.
HOLD
One BLOCKER and four RISK findings remain: separate-verifier runtime settings can be ignored while scoring, dependent images can be reused after their build dependencies change, and three preparation/metadata paths produce incorrect results.
Reviewed all 39 changed files and traced preparation → build records → task loading → sandbox/verifier startup. Source inspection confirms the earlier functional fixes for main-build restatements, shared verifier contexts, verifier startup, ARM64/v8 selection, platform-cache refresh, tag collisions, and sidecar workdirs. The findings below concern distinct cases.
Validation was static only; no tests, image builds, or live rollouts were executed.
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.
|
/ok to test b0f27b5 |
ffrujeri
left a comment
There was a problem hiding this comment.
Thanks for the thorough follow-up. I re-traced the five findings from the 23 Oct review at b0f27b5, and each fix is in the code with a test that exercises it. Refusing linux/amd64/v3 outright seems like a reasonable call.
Two things I'd like to understand before approving: whether the build-key refusals should also cover entitlements/privileged now that sidecars build on the prepare host, and whether the new tests/docker-compose.yaml refusals (plus the removed task-image overlay fallback for separate verifiers) could be written up in the PR body, since they shrink some datasets' eligible task sets. CI is green and the focused Harbor suites pass locally.
|
/ok to test 63da59a |
|
/ok to test d4c9fb8 |
parse_global_config_dict_from_cli monkeypatches hydra.main.get_args_parser to disable Hydra's help and left the patch in place, so a second parse in the same process wrapped the previous wrapper, one frame deeper each time; after 987 parses the parser recursed past the limit (RecursionError inside argparse/gettext). The unit-test session reaches the CLI from about that many tests, so the three multi-step tests this branch adds tipped the CI job over: test_harbor_validation and test_super35_batch_launcher failed with RecursionError, as every PR above this one did. The patch now lasts for the hydra call alone and is restored in a finally, the form the M38 second slice (#4872) already carried further up the stack; that slice's hunk becomes a no-op here. A test parses four times and checks hydra's own function is back. Co-Authored-By: Claude Fable 5.1 <[email protected]> Signed-off-by: Adil Asif <[email protected]>
Every Compose service with a build: section is built at prepare, as Harbor's docker compose build does. One build entry per (context, service): main keeps hb__<hash>, a sidecar is hb__<hash>-<service>. built-images.json records a services map per context (the top-level image stays main's, legacy records still read). The loader substitutes the recorded image for every built service and drops build: and pull_policy from the document the sandbox receives. The docker path builds the project in one compose build with an images override file passed last; buildah and podman build one service at a time with the direct-path argv. The blanket sidecar refusal is gone; the security refusals stay for every service. Verified on this node with buildah: counselbench-100 main plus world, tb3-preview-v2 three services. Co-Authored-By: Claude Fable 5.1 <[email protected]> Signed-off-by: Adil Asif <[email protected]>
|
/ok to test 9fd2b1a |
yuhezhang-ai
left a comment
There was a problem hiding this comment.
Rechecked 9fd2b1ae against main@7b632676. The earlier correctness findings and the build-permission follow-up are addressed, and the permission-sensitive fixtures now pass under restrictive umasks. No remaining blocking code finding from this recheck.
Validation: 688 focused core tests and 318 Harbor tests passed; the 141-test permission-sensitive subset also passed separately under umasks 077 and 027. These checks used controlled builders and sandbox stand-ins. The real Buildah smoke test was skipped because Buildah is unavailable; no fresh real image builds or live model rollouts were performed. Required CI checks pass. The remaining nonblocking Kilocode conformance failure also occurs on the parent.
Optional, nonblocking documentation follow-up: please copy the README's migration and dataset-eligibility summary into the PR description as discussed. The earlier README clarification about #4566's existing main-image Dockerfile support and task-image fallback also remains optional. Automatic refresh of incorrect AMD64 metadata cached by intermediate, unmerged revisions remains a known deferred limitation.
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/40368868951 |
What
Every Compose service with a
build:section is built at prepare, the way Harbor'sdocker compose buildbuilds the whole project. This is RFC milestone M24, Compose service builds.mainkeepshb__<hash>; a sidecar ishb__<hash>-<service>.built-images.jsonrecords aservicesmap per context. The top-levelimagestaysmain's, so older records still read.build:andpull_policyfrom the document the sandbox receives.docker compose buildwith an images override file passed last. buildah and podman build one service at a time with the direct-path argv.tests/Dockerfilewhen the task has one and declares no verifier image, as Harbor does. The record is keyed by Harbor's hash oftests/and the image owns/tests, so no tests upload.Why
The hub scan of 15 Oct 2026 (12,704 sampled tasks, 289 datasets) found 1,934 tasks in 34 datasets with a sidecar
build:section that Gym refused or silently skipped, and 892 separate-mode tasks in 21 datasets whose verifier image Harbor builds fromtests/Dockerfilewhile Gym graded in the agent image (pytest missing, reward 0). Report and reproductions:hub_dockerfiles_2026-10-15/REPORT.md,GAP_TESTS.md,D_TESTS.mdon Lustre.How it was verified
mainplusworld), tb3-preview-v2 (three services), tb3-preview-v2 verifier image (pytest on PATH,/tests/test.shpresent).🤖 Generated with Claude Code