Skip to content

chore(agentgateway): bump to v1.7.0, slim compose config - #485

Merged
dimetron merged 1 commit into
mainfrom
chore/agentgateway-v1.7-compose
Nov 22, 2026
Merged

dimetron merged 1 commit into
mainfrom
chore/agentgateway-v1.7-compose

Conversation

@dimetron

Copy link
Copy Markdown
Owner

What

hack/agentgateway moves from v1.5.0 to v1.7.0 (current release, 2026-10-27), and the compose file gets a size pass.

File Change
docker-compose.yaml image → v1.7.0; 123 → 94 lines, no change to services, env, mounts or ports
docker-compose.ollama-cloud.yaml image → v1.7.0
.env.example same variables, regrouped under Providers / Overrides / Database
README.md, AGENTS.md, update.sh --validate-only invocations → v1.7.0

config.yaml is untouched. It validates against v1.7.0 as-is.

Why the version moves in four files

README.md:523, AGENTS.md:224 and update.sh:132,271 each run --validate-only against a hard-coded tag. Leaving them at v1.5.0 means a change is validated by a binary older than the one that will serve it — a config can then pass validation here and fail on docker compose up. All four files now name the same tag. The v1.5.0 references that stay are the two prose ones (README.md:461 "A configured catalog replaces the built-in one on v1.5.0", AGENTS.md:116 the Gemini 401 that v1.5.0 still shows) — they are claims about that version specifically, not pins.

There is no compose var for the tag, so these are four literal strings and they will drift again. update.sh is the natural place to own the bump; I did not add that here.

Why the compose file is smaller

Nothing was removed. Two multi-paragraph comment blocks — the single-file bind mount inode trap, and why AGENTGATEWAY_API_KEY uses :? — shrank to their operative rule plus a pointer to README.md "The mount is the directory, not the files" and "A configured catalog replaces the built-in one on v1.5.0", which already carry the full failure signatures. That is what this directory's own AGENTS.md asks for, and it keeps the reasoning in one place instead of two that can disagree.

Behaviour that is deliberate and preserved:

  • .:/etc/agentgateway directory mount, still writable (storage.mode=file lets the UI rewrite config.yaml and base-costs.json).
  • /dev/null:/etc/agentgateway/.env:ro shadowing, so the directory mount does not expose real keys.
  • 127.0.0.1:4000:4000 loopback-only publish.
  • AGENTGATEWAY_API_KEY: ${AGENTGATEWAY_API_KEY:?…} with no default.

Verification

$ AGENTGATEWAY_API_KEY=dummy docker compose config   # exits 0
image: ghcr.io/agentgateway/agentgateway:v1.7.0
host_ip: 127.0.0.1 / published: "4000"
image: postgres:17

$ AGENTGATEWAY_API_KEY unset → docker compose config
error while interpolating services.agentgateway.environment.AGENTGATEWAY_API_KEY:
required variable AGENTGATEWAY_API_KEY is missing a value

$ docker run --rm -v "$PWD:/etc/agentgateway:ro" -w /etc/agentgateway \
    ghcr.io/agentgateway/agentgateway:v1.7.0 --validate-only -f config.yaml
Configuration is valid!

$ bash -n update.sh
OK

.env.example variable set diffed against origin/main: identical, so no key was silently dropped in the regroup. The .idea/ and empty backup/ directories in my local copy were untracked and gitignored — deleted locally, nothing to do in this PR (backup-db.sh:23 does mkdir -p backup).

No Go code touched, so make test was not re-run; the pre-commit hook (gofmt, golangci-lint) passed with 0 issues.

Not in this PR

My running deployment ($HOME/agentgateway) is ahead of this directory with three features — single OLLAMA_API_KEY, a PRISMML_* host provider, and a jaeger service with AGENTGATEWAY_OTLP_ENDPOINT. Each needs a matching provider or route in config.yaml, which this PR deliberately leaves alone, so copying the compose file would break startup. They belong in their own change, compose and config together.

v1.7.0 is the current agentgateway release (2026-10-27). config.yaml
validates against it unchanged, so the pin moves up and the three
--validate-only call sites move with it, keeping a validation run on the
same binary the service runs.

docker-compose.yaml drops from 123 to 94 lines with no change to
services, environment, mounts or ports: the two multi-paragraph blocks
(single-file mount inode trap, why :? has no default) keep their
operative rule and point at the README/AGENTS.md sections that already
carry the full reasoning.

.env.example regroups the same variables under Providers / Overrides /
Database, so the required AGENTGATEWAY_API_KEY is not at the bottom of a
flat list of optional ones.

Signed-off-by: pi <dimetron@me.com>
@codecov

codecov Bot commented Nov 21, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.31%. Comparing base (04ebf5a) to head (65a1d86).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #485      +/-   ##
==========================================
- Coverage   91.31%   91.31%   -0.01%     
==========================================
  Files         403      403              
  Lines       52380    52380              
==========================================
- Hits        47831    47829       -2     
- Misses       4543     4545       +2     
  Partials        6        6              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@dimetron
dimetron merged commit 891ccc2 into main Nov 22, 2026
15 checks passed
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