Repository navigation
fix sid-gr-inference perf script - #433
Conversation
Greptile SummaryThis PR extends
Confidence Score: 4/5The script will fail at startup for any user who does not have the corelib path in place and has not pre-exported CORELIB_GR_DECODE_ATTEN_DIR, and will fail docker run for users who lack the directory at mount time — both behaviours are unlike the guarded SGLANG_REPO_DIR handling already in the script. The new realpath call executes unconditionally at variable-assignment time under set -euo pipefail, so the script exits before doing anything useful when the corelib directory is absent. The volume mount is also appended unconditionally, causing docker run to fail rather than warning gracefully, in contrast to the if -d guard on the SGLANG_REPO_DIR mount just a few lines later. Both issues are real defects on the changed path and have been flagged in prior review threads awaiting resolution. examples/sid-gr-inference/scripts/run_container.sh — specifically the realpath call and the unconditional volume mount block. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[run_container.sh starts] --> B[Resolve CORELIB_GR_DECODE_ATTEN_DIR via realpath]
B -->|path missing and pipefail active| C[Script aborts]
B -->|path exists or env pre-set| D[Build docker_args array]
D --> E[Always append corelib volume mount unconditionally]
E -->|host dir missing| F[docker run fails]
E -->|host dir exists| G[docker run succeeds - GR_DECODE_ATTEN_ROOT set in container]
D --> H[Conditional: if -d SGLANG_REPO_DIR then append sglang mount]
H --> G
%%{init: {'theme': 'base', 'themeVariables': {"darkMode": true, "background": "#0d1117", "primaryColor": "#21262d", "primaryTextColor": "#e6edf3", "primaryBorderColor": "#8b949e", "lineColor": "#8b949e", "textColor": "#e6edf3", "edgeLabelBackground": "#161b22", "actorBkg": "#21262d", "actorBorder": "#8b949e", "actorTextColor": "#e6edf3", "actorLineColor": "#8b949e", "signalColor": "#8b949e", "signalTextColor": "#e6edf3", "noteBkgColor": "#373320", "noteBorderColor": "#d4a72c", "noteTextColor": "#f0e6c0", "labelBoxBkgColor": "#21262d", "labelBoxBorderColor": "#8b949e", "labelTextColor": "#e6edf3", "loopTextColor": "#e6edf3", "activationBkgColor": "#30363d", "activationBorderColor": "#8b949e"}}}%%
flowchart TD
A[run_container.sh starts] --> B[Resolve CORELIB_GR_DECODE_ATTEN_DIR via realpath]
B -->|path missing and pipefail active| C[Script aborts]
B -->|path exists or env pre-set| D[Build docker_args array]
D --> E[Always append corelib volume mount unconditionally]
E -->|host dir missing| F[docker run fails]
E -->|host dir exists| G[docker run succeeds - GR_DECODE_ATTEN_ROOT set in container]
D --> H[Conditional: if -d SGLANG_REPO_DIR then append sglang mount]
H --> G
Reviews (2): Last reviewed commit: "Add environment variable for GR decode a..." | Re-trigger Greptile |
Description
Fix #434
Checklist