GeezerVison is showing github.com — fix(nixos): gate PM aggregator proxy on backend readiness by developing-today-fleet[bot] · Pull Request #15972 · developing-today/code
Conversation
Refs #10383
Summary
- Gate the socket-activated PM aggregator proxy on a successful TCP connect to its private backend port.
Type=simple previously let systemd start the proxy before Bun had bound the backend, so a cold first request could be reset.
- Add a bounded readiness helper and a regression test for delayed backend availability, timeout, and strict argument validation; register it in the PM stack test workflow.
Evidence
- Before: warm
/program returned 200 in 0.215s. After restarting pm-aggregator.service, the first request through 127.0.0.1:4870 failed with connection reset (HTTP 000, 0 bytes, 0.0018s); systemd logs show the proxy tried at 00:15:02 and the backend first listened at 00:15:04. The next request returned 200 in 10.015s.
- Failing-first: Fleet run 45951976554 failed because the readiness gate and helper were absent.
- After implementation: focused readiness test passed on Fleet run 45953308285.
bash -n, nix-instantiate --parse nixos/services/pm-stack/default.nix, and git diff --check also passed.
- The broader
check-suite-registry.sh invocation reported 38 uncovered suites under pkgs/id and pkgs/mcpx; none were this readiness test, whose registry entry parsed and matched its workflow. Those unrelated entries are outside this change.
- Evidence level: test ran on a Fleet GitHub-hosted Linux runner; Nix expression parse ran locally. The live service has not been rebuilt or restarted with this branch.
Merge Danger
The gate is enabled only with aggregatorSocketActivation. It waits at most 30 seconds; if the backend does not bind, service startup fails closed and the proxy remains unavailable. This slice prevents the startup reset; #10383 stays open until the deployed cold-restart /program probe returns a successful response.
{
"direct_parent": null,
"links": [],
"lineage": {
"design": null,
"roadmap_item": null,
"priority": null
},
"pm_meta": 1,
"provenance": {
"queue_id": null,
"scheduled_start": null,
"picked_up_at": null,
"work_started_at": null,
"created_at": "2026-11-27T06:47:01Z",
"session_id": null,
"lane": null,
"host": "amd",
"worktree": null,
"model": null,
"lane_start_issues": [],
"workspace_ref": null,
"auth_subject": "oc-code-04",
"stamped_by": "fleet 0.1.0 (native)"
}
}
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Important
Review skipped
Bot user detected.
To trigger a single review, invoke the @coderabbitai review command.
Run configuration
-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: defaults
- Review profile: CHILL
- Plan: Advanced
- Run ID:
d89ac1ea-6490-47ef-a6a5-bdf3770bac67
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.
Use the checkbox below for a quick retry:
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Share
-
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
|
Lane 0052-F (bravo SUSTAIN verify-then-merge): MERGED on exact-head evidence. Fleet run 45953308285 (dezren39/fleet) completed success; Linux job 140353971897 success; job log shows Target HEAD: 408a519, command bash nixos/services/pm-stack/pm-aggregator-backend-ready.test.sh, all checks passed (4 PASS lines). Fresh pre-merge read: OPEN/non-draft/CLEAN/MERGEABLE at same head. Merge verified by second read: MERGED 2026-11-27T07:05:44Z, merge commit b41b980. Key: 0052-F
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|