Skip to content

test: e2e against KTMS and light-tokenmeter main - #23

Merged
coyl merged 2 commits into
release/v1.0.0from
test/e2e
Oct 23, 2026
Merged

coyl merged 2 commits into
release/v1.0.0from
test/e2e

Conversation

@coyl

@coyl coyl commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

Part of ai-process/docs#75 (the other criterion holds: no branch uses llmproxy.v1).

scripts/e2e.sh (Docker, curl, jq): builds KTMS (slim) and light-tokenmeter from main (overridable by KTMS_REF / TOKENMETER_REF), the KTMS mock upstream, Postgres and Redis; light-tokenmeter runs with write/read tokens. Through the console's own API (INSECURE_NO_AUTH, localhost): mint the console key with the bootstrap key, health, model + vendor key + rule, config, client key mint/list/revoke, spend limit, organization + team, playground → KTMS → mock, usage report from light-tokenmeter, and a write-only token reported as "refused".

CI: new e2e job on PRs, pushes and a daily schedule. README Compatibility mentions it. Targets the release branch because the CSRF header value there is ktms-admin. Passed locally.

coyl added 2 commits October 23, 2026 16:25
scripts/e2e.sh builds both services from their main branches, turns
light-tokenmeter's authentication on, and drives the console's API:
health, models, vendor keys, rules, client keys, spend limits,
organizations and teams, a playground call through a mock vendor, its
usage report, and a token without the read scope shown as refused.
It runs on every pull request and daily.
…in run

- Every wait and request is bounded; the job times out after 30 min.
- A refused call prints the console's error body; build, clone and
  setup failures dump logs through fail().
- PRs test the pair in scripts/e2e.refs; a separate daily workflow tests
  KTMS and light-tokenmeter main.
- The revoked key is checked to be disabled; usage is queried from the
  day before the call; organization creation is checked.
@coyl
coyl merged commit c40e7d4 into release/v1.0.0 Oct 23, 2026
3 checks passed
@coyl
coyl deleted the test/e2e branch October 23, 2026 14:35
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