Files
NianJiu 33138d3532 fix(ci,smoke): prevent lite_smoke cleanup deadlock/race and close sibling CI gates
Why:
1. In tests/lite_smoke/lite_e2e_test.go, exited was a 1-buffered channel sent
   once without closing: if waitForHealth consumed <-exited on an early server
   crash, t.Cleanup blocked forever on <-exited; serverLogs also used an
   unsynchronized bytes.Buffer read concurrently on startup/shutdown timeouts
   under -race, and subprocess/client HTTP calls could inherit developer
   ENV_FILE, REDIS_ADDR, or proxy settings.
2. frontend/src/utils/catalogToolDisplay.test.ts asserts UI locale coverage
   against docs/swagger.json, but frontend.yml did not trigger on swagger.json
   changes.
3. pre-push and cli.yml enforced gofmt on client/ and root Go files, but
   skipped gofmt checks on changed cli/**/*.go files, and cli-e2e.yml omitted
   client/go.sum from its Go cache key.

What:
- Replace single-read exited channel and raw bytes.Buffer in lite_e2e_test.go
  with a closed done channel + mutex-guarded syncBuffer, and isolate subprocess
  ENV_FILE/REDIS_ADDR/NO_PROXY and loopback HTTP transport from local proxies.
- Add docs/swagger.json to frontend.yml push and pull_request path triggers.
- Check gofmt on all changed Go files in pre-push and changed cli Go files in
  cli.yml, and add client/go.sum to cli-e2e.yml cache-dependency-path.
2026-11-18 16:46:32 +08:00
..