deploy/k8s, control plane, relay: small robustness follow-ups from the slice 1 reviews
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- bash, kubernetes, redis, typescript
- Domain
- backend, devops, infrastructure, testing-qa
Research direction
Start with the named sections in deploy/k8s/setup.sh, packages/control-plane/src/main.ts, handlers.ts, and packages/sandbox-relay/src/relay.ts. Read the existing control-plane tests and probe or relay test entry points before changing behavior. Done means each listed robustness follow-up is addressed and the reconnect backoff, readiness timeout, shutdown, teardown, and probe behavior are covered by tests.
Written by the indexing model from the issue text.
Description
Robustness follow-ups from the task reviews of #427 (P6 on Kubernetes slice 1). None blocked the merge; each is a small, known edge.
deploy/k8s/setup.sh
-
wait_records: add--request-timeout=10sto thekubectl exec, use a wall-clock deadline (SECONDS), and stop hiding exec errors while polling. -
image_entry: forrepo:tag@sha256:…, strip:tagfromnewNamein the digest branch. - The settings-hash JSON6902
addreplaces the whole pod-templateannotationsmap. That is fine today, because base has none, but it would silently drop future annotations. Use the…/annotations/moca.dev~1settings-hashpath once a map exists. - The self-signed-TLS subshell's abort relies on
ensure_tlsnever being called from a conditional context. Make that explicit, or restructure it.
Control plane (packages/control-plane/src/main.ts, handlers.ts)
- Export the Redis reconnect strategy and unit-test the backoff, so it cannot regress to the default or to a strategy that gives up.
- Bound
index.getin/readyzwith a timeout, so a Redis that is connected but wedged fails fast instead of at the probe timeout. - Call
close()on SIGTERM.
Relay (packages/sandbox-relay/src/relay.ts)
-
teardownis registered for both'end'and'error'. If both fire, with a same-id reattach in between, the second call can cancel the new session's retry and delete it. This is pre-existing. Guard by session identity, or run it once. - Probes check only the attach listener (9443). Consider also checking the exec listener (9444).
- Dominant language
- TypeScript
- Stars
- 5
- Forks
- 12
- Avg merge
- 9h 48m
- Merged PRs (30d)
- 172
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from rossoctl/moca
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
rossoctl/moca#421 · 1 comment ·
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 1/5 1-3 hours Newbie friendliness 86/100
ranxianglei/billion-context#5893 ·
Maintainers usually reply within 1 day
-
stringify escapes leading digits in pseudo-class arguments (:nth-child(1) becomes :nth-child(\31 ))Open
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
Maintainers usually reply within 1 day
-
enhancement security severity:low
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
Battle-Cattle/BCUK-Bot-4#959 ·
Maintainers usually reply within 1 day
-
[Bug]: Claude account rows no longer show the email (since #8055), so "Account 1, 2, 3" cannot be told apartPossibly taken A pull request linked to this issue is open or already merged. Openaccount-pool bug gui
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
lidge-jun/opencodex#8286 · 2 comments · 1 reaction ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
Maintainers usually reply within 1 day