Repository navigation
fix(hermes): keep Portable builds compatible with Podman - #10006
Conversation
Signed-off-by: Senthil Ravichandran <[email protected]>
Code Coverage OverviewLanguages: TypeScript TypeScript / code-coverage/pluginThe overall line coverage in commit 0b18fd6 in the TypeScript / code-coverage/cliThe overall line coverage in commit 0b18fd6 in the Show a line coverage summary of the most impacted files.
Updated |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (3)
Included review availability: Your plan provides up to 12 included reviews per hour; 11 remain after this review. 📝 WalkthroughWalkthroughHermes wheel ChangesHermes Portable ADD compatibility
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to The change removes unsupported remote wheel permissions while preserving checksum-pinned downloads and adds fail-closed parsing coverage; no actionable merge-blocking risk remains after normal checks and review. Suggested reviewers: 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Signed-off-by: Senthil Ravichandran <[email protected]>
Signed-off-by: Senthil Ravichandran <[email protected]>
Signed-off-by: Senthil Ravichandran <[email protected]>
|
Published revision |
prekshivyas
left a comment
There was a problem hiding this comment.
Reviewed the latest PR commit 0b18fd677d58c5a1c95b2886ce59d04991373172.
The code change preserves the checksum-pinned wheel sources, rejects unsupported remote ADD options before reservation, defaults Portable builds to amd64, and retains the managed architecture override. The focused build-context suite passed all 18 tests and required checks pass.
One acceptance blocker remains: issue #10007 and this PR require a fresh Hermes Portable onboarding to cross both image-build boundaries on rootless Podman 5.7. The latest contributor update says that exact-candidate qualification is starting, but no successful result is attached yet. Please publish the credential-free successful qualification for this commit; I found no other blocker.
|
Review follow-up for latest PR commit
|
## Summary Hermes Portable image creation now avoids every remaining BuildKit-only `RUN` option in the staged Dockerfile used by the supported rootless Podman 5.7 path. The change preserves checksum-pinned wheel acquisition and offline package resolution while using classic multi-stage `COPY`. ## Related Issue Fixes #10007 ## Changes - Replace the managed-wheel `RUN --mount` input with a selected cross-stage `COPY`. - Keep the disabled wheel stage non-empty with a reviewed public marker so classic builders can copy either selected stage. - Retain `UV_OFFLINE=true` and exact installed-version validation, then remove staged wheel inputs. - Remove `RUN --network=none` from both the wheel installation and bundled `ensurepip` check; neither path performs an external package lookup. - Reject every Dockerfile `RUN` option before Hermes Portable context reservation. - Add fail-first `--network` and `--mount` regressions and a positive staged-Dockerfile compatibility assertion. ## Type of Change - [x] Code change (feature, bug fix, or refactor) - [ ] Code change with doc updates - [ ] Doc only (prose changes, no code sample modifications) - [ ] Doc only (includes code sample changes) ## Quality Gates - [x] Tests added or updated for changed behavior - [ ] Existing tests cover changed behavior — justification: - [ ] Tests not applicable — justification: - [x] Sensitive paths changed (security, policy, credentials, preflight, onboarding, inference, runner, sandbox, or messaging) - [x] Sensitive-path review completed or maintainer-approved waiver recorded — focused review confirms wheel URLs and SHA-256 pins are unchanged, package resolution remains offline, the copied marker is an existing reviewed public JSON artifact, staged wheel inputs are removed after validation, and unsupported `RUN` options fail before reservation. No credential, policy, socket, runtime-authority, or provider behavior changes. - [ ] Non-success, skipped, or missing CI check accepted by maintainer — check name, approval link, and follow-up issue: ## DGX Station Hardware Evidence - [ ] Tested on DGX Station - Tested commit: not applicable - Station profile/scenario: not applicable - Result: not applicable - Supporting evidence: not applicable ## Verification - [x] PR description includes a `Signed-off-by:` line and the commit is signed and DCO-trailed - [x] Normal pre-commit, commit-msg, and pre-push hooks passed - [x] `npm test -- src/lib/onboard/experimental/hermes-portable-build-context.test.ts` — 20/20 passed - [x] `npm run typecheck:cli` passed - [x] `npm run test:changed` — growth guardrails 32/32 and affected tests 204/204 passed - [x] `npm run lint` passed, including formatting and repository checks - [x] `hadolint agents/hermes/Dockerfile` passed - [x] Full staged Hermes Dockerfile scan found no remaining `RUN` option or non-Portable local `COPY` option - [x] Focused security review passed with no finding - [x] Documentation review found no user-facing documentation change - [x] No secrets, API keys, or credentials committed - [ ] `npm run docs` builds without warnings (doc changes only) - [ ] Doc pages follow the style guide (doc changes only) - [ ] New doc pages include SPDX header and frontmatter (new pages only) ### Live reproduction A fresh Ubuntu 22.04, rootless Podman 5.7, L40S qualification at the merged #10006 revision crossed the remote `ADD` and `TARGETARCH` boundaries, reached step 208/251, and stopped after 346.4 seconds with `Docker stream error: the --network option requires BuildKit`. No retry, resume, or cleanup followed; the failed VM is retained. The tested follow-up revision is `b715f1f5a08ab901a20d95eff1cddd517cdb4d6f`. A new fresh full Hermes Portable qualification will run after review. --- Signed-off-by: Senthil Ravichandran <[email protected]> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Improved portable container builds across supported environments. * Increased reliability of offline dependency installation and sandbox readiness handling. * Added bounded command timeouts and deadline-aware sandbox observation. * Strengthened Dockerfile validation for parser directives, comments, and continued instructions. * **Tests** * Expanded coverage for portable builds, onboarding timeouts, and readiness polling. * Added end-to-end validation for rootless builds, image creation, and cleanup. * Updated workflow checks to detect relevant portable-build changes. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Signed-off-by: Senthil Ravichandran <[email protected]>
Summary
Hermes Portable image creation now keeps the managed wheel stages compatible with the supported rootless Podman 5.7 builder. The change preserves checksum-pinned wheel acquisition, removes the BuildKit-only remote ADD permission option, and supplies an amd64 default for the automatic TARGETARCH argument that Podman does not provide.
Related Issue
Fixes #10007
Changes
Type of Change
Quality Gates
DGX Station Hardware Evidence
Verification
Live reproduction
Two fresh Ubuntu 22.04, rootless Podman 5.7, L40S Brev attempts established the complete failure sequence without retry or cleanup:
The published replacement revision is 0b18fd6. A fresh full Portable qualification is running against this revision.
Signed-off-by: Senthil Ravichandran [email protected]