Repository navigation
ci(grpc): provision protobuf tools and stabilize daemon checks - #1632
Conversation
Signed-off-by: Will Killian <[email protected]>
Signed-off-by: Will Killian <[email protected]>
Signed-off-by: Will Killian <[email protected]>
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the
Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. WalkthroughThe pull request pins Protoc and Buf versions for CI, installs them in workflows, and updates Buf-related path filters. It changes remote HTTP provider routing to use a cached plaintext client and updates related tests. The Python test command now exports a temporary system configuration directory. ChangesProtoc and Buf CI setup
Remote HTTP provider transport
Python test environment
Estimated code review effort: 3 (Moderate) | ~25 minutes Change: Other Merge Risk:
|
Signed-off-by: Will Killian <[email protected]>
Signed-off-by: Will Killian <[email protected]>
Signed-off-by: Will Killian <[email protected]>
Signed-off-by: Will Killian <[email protected]>
Signed-off-by: Will Killian <[email protected]>
#### Overview Unread model responses can exhaust the shared daemon-to-worker HTTP/2 response window, stalling hook verdicts while `/healthz` remains healthy. Give hooks and readiness probes a separate persistent pool. The regression starves hooks with eight unread responses before the fix and completes hooks with 128 after it. - [x] I confirm this contribution is my own work, or I have the right to submit it under this project's license. - [x] I searched existing issues and open pull requests, and this does not duplicate existing work. #### Details - Preserve worker credentials, pinned TLS trust, streaming backpressure, and cancellation cleanup. - Cache model and hook pools together under the existing root-cache bound; reuse both pools across requests. - This adds a persistent connection when both traffic classes are used; it does not shorten guardrail timeouts. Validation: 30 focused transport/TLS tests, staged pre-commit hooks, and docs checks passed. Full `NEXTEST_TEST_THREADS=4 just test-rust`: 6,724 passed, 4 failed, 4 skipped. The same four HTTP-model provider timeouts reproduce on untouched release `6b7afd500` with workspace features; main stabilizes those unrelated paths in #1632. Fern skipped authenticated redirect checking. #### Where should the reviewer start? Start with `WorkerClientPool` in `crates/cli/src/daemon/common/worker_tls.rs`, `forward_to_worker` in `crates/cli/src/daemon/broker/server.rs`, and `crates/cli/tests/coverage/daemon/hook_pool_isolation_tests.rs`. The regression uses production worker staging. #### Related Issues: (use one of the action keywords Closes / Fixes / Resolves / Relates to) - Relates to [AEP-278](https://linear.app/nvidia/issue/AEP-278). The synthetic reproduction does not establish the original incident's trigger. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **Reliability** * Hook requests and worker readiness checks use connection pools separate from model traffic, helping them remain responsive when model responses are delayed or stalled. * Separate pools retain the worker authentication and TLS trust settings used for model traffic, and are reused rather than opened for each hook request. * Hook traffic uses its own connection pool for both cleartext and TLS connections, with TLS connections isolated by trusted certificate. * **Documentation** * Updated the daemon architecture guide to explain connection separation and its effects on traffic handling. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Signed-off-by: Bryan Bednarski <[email protected]>
Overview
Provision protobuf build prerequisites and make daemon provider checks deterministic before adding validation dependencies. This is the bottom layer of the worker protocol stack and supersedes #1627.
Details
CONTRIBUTING.mdand provision them for source Quick Starts.Validation: provider/deadline/transport regressions passed with retries disabled, including five fresh-process iterations each of both cancellation checks and the plaintext routing guard. Scoped hooks, actionlint, clippy, cargo check, and dependency audits passed; the advisory audit used a fresh isolated RustSec cache. The combined adoption head also passed 6,643 Rust tests without retries and the canonical Python suite. GitHub CI is pending.
Where should the reviewer start?
.github/actions/load-ci-tool-versions/action.yml, then.github/workflows/ci_rust.ymland.github/workflows/ci_python.ymlfor container handling. The second commit coverscrates/cli/src/daemon/common/transport.rsand its local-provider test fixtures.Related Issues: (use one of the action keywords Closes / Fixes / Resolves / Relates to)
Summary by CodeRabbit