KT-2245 e2e specs that call the backend directly fall back to the developer's own Kronn on :3140

Open Beginner friendly
#855 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
78/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
typescript, vite
Domain
testing

Research direction

Start with frontend/e2e/fixtures/backend-url.ts and trace how the five specs importing E2E_BACKEND_URL choose their direct-call target. Compare that with the UI origin and Vite proxy configuration. Done means direct calls use the UI's origin or stop immediately when the required variable is unset, and the default never points to :3140.

Written by the indexing model from the issue text.

Description

Tracked as KT-2245.

frontend/e2e/fixtures/backend-url.ts falls back to http://localhost:3140 when neither KRONN_VITE_BACKEND_URL nor KRONN_BACKEND_URL is set. Vite's proxy target is resolved separately, so a local run whose Vite points at a sandbox backend can still send a spec's direct calls (5 spec files import E2E_BACKEND_URL) to the developer's own Kronn. Seen on 05/12: one workflow trigger POST from workflow-linear-3-step.spec.ts, on an id that did not exist there.

Fix: direct calls use the UI's origin, or the variable is required and the run stops at once when it is unset; the default never names :3140.

Dominant language
Rust
Stars
18
Forks
2
Avg merge
17h 12m
Merged PRs (30d)
55

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from DocRoms/Kronn

All issues in DocRoms/Kronn

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.