You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Runner limits: name the refused limit, stop at a refusal, alert on runners that never come online, pin the mutation in tests #60
A refused limit logs only "create service rr-...: railway: Not Authorized", which looks like a refused create, configure or deploy (internal/railway/railway.go:229-231). Wrap it: resource limits (RUNNER_MEMORY_GB, RUNNER_VCPUS): %w, and assert it.
A cap that Railway accepts but the runner cannot start under is silent: each cycle reaps "container ended" and creates again (simulated for an hour with one queued job: 31 services, 0 failed cycles, 0 alerts). A broken image already does this. Describe the symptom in Troubleshooting, and alert when services keep ending before their runner comes online.
A refused value is retried at full rate with no backoff (three pools with four or more queued jobs make 49 calls per cycle). Stop creating for the rest of the cycle after a refused limit; rollout step 4 says to unset at the first refusal.
A wrong argument name or input type in the limits mutation leaves every test green: assert the query text (internal/railway/limits_test.go:50-63).
Swapping or dropping the two limits in cmd/controller/main.go:34-35 passes every test: a small tested railwayConfig(cfg) removes both waivers.
Docs: docs/deploy.md:119 add cat /sys/fs/cgroup/memory.max inside the job (the dashboard shows the setting, not enforcement) and suggest a separate controller with its own label and prefix for a live install; say that GB is decimal and that squeezing page cache can slow I/O-heavy builds; docs/deploy.md:185 and :199, README.md:144 and docs/deploy.md:121 wording; the comment at limits_test.go:9-10; an HTTP error case in the refusal test.
Done when items 1 to 5 have a test that fails without them, and the docs say what item 6 lists. Items 2 and 3 matter only once a limit is in use.
Activity