Title: mcpx: CodeRabbit minor follow-ups from PR #2840 — stream the CI log formatter, separate stderr cap for hook failure text · Issue #2880 · developing-today/code · GitHub
Open Graph Title: mcpx: CodeRabbit minor follow-ups from PR #2840 — stream the CI log formatter, separate stderr cap for hook failure text · Issue #2880 · developing-today/code
X Title: mcpx: CodeRabbit minor follow-ups from PR #2840 — stream the CI log formatter, separate stderr cap for hook failure text · Issue #2880 · developing-today/code
Description: CodeRabbit minor findings on PR #2840 — deferred follow-ups PR #2840 (fix for #2573) was reviewed by CodeRabbit at head 831ac5dc (2026-10-30T23:17Z), which raised 3 Minor findings. One was already fixed by the next head; two are valid-bu...
Open Graph Description: CodeRabbit minor findings on PR #2840 — deferred follow-ups PR #2840 (fix for #2573) was reviewed by CodeRabbit at head 831ac5dc (2026-10-30T23:17Z), which raised 3 Minor findings. One was already ...
X Description: CodeRabbit minor findings on PR #2840 — deferred follow-ups PR #2840 (fix for #2573) was reviewed by CodeRabbit at head 831ac5dc (2026-10-30T23:17Z), which raised 3 Minor findings. One was already ...
Opengraph URL: https://github.com/developing-today/code/issues/2880
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"mcpx: CodeRabbit minor follow-ups from PR #2840 — stream the CI log formatter, separate stderr cap for hook failure text","articleBody":"## CodeRabbit minor findings on PR #2840 — deferred follow-ups\n\nPR #2840 (fix for #2573) was reviewed by CodeRabbit at head `831ac5dc` (2026-10-30T23:17Z), which raised 3 Minor findings. One was already fixed by the next head; two are valid-but-minor and are tracked here instead of blocking the merge (Codex reviewed the final head `8db2e07b` clean; the PR's own acceptance in #2573 covers the 4 Codex findings from #2541, all fixed).\n\n### 1. Workflow log formatter retains every parsed event in memory — `.github/workflows/mcpx.yml:187`\nThe readable-output formatter appends every parsed `go test -json` event to `lines` before printing in two passes. Retained memory grows with the full stream. Suggested fix (from the review thread): re-read the file per pass with a generator instead of retaining events. Thread: https://github.com/developing-today/code/pull/2840#discussion_r4429279438\n\n### 2. Hook failure text can be polluted by stdout — `pkgs/mcpx/internal/hooks/runner.go`\n`execute()` points both `cmd.Stdout` and `cmd.Stderr` at one shared `cappedWriter`, and the failure text is `firstLine(out.String())`. A hook that fills the cap with stdout (no newline) before writing its stderr diagnostic records truncated stdout as the \"error\". Suggested fix: give stderr its own capped writer, build the failure text from stderr's first line, and fall back to stdout's first line when stderr is empty. Add a regression test (hook writes >cap stdout, then a one-line stderr diagnostic, exits non-zero; `Stats().LastError` names the diagnostic). Thread: https://github.com/developing-today/code/pull/2840#discussion_r4429279452\n\n### Already fixed (no action)\nThe third finding (wildcard hook's `Dropped` counting `hook.*` events, thread https://github.com/developing-today/code/pull/2840#discussion_r4429279447) was fixed in head `8db2e07b` by `Hook.SubFilter()` (`pkgs/mcpx/internal/hooks/hooks.go`), which expands a wildcard to the hookable kinds so `hook.*` events are excluded before the bus buffers them.\n\n### Acceptance\n- [ ] Formatter streams per pass (no full event retention) with identical log output\n- [ ] stderr has its own capped writer; failure text prefers stderr, falls back to stdout; regression test above passes\n- [ ] `go test ./internal/hooks/...` green in CI\n\n## Acceptance criteria\n- The mcpx workflow log formatter streams parsed `go test -json` events without retaining the full event list in memory (or the retention is bounded and documented).\n- Each deferred CodeRabbit minor finding from PR #2840 listed in this issue is either fixed or explicitly dispositioned as wontfix with a reason.\n- mcpx CI stays green on the change; no behavior change to the formatted output content.\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-10-31T00:11:12Z","url":"https://github.com/developing-today/code/issues/2880"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:8f9c1ec6-010a-1a29-25ef-0488739b7368 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CB7A:14227A:9163F1:C19DD5:6B06351F |
| html-safe-nonce | 921273958a5f72855f817b7b892f7a580f4a6d735bfd0955b4958257043757a4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQjdBOjE0MjI3QTo5MTYzRjE6QzE5REQ1OjZCMDYzNTFGIiwidmlzaXRvcl9pZCI6IjMzNDU4NTY2MjAwNDI1MzIxMjciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | df0be68e0668120d39a1f4dac61a18a4547b0c7dbebb5826d481e4137393a0b4 |
| hovercard-subject-tag | issue:6128972867 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/2880/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ba351728256a1c93dedb119a4c6aaec7323981ccbd5105d647ee0d21e2f79425/developing-today/code/issues/2880 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ba351728256a1c93dedb119a4c6aaec7323981ccbd5105d647ee0d21e2f79425/developing-today/code/issues/2880 |
| og:image:alt | CodeRabbit minor findings on PR #2840 — deferred follow-ups PR #2840 (fix for #2573) was reviewed by CodeRabbit at head 831ac5dc (2026-10-30T23:17Z), which raised 3 Minor findings. One was already ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dezren39 |
| hostname | github.com |
| expected-hostname | github.com |
| None | c3584c853cd39700ecff6e2cf8364295ffdb5313e571046c41cd2479270f7df0 |
| turbo-cache-control | no-preview |
| go-import | github.com/developing-today/code git https://github.com/developing-today/code.git |
| octolytics-dimension-user_id | 26439447 |
| octolytics-dimension-user_login | developing-today |
| octolytics-dimension-repository_id | 627308783 |
| octolytics-dimension-repository_nwo | developing-today/code |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 627308783 |
| octolytics-dimension-repository_network_root_nwo | developing-today/code |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9eb3bb1597d09170a5f282cd38ae376dee1a5ec1 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width