Skip to content

Runner limits: name the refused limit, stop at a refusal, alert on runners that never come online, pin the mutation in tests #60

Backlog

Description

@parsilver

From the review of #59.

  1. 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.
  2. 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.
  3. 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.
  4. 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).
  5. Swapping or dropping the two limits in cmd/controller/main.go:34-35 passes every test: a small tested railwayConfig(cfg) removes both waivers.
  6. 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

  1. added
    enhancement
    on Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions