Skip to content

fix(github): quieter, cheaper GitHub profiling probes - #324

Merged
cvega merged 6 commits into
mainfrom
cvega/gh-migrate-dashboard-0rtz
Dec 4, 2026
Merged

cvega merged 6 commits into
mainfrom
cvega/gh-migrate-dashboard-0rtz

Conversation

@cvega

@cvega cvega commented Dec 3, 2026 •

Copy link
Copy Markdown
Owner

GitHub namespace discovery, Every organization enumeration, One organization profiling, and Setup target suggestions and admission exclude actions and github on every GitHub edition, regardless of case. One organization returns the requested refusal. Every organization silently omits both from its counts.

GHES profiling caches completed unavailable results in memory for one hour per source API origin and signal. Concurrent cold requests proceed independently. Later runs reuse the cached failure until expiry. The cache covers disabled Advanced Security, removed tag protection, missing organization features, and optional HTTP 5xx responses. An optional HTTP 5xx ends the request after one attempt. Each run reports its own skip counts, and authentication, rate-limit, and transport failures retain safe diagnostics and retry behavior.

The earlier review findings concerned waiting behind other probes. This revision removes that coordination and its tests. Ordinary per-request deadlines, cancellation, and draining continue through the existing profile client.

Verification

All 68 focused tests passed, covering system organization exclusion and refusal, cache reuse across runs, origin isolation, exact one-hour expiry, Dependabot HTTP 500, safe logs, skip summaries, request cancellation, and draining. An additional offline check dispatched two cold requests before either completed and confirmed that a subsequent run skipped the cached HTTP 503.

After bun install --frozen-lockfile, E2E_PORT=43767 bun run verify passed, including 69 standard and 4 configured-target browser tests. Coverage reached 96.66% of functions and 96.50% of lines.

Relative to main, production changes total 148 additions and 8 deletions, net +140. Tests add 247 lines and delete 8. Route-matrix impact is unchanged.

Builder: Codex, gpt-6.2-astra. Claude Code, Opus 5.5 at high effort, confirmed the coalescing removal at 3130c54 and verified that the remaining changes are limited to the necessary test adaptations.

Refs: gh-migrate-dashboard-0rtz

@github-actions github-actions Bot added area: github-source Changes files in the github-source area sensitive Touches a sensitive path listed in AGENTS.md size: L 250–999 lines added and deleted type: fix Conventional Commit type fix labels Dec 3, 2026
@cvega cvega added the built-by: codex Built by codex label Dec 4, 2026
@github-actions github-actions Bot added the area: profile Changes files in the profile area label Dec 4, 2026
@cvega

cvega commented Dec 4, 2026

Copy link
Copy Markdown
Owner Author

Claude Opus 5.5 reviewed commit 59f96e9 and found one blocking issue.

  • P1 at src/lib/server/core/github-profile-probes.ts:85. Healthy requests for the same GHES signal continue to serialize after the first success. The reviewer observed one in-flight request where the collector allows eight. On a slow appliance, the wait can consume the 30-second request deadline and leave counts unavailable. Codex is fixing this and adding a concurrency regression.
  • The requested one-hour cache has two data-quality tradeoffs. A transient optional HTTP 5xx can hide that signal for the rest of the hour. On appliances with mixed Advanced Security enablement, a disabled repository can suppress code-scanning collection for repositories where it is enabled. Both behaviors follow the specified appliance-wide policy.

@cvega cvega added the reviewed-by: claude Reviewed by claude label Dec 4, 2026
@cvega

cvega commented Dec 4, 2026

Copy link
Copy Markdown
Owner Author

Coordinator verification at 66dccfe confirmed all six probe concurrency tests pass. The three batched regressions cover the repository-local code-scanning 404 and collaborators/hooks permission 403 reported in Claude’s re-review. Each releases the waiting repositories, and a concurrent 503 still suppresses subsequent probes. This resolves the reported P1. The final diff adds 184 production lines and deletes 8.

@cvega
cvega marked this pull request as ready for review December 4, 2026 07:48
@cvega
cvega merged commit b7166d8 into main Dec 4, 2026
11 checks passed
@cvega
cvega deleted the cvega/gh-migrate-dashboard-0rtz branch December 4, 2026 07:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: github-source Changes files in the github-source area area: profile Changes files in the profile area built-by: codex Built by codex reviewed-by: claude Reviewed by claude sensitive Touches a sensitive path listed in AGENTS.md size: L 250–999 lines added and deleted type: fix Conventional Commit type fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant