-
Notifications
You must be signed in to change notification settings - Fork 655
fix: update post-create.sh for current build system and fix unbound variables #3304
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: update post-create.sh for current build system and fix unbound variables #3304
Conversation
…ariables - Replace deprecated mistralrs feature with dynamo-llm/block-manager - Fix unbound variable errors by using parameter expansion syntax - Reorder set +x command to proper location Signed-off-by: Keiven Chang <[email protected]>
WalkthroughSwitches the build target from mistralrs to dynamo-llm/block-manager, hardens env/token checks using parameter expansion, refines SSH agent detection, and improves PYTHONPATH derivation and persistence to .bashrc with idempotent guards. Adds quieter debug handling and safer append logic within .devcontainer/post-create.sh. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant Devcontainer as Devcontainer
participant Script as post-create.sh
participant Cargo as cargo
participant Shell as Bashrc (~/.bashrc)
participant Env as Env Vars
Devcontainer->>Script: Run post-create hook
rect rgba(200,230,255,0.25)
note over Script: Build step (updated target)
Script->>Cargo: build dynamo-llm/block-manager (--locked, dev)
Cargo-->>Script: Build result
end
rect rgba(220,255,220,0.25)
note over Script: PYTHONPATH derivation
Script->>Env: Read ${PYTHONPATH:-}
alt PYTHONPATH preset
Script->>Shell: Append export if not already present
else Not set
Script->>Script: Derive from README.md or fallback list
Script->>Shell: Persist derived export (idempotent)
end
end
rect rgba(255,245,200,0.35)
note over Script: Credential checks (hardened)
Script->>Env: Test ${HF_TOKEN:-}, ${GITHUB_TOKEN:-}
Script->>Env: Test ${SSH_AUTH_SOCK:-} for agent forwarding
end
Script-->>Devcontainer: Completed setup (quiet when not in debug)
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
Pre-merge checks❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
🔇 Additional comments (6)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🧪 Early access (Sonnet 4.5): enabledWe are currently testing the Sonnet 4.5 model, which is expected to improve code review quality. However, this model may lead to increased noise levels in the review comments. Please disable the early access features if the noise level causes any inconvenience. Note:
Comment |
…ariables (#3304) Signed-off-by: Keiven Chang <[email protected]>
…ariables (#3304) Signed-off-by: Keiven Chang <[email protected]>
Overview:
This PR fixes the devcontainer post-create script to work with the current build system and resolves bash strict mode errors. The script was failing due to deprecated build features and unbound variable references.
Details:
• Replace deprecated
mistralrscargo feature with currentdynamo-llm/block-managerfeature• Fix unbound variable errors by using
${VARIABLE:-}parameter expansion syntax for bash strict mode compatibility• Reorder
set +xcommand placement for proper script flow• Ensure devcontainer setup completes successfully without script failures
Where should the reviewer start?
Look closely at
.devcontainer/post-create.sh- specifically the cargo build command change on line 66 and the unbound variable fixes throughout the script.Related Issues: (use one of the action keywords Closes / Fixes / Resolves / Relates to)
/coderabbit profile chill
Summary by CodeRabbit