ci: serve forgejo-nsc's own CI (autoscaler scope), fix the KaiOS smoke port race, make cloud-signing plans offline #150

Merged
founder merged 1 commit from claude/w6-small-ci into main 2026-08-19 06:49:12 +00:00
Owner
  • build-go / build-container (forgejo-nsc repo): never picked up — the autoscaler/dispatcher only served key-store/key.store; adds allow_scopes + a second autoscaler instance for key-store/forgejo-nsc (medium 4x8 + arm64 4x8, own /nix volumes). Companion PR in forgejo-nsc moves the workflows to .forgejo/workflows and makes them forge-native (Nix, no ghcr push).
  • build-kaios: EADDRINUSE on the smoke server's fixed port 18165 (TIME_WAIT between back-to-back runs on a warm runner) → port 0 + readiness wait; bootstrap fetches refs/pull/N/head.
  • cloud-tofu: plan cloud-signing aws provider validated Garage keys against STS → offline provider config.

Needs a forge deploy (autoscaler/dispatcher config). Workflow-orchestrated (self-verified; nix eval + tofu validate + YAML guard).

🤖 Generated with Claude Code

- **build-go / build-container** (forgejo-nsc repo): never picked up — the autoscaler/dispatcher only served `key-store/key.store`; adds `allow_scopes` + a second autoscaler instance for `key-store/forgejo-nsc` (medium 4x8 + arm64 4x8, own /nix volumes). Companion PR in forgejo-nsc moves the workflows to `.forgejo/workflows` and makes them forge-native (Nix, no ghcr push). - **build-kaios**: `EADDRINUSE` on the smoke server's fixed port 18165 (TIME_WAIT between back-to-back runs on a warm runner) → port 0 + readiness wait; bootstrap fetches `refs/pull/N/head`. - **cloud-tofu**: `plan cloud-signing` aws provider validated Garage keys against STS → offline provider config. Needs a forge deploy (autoscaler/dispatcher config). Workflow-orchestrated (self-verified; nix eval + tofu validate + YAML guard). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
ci: serve forgejo-nsc's own CI (autoscaler scope), fix the KaiOS smoke port race, make cloud-signing plans offline
Some checks failed
Namespace: Build Images / Refresh macOS runner lane (push) Successful in 4s
Build: KaiOS / Build (KaiOS) (pull_request) Successful in 24s
Build: KaiOS / Build (KaiOS) (push) Successful in 23s
Deploy: Web / Deploy (Web) (push) Has been cancelled
Deploy: API / Deploy (API) (push) Has been cancelled
Release: If Needed / Check (Release Needed) (push) Has been cancelled
Namespace: Build Images / Refresh Linux runner image (push) Successful in 42s
Infra: Cloud OpenTofu / Infra (Cloud OpenTofu) (push) Successful in 56s
Release: Signing Preflight / Release (Signing Preflight) (push) Successful in 59s
Namespace: Build Images / Refresh macOS Nix snapshot application (push) Has been cancelled
977ff52b38
Three red lanes from the 08-17 audit:

- build-go.yml / build-container.yml (forgejo-nsc repo): every run of that
  repo since 06-06 was cancelled with zero task rows. The autoscaler polls
  only key-store/key.store and the dispatcher's allow_scopes only lists it,
  so forgejo-nsc jobs were invisible until the stale-task reaper cancelled
  them at 30 min (and one job used the nonexistent label
  namespace-profile-linux-large-arm64). common.nix: allow_scopes +=
  repository:key-store/forgejo-nsc; second autoscaler instance
  `forgejo-nsc` (webhook /webhook/forgejo-nsc, ignore existing jobs on
  start) with namespace-profile-linux-medium 4x8 and
  namespace-profile-linux-arm64-large linux/arm64:4x8 targets and their own
  key-store-fnsc-<lane>-nix-v1 /nix volumes. The workflows themselves move
  to .forgejo/workflows in the forgejo-nsc repo (separate PR there).
- build-kaios.yml: 3/10 failed with `Address already in use` on port 18165 —
  the smoke's python TCPServer has no SO_REUSEADDR and HTTP/1.0 leaves the
  port in TIME_WAIT for 60 s, so a PR run and the push-to-main run seconds
  apart on the same warm daemon-mode runner collided. Now
  ThreadingHTTPServer on port 0 (port published via file, readiness wait).
  `couldn't find remote ref 138` was noise (bootstrap fetched the bare PR
  number; now prefers refs/pull/N/head).
- cloud-tofu.yml run 18553: `plan cloud-signing` configured the aws provider
  with the Garage keys exported as AWS_* and sts:GetCallerIdentity 403'd
  (account 642524882698 is closed; every manage_aws_* flag is false).
  Provider is now offline (skip_credentials_validation /
  requesting_account_id / metadata_api_check / region_validation, no
  allowed_account_ids); tofu fmt + validate pass.

Verified: nix eval of the dispatcher + autoscaler configFiles; YAML guard,
yq, bash -n; KaiOS smoke rebinds back-to-back locally.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
founder deleted branch claude/w6-small-ci 2026-08-19 06:49:12 +00:00
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
key-store/key.store!150
No description provided.