fix(hermes): root staged OpenShell build context - #9915
Conversation
Signed-off-by: Senthil Ravichandran <senthilr@nvidia.com>
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Comment |
PR Review Advisor — Blocking findings reportedAdvisor assessment: Blockers require maintainer review Model lanes
2 additional E2E selections from the second opinionAdvisory only. The primary lane did not select these E2E jobs or targets.
Second-opinion terminology and E2E selections are advisory. Live E2E does not run automatically for pull requests. E2E guidanceAdvisory only. A maintainer can dispatch the default E2E suite for the commit under review. Recommended E2E: None Manual-only E2E: 1 optional E2E recommendation
Blockers
|
074ca72
into
fix/hermes-openshell-sandbox-absence
<!-- markdownlint-disable MD041 --> ## Summary The Hermes portable installer test now expects the root-level Dockerfile that the reviewed build-context producer supplies to OpenShell. This repairs the stale assertion left after #9915 moved that Dockerfile to the build-context root. ## Related Issue Related to #9211. ## Changes - Expect `<build-context>/Dockerfile` in the portable Hermes installer fixture. - Preserve the existing assertion that `sandbox create --from` uses the reviewed build context. ## 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: - [ ] Docs updated for user-facing behavior changes - [x] Docs not applicable, justification: This test-only change aligns with existing accepted production behavior and changes no user-facing contract. - [x] Sensitive paths changed (security, policy, credentials, preflight, onboarding, inference, runner, sandbox, or messaging) - [x] Sensitive-path review completed or maintainer-approved waiver recorded, reviewer/approval link/justification: The nine-category review found no production, credential, policy, authorization, dependency, logging, or runtime-state change. The assertion restores coverage for the reviewed build-context boundary. - [ ] Non-success, skipped, or missing CI check accepted by maintainer, check name, approval link, and follow-up issue: ## Documentation Writer Review - [x] Documentation writer subagent reviewed the completed changes - Result: `no-docs-needed` - Evidence: `test/install-hermes-portable-active.test.ts` now expects the existing root-level staged Hermes Dockerfile path. The merge commit integrates base commit `0b427dec350d83568dfcf54bd01e86354807ed98` without changing the test-only PR diff. No command, default, configuration, API, policy, or documented behavior changes. - Agent: Codex Desktop <!-- docs-review-head-sha: 54c8652 --> <!-- docs-review-agents-blob-sha: 513518c --> ## DGX Station Hardware Evidence - [ ] Tested on DGX Station - Tested commit: - Station profile/scenario: - Result: - Supporting evidence: ## Verification - [x] PR description includes a `Signed-off-by:` line and every commit appears as `Verified` in GitHub - [x] Normal `pre-commit`, `commit-msg`, and `pre-push` hooks passed, or `npm run validate:pr` passed after refreshing `origin/main` when hooks were skipped or unavailable - [x] Targeted behavior tests pass for the current change set, or tests are marked not applicable above, command/result or justification: `npx vitest run --project installer-integration test/install-hermes-portable-active.test.ts` passed 3 tests. - [ ] Applicable broad gate passed: `npm test` for broad runtime/test-harness changes; `npm run check` for repo-wide validation/coverage changes. Command/result: Not applicable to this one-line test assertion repair. - [x] Quality Gates section completed with required justifications or waivers - [x] No secrets, API keys, or credentials committed - [ ] `npm run docs` builds without warnings (doc changes only) - [ ] Doc pages follow the [style guide](https://github.com/NVIDIA/NemoClaw/blob/main/docs/CONTRIBUTING.md) (doc changes only) - [ ] New doc pages include SPDX header and frontmatter (new pages only) --- Signed-off-by: Rebecca Sliter <571084+rsliter@users.noreply.github.com> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Tests** * Updated the Hermes portable onboarding test to reflect the Dockerfile’s generated location at the build-context root. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Signed-off-by: Rebecca Sliter <571084+rsliter@users.noreply.github.com> Co-authored-by: Rebecca Sliter <571084+rsliter@users.noreply.github.com>
Summary
agents/hermes/DockerfileWhat changed
OpenShell 0.0.106 derives the build context from the parent directory of the path passed to
sandbox create --from. Hermes previously staged the Dockerfile underagents/hermes/, which excluded root-level reviewed inputs such astools/mcp-tool-discovery-runtime/.../BUNDLED_PACKAGES.jsonfrom that inferred context.The source Dockerfile remains reviewed at
agents/hermes/Dockerfile, while the rendered staged copy is now published as<context>/Dockerfile. All allowlisted source assets remain below the inferred context root.Why
Fresh Hermes Portable onboarding reached sandbox image creation but failed when Podman could not find the reviewed MCP bundle referenced by the Dockerfile. The asset was staged correctly; it was outside the narrower context OpenShell inferred from the nested Dockerfile path.
How tested
Risks
The staged context receipt changes its Dockerfile relative path from
agents/hermes/DockerfiletoDockerfile. Context manifest hashing and transaction authority remain fail-closed, so an older staged generation cannot be silently reused.Refs #9211
Signed-off-by: Senthil Ravichandran senthilr@nvidia.com