Skip to content

fix(gateway): render config with POSIX sed instead of envsubst (self-contained standalones) - #258

Merged
elronbandel merged 1 commit into
mainfrom
elron/fix-gettext-base-standalone
Jul 6, 2026
Merged

fix(gateway): render config with POSIX sed instead of envsubst (self-contained standalones)#258
elronbandel merged 1 commit into
mainfrom
elron/fix-gettext-base-standalone

Conversation

@elronbandel

@elronbandel elronbandel commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

The standalone gateway rendered its config with envsubst (gettext-base), which it got from the benchmark base it layers on. Benchmarks on their own base (aider-polyglot, cybench, …) and 3 on external per-task bases (terminal-bench/skills-bench/swe-lancer) never had it, so their standalone gateway couldn't start — the ~June-28 regression.

envsubst is a gateway dependency, not a benchmark's. Render with POSIX sed in the gateway start scripts (bifrost + litellm; portkey uses printf) — runs in any standalone userland, no gettext, no per-benchmark package.

Verified byte-identical to envsubst across 165 realistic value combos; sh -n + shellcheck clean. Refs #257 (follow-up: retire the now-unused gettext-base from the gateways + 6 benchmark-base-* images).

@elronbandel
elronbandel force-pushed the elron/fix-gettext-base-standalone branch 4 times, most recently from 58ce973 to 310efec Compare July 6, 2026 07:42
envsubst is a gateway dependency, but the standalone got it from the benchmark
base — so benchmarks on their own base (aider-polyglot, ...) and 3 on external
bases (terminal-bench/skills-bench/swe-lancer) had broken standalones (~June-28
regression). Render the config with POSIX sed in the bifrost + litellm start
scripts (portkey uses printf) — any userland, no gettext, no per-benchmark package.

Refs #257.

Signed-off-by: Elron Bandel <elron.bandel@ibm.com>
@elronbandel
elronbandel force-pushed the elron/fix-gettext-base-standalone branch from 310efec to 584afaa Compare July 6, 2026 07:45
@elronbandel
elronbandel merged commit af68b4c into main Jul 6, 2026
5 checks passed
elronbandel added a commit that referenced this pull request Jul 6, 2026
The start scripts render config with sed (#258), so envsubst is unused.

- Remove the gettext/gettext-base package from all three gateways (bifrost,
  portkey, litellm) and the six benchmark bases that carried it only to feed
  the baked gateway in standalones (#236).
- Remove every remaining envsubst mention now that nothing renders with it:
  the bifrost runtime-deps comment, the models/litellm render comments, the
  _chart note, and the tool name in gateways/RULES.md rule 4 (+ changelog).
- Fix models/litellm's stale UPSTREAM_MODEL doc to the real var, EVAL_MODEL.

Signed-off-by: Elron Bandel <elron.bandel@ibm.com>
elronbandel added a commit that referenced this pull request Jul 6, 2026
…262)

The start scripts render config with sed (#258), so envsubst is unused.

- Remove the gettext/gettext-base package from all three gateways (bifrost,
  portkey, litellm) and the six benchmark bases that carried it only to feed
  the baked gateway in standalones (#236).
- Remove every remaining envsubst mention now that nothing renders with it:
  the bifrost runtime-deps comment, the models/litellm render comments, the
  _chart note, and the tool name in gateways/RULES.md rule 4 (+ changelog).
- Fix models/litellm's stale UPSTREAM_MODEL doc to the real var, EVAL_MODEL.

Signed-off-by: Elron Bandel <elron.bandel@ibm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant