Repository navigation
fix: remove committed tf-provider build output and the fake gateway's reply delay - #13382
Merged
Merged
Conversation
… reply delay #13381 committed crates/vendor/tf-provider/target/, 574 MB of Cargo output, because .gitignore only ignored the root target directory. Ignore target directories anywhere and the vendored crate's test lockfile. The fake OpenShell gateway also served without TCP_NODELAY, so each reply to the provider waited about 40 ms on Linux.
With TCP_NODELAY in tf-provider and the fake OpenShell gateway, the provider contract binaries take 14.4 s, 27.5 s and 56.3 s summed on Linux, and no test exceeds 6.2 s.
Contributor
cv
added a commit
that referenced
this pull request
Oct 17, 2026
…ct budget (#13383) ## Why #13382 lowered `openshell-provider::contract` to 80 s summed, from its first CI run (56.3 s on linux_amd64). Its second run, 39015808792, summed 74.6 s on linux_amd64: 93% of the budget. The same tests summed 48.6 and 48.7 s on linux_arm64, so the spread comes from the linux_amd64 runners, not from the tests. ## Change Raise `openshell-provider::contract` to 105 s summed, about 1.4× the slowest run, the margin the other provider budgets keep. Update the binaries' measurement comments to cover both runs: `fabric-provider::contract` at most 17.4 s, `nemoclaw-provider::contract` at most 32.5 s, and `openshell-provider::contract` slowest test 3.7 s. The other budgets and every per-test limit stay as #13382 set them. ## Validation `cargo test -p nemoclaw-build --test integration ci::` passes; it checks the budgets against `.config/nextest.toml`.
cv
added a commit
that referenced
this pull request
Oct 19, 2026
…13445) ## Failure `kubernetes::connection::forward` relays local connections to a Kubernetes gateway through a port-forward, but it doesn't set `TCP_NODELAY` on the local connections it accepts. When a reply from the cluster arrives in pieces, such as a gRPC response's frames, each piece after the first waits for the client's delayed acknowledgment of the one before. That's about 40 ms on Linux, the same delay #13381 and #13382 removed from provider and fake-gateway replies. In an Ubuntu 24.04 arm64 VM, a fake gateway that answers each one-byte request with two writes 1 ms apart took 44 ms per round trip through `forward`, and 2.7 ms with `TCP_NODELAY`. I have not measured a real port-forward to a cluster. ## Change Set `TCP_NODELAY` on each local connection `forward` accepts. A connection that refuses the option is still relayed. ## Validation - New test `forwarded_replies_arriving_in_pieces_reach_the_client_promptly` in `crates/nemoclaw-sdk/tests/kubernetes_connection.rs` requires a median round trip under 20 ms. In the Linux VM it failed before the change (41.9 ms) and passed three times after it. macOS doesn't show the delay, so the test passes there either way. - `cargo test -p nemoclaw-sdk --test integration kubernetes`: 136 passed on Linux (VM) and macOS. - `cargo fmt --all --check` and Clippy for `nemoclaw-sdk`. ## Checked and left unchanged These were also missing `TCP_NODELAY`; the same VM showed no delay, so this PR doesn't touch them: - **Ollama proxy** (`crates/nemoclaw-ollama-proxy`): streamed chunks arrived 0.1 ms after the daemon wrote them, with and without the option, at 10, 2 and 1 ms between chunks. - **Shared HTTP test fixture** (`crates/test-support/http.rs`): it closes each connection right after replying, which sends the held body. The 135 SDK Kubernetes tests took 4.4–4.9 s before and 4.9–5.5 s after. Not measured: kube's client connects with hyper-util's `HttpConnector::new()`, which leaves `TCP_NODELAY` off on our connections to the Kubernetes API server.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Failure
#13381 committed
crates/vendor/tf-provider/target/: 1,908 files, about 574 MB of Cargo build output..gitignoreignored only the root/target/, andNOTICE.mdtells contributors to runcargo test --manifest-path crates/vendor/tf-provider/Cargo.toml, which creates that directory and an untrackedCargo.lockbeside it. Every fetch ofv1since then downloads the build output.#13381 also left one 40 ms reply delay in the tests. The fake OpenShell gateway in
crates/nemoclaw-test-fixtures/src/openshell.rsserves withoutTCP_NODELAY, so each reply to the provider waits on Nagle's algorithm and the provider's delayed acknowledgment, the delay #13381 removed fromtf-provider.Decision
crates/vendor/tf-provider/target/.target/at any depth, and/crates/vendor/tf-provider/Cargo.lock, whichNOTICE.mdsays the copy omits.TCP_NODELAYon each connection the fake gateway accepts, astf-providernow does..config/test-budgets.yamland the matching per-test timeouts in.config/nextest.tomlto the measured times plus margin.This commit does not shrink the repository's history: the build output stays in
1844e321f4. Removing it would require rewritingv1.Validation
openshell-providercontract tests in an Ubuntu 24.04 arm64 VM (8 CPUs) with the linux_arm64 CI bundle. That VM reproduced CI's per-test times before either fix.tf-providerfix only (measured with the same patch)Also ran
cargo fmt --all --check, Clippy fornemoclaw-test-fixtures, andcargo test --manifest-path crates/vendor/tf-provider/Cargo.toml, after whichgit statusshowed no untracked files.Linux CI, this PR's runs 39015106152 and 39015808792 against
v1after #13381 (39005227268) and before it (#13378, attempt 3):openshell-provider::contract, amd64 / arm64nemoclaw-provider::contract, amd64 / arm64fabric-provider::contract, amd64 / arm64New budgets, summed / per test:
openshell-provider::contract80 / 6 s (was 190 / 12),nemoclaw-provider::contract45 / 8 s (was 110 / 10),fabric-provider::contract25 / 10 s (was 40 / 22). They rest on the first run per platform. The second run summed 74.6 s foropenshell-provider::contracton linux_amd64, close to its 80 s budget; a follow-up widens it.cargo test -p nemoclaw-build --test integration ci::checks that the budgets and nextest timeouts agree.