Repository navigation
fix: handle unbound BASH_SOURCE when install.sh is piped via curl - #656
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Pins Fabric to its [`v0.7.0`](https://github.com/NVIDIA/NeMo-Fabric/tree/v0.7.0) release tag, commit `76bde16c`, instead of a commit on its `release/0.7` branch. Agent images, the SDK and the providers build the released Fabric without patches, and the agent limits are checked against it. ## Problem v1 pinned Fabric `c6d1093d`, a commit on NVIDIA/NeMo-Fabric's `release/0.7` branch, because no Fabric release had the fixes NemoClaw needs. Fabric has now tagged `v0.7.0`. Resolves #13318. ## Change - **Pin:** Fabric `76bde16c40747062001bd6ea5f5d13cadab3d706`, the commit the `v0.7.0` tag names, in `versions.json` (with the archive's SHA-256), the Cargo manifests and `Cargo.lock`. The pin stays a commit hash because `crates/nemoclaw-sdk/build.rs` reads the revision from the archive URL and checks it against the catalog. The documentation links move to the same revision, and every linked path exists there. - **What the tag brings:** `c6d1093d`, the current pin, is its parent. The one new commit, [NVIDIA/NeMo-Fabric#690](NVIDIA/NeMo-Fabric#690), changes only Fabric's `README.md`. The tag has [NVIDIA/NeMo-Fabric#434](NVIDIA/NeMo-Fabric#434), [NVIDIA/NeMo-Fabric#633](NVIDIA/NeMo-Fabric#633), [NVIDIA/NeMo-Fabric#652](NVIDIA/NeMo-Fabric#652), [NVIDIA/NeMo-Fabric#667](NVIDIA/NeMo-Fabric#667), [NVIDIA/NeMo-Fabric#668](NVIDIA/NeMo-Fabric#668), [NVIDIA/NeMo-Fabric#685](NVIDIA/NeMo-Fabric#685) and [NVIDIA/NeMo-Fabric#689](NVIDIA/NeMo-Fabric#689) as ancestors, and [NVIDIA/NeMo-Fabric#676](NVIDIA/NeMo-Fabric#676) as `b80becfc`, the same patch as its merge commit `56a4207b`. It keeps the fixes for [#14529](#14529), [#14537](#14537), [#14538](#14538) and [#14630](#14630), which earlier pins brought. - **Catalog:** `image/fabric/catalog.json` is regenerated; only its revision and checksum change. The fixture image's digest, which covers the catalog, moves in two cases, and so do the inference names derived from it in `openshift-external-two-providers.tftest.hcl`. - **Limits:** the agent rows are checked against the new pin. Fabric's OpenClaw and Hermes adapters load bundled plugins and plugin folders from a path you supply ([NVIDIA/NeMo-Fabric#680](NVIDIA/NeMo-Fabric#680), [NVIDIA/NeMo-Fabric#681](NVIDIA/NeMo-Fabric#681), which an earlier pin brought), so the two plugin rows now say what remains: - NemoClaw doesn't download or install plugins. - Because NemoClaw keeps each agent's state, a Hermes agent that installs a plugin itself fails its next start with `hermes_plugin_agent_installed_unsupported`. Fabric's tests don't show an OpenClaw agent's own plugin staying usable after a restart ([NVIDIA/NeMo-Fabric#657](NVIDIA/NeMo-Fabric#657)). - The rows for NVIDIA/NeMo-Fabric#565, #656 and `acknowledge_recovery` still hold and are re-dated. - **Release notes:** a line under "Changes Since v0.1.0-rc11". ## Beyond CI - On linux/arm64, `cargo ci live-docker` and `cargo ci live-kind` passed with the pin commit. - `image/fabric/catalog.py`, run with `/opt/fabric/bin/python` in the OpenClaw image that `cargo ci live-docker` built, wrote a catalog byte-identical to the committed one. - I computed the archive's SHA-256 from codeload twice, with the same result. --------- Signed-off-by: Carlos Villela <[email protected]>
Summary
curl -fsSL https://www.nvidia.com/nemoclaw.sh | bashfails withBASH_SOURCE[0]: unbound variablebecauseBASH_SOURCEis empty when piped andset -utreats it as unbound.Fix:
${BASH_SOURCE[0]:-$0}falls back to$0whenBASH_SOURCEis unset.Regression from #470.
Closes #655
Summary by CodeRabbit