Repository navigation
chore: replace machine-specific paths and internal hosts with placeholders - #529
Conversation
OsherElhadad
left a comment
There was a problem hiding this comment.
Review: APPROVE at f3e98b9. (Posted as a comment: GitHub does not let the author account approve.)
Completeness. I searched the whole tree at the head, not only the diff. These patterns have no hits: /home/vpcuser, vpcuser, cloud9, na.relay, res.ibm.com, ete-litellm, cg-program, cg-research, m2/, vpc-int, ai-models, u_ plus 22 characters, and private or corporate IP ranges outside test and doc examples. The only remaining hits are expected:
/Users/aldcroft/...inside the quoted third-party SWE-bench issue (apply/testdata/anthropic_tool_use.json)www.w3.org/2000/svgnamespaces9.9.9.9(a public DNS resolver) as a forged hop inproxy/adversarial_test.go*.ibm.comonly as the public Bob API URL and as test or doc placeholders (cg.ibm.com,evil.ibm.com,cg.example.ibm.com,[email protected])
Gateway rename. litellm-gateway appears only in comments (internal/modelinfo, dash, apply). No code matches on the gateway name, so the rename cannot change behaviour.
Script paths. For deploy/harbor/*.py, parents[2] is the checkout and parents[3] is its parent, as intended. The HARBOR_DIR and HEADROOM_DIR fallbacks are siblings of the checkout. In the shell scripts, $(dirname "$0")/../.. is the checkout and ../../.. its parent. py_compile and bash -n pass on all 18 modified scripts.
Tests.
- With
CG_BENCH_DIRunset,TestCompactToolSchemasRealCapturesskips ("no captures on this machine") rather than failing. gofmtandgo vetare clean.go testpasses forapply,components/offload,components/reformat,dash(including CSP) andinternal/modelinfo, so prices.example.yaml still loads.- For
proxy, the stats, CSP, security, tenancy and adversarial tests pass. One full run under host load failed, and a second full run passed. mkdocs build --strictpasses.
Attribution. Both commits are by Osher-Elhadad and signed off, with no AI attribution.
Non-blocking nit: in deploy/eval-containers/sweep.py, DEPLOY = f"{ROOT}/lab-context-engineering/deploy/eval-containers" still assumes the checkout sits beside eval-containers/ under its old directory name. os.path.dirname(os.path.abspath(__file__)) would point at this checkout's own deploy/eval-containers.
Note: this cleans the current tree only. The removed strings are still in the public repository's earlier commits (git log -S'/home/vpcuser' finds 8 commits on main).
…lders Docs, comments, test fixtures and benchmark scripts named one developer machine's home directory, two personal laptop paths, and internal service and mail-relay hostnames. - Docs and comments: /path/to/... placeholders, $CG / $HARBOR in REPRODUCE.md, cg.example.com and mail-relay.internal.example.com hosts. - deploy/harbor and deploy/eval-containers scripts: the checkout is found from the script's own location; Harbor and headroom from HARBOR_DIR / HEADROOM_DIR (default: beside this checkout), eval root from EVAL_ROOT. - reformat's capture-corpus test reads the four bench captures from CG_BENCH_DIR instead of a fixed home directory. - read_lifecycle.json fixture paths are rooted at /work/context-guru. Signed-off-by: Osher-Elhadad <[email protected]>
…s range Signed-off-by: Osher-Elhadad <[email protected]>
Signed-off-by: Osher-Elhadad <[email protected]>
889b886 to
cc31b7a
Compare
What
Docs, code comments, a test fixture and the benchmark scripts contained one developer machine's home-directory paths, two personal laptop paths, and internal service and mail-relay hostnames. This PR replaces them. There is no change to the proxy's behaviour.
REPRODUCE.md,extract_llm.md,skeleton.md,offload-reducers.md), Go comments/path/to/...placeholders;$CG/$HARBORin REPRODUCE.mddeploy/harbor/*.py,run-proxy.sh,run-bench.shHARBOR_DIR/HEADROOM_DIR(default: beside this checkout)deploy/eval-containers/sweep.pyEVAL_ROOT(default: the parent of this checkout)run027.sh,sweep_when.py,stage022.sh~/$HOMEAGENTS.md,deploy/service/REDEPLOY-caller-pays.md,proxy/mail_live_test.go,scripts/analysis/README.mdcg.example.com,mail-relay.internal.example.com,~/cgssh2, "the eval box"components/reformat/toolschema_test.goCG_BENCH_DIR(the test still skips when no capture is present)components/offload/testdata/read_lifecycle.json/work/context-guru/...|
deploy/service/prices.example.yaml(comments only), reference docs, comments | the internal gateway's service name |litellm-gateway||
docs/hosted.md,REDEPLOY-caller-pays.md,dash/csp_test.go| the corporate address range | "the corporate network" ||
proxy/statsgate_test.go| remote-peer IPs in that range |203.0.113.9(TEST-NET-3) |Left as is: public example hostnames (
*.example.com,gw.internalin tests), the public Bob API URL, and a third-party path inside a quoted SWE-bench issue inapply/testdata.Tests
mkdocs build --strictpasses;prices.example.yamlstill loads (internal/modelinfotable tests pass).gofmtandgo vetare clean;go test ./components/offload ./components/reformat ./applypasses.py_compile); every changed shell script passesbash -n.