Skip to content

fix: remove committed tf-provider build output and the fake gateway's reply delay - #13382

Merged
cv merged 2 commits into
v1from
codex/drop-vendored-target
Oct 17, 2026
Merged

cv merged 2 commits into
v1from
codex/drop-vendored-target

Conversation

@cv

@cv cv commented Oct 17, 2026 •

Copy link
Copy Markdown
Collaborator

Failure

#13381 committed crates/vendor/tf-provider/target/: 1,908 files, about 574 MB of Cargo build output. .gitignore ignored only the root /target/, and NOTICE.md tells contributors to run cargo test --manifest-path crates/vendor/tf-provider/Cargo.toml, which creates that directory and an untracked Cargo.lock beside it. Every fetch of v1 since 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.rs serves without TCP_NODELAY, so each reply to the provider waits on Nagle's algorithm and the provider's delayed acknowledgment, the delay #13381 removed from tf-provider.

Decision

  • Delete crates/vendor/tf-provider/target/.
  • Ignore target/ at any depth, and /crates/vendor/tf-provider/Cargo.lock, which NOTICE.md says the copy omits.
  • Set TCP_NODELAY on each connection the fake gateway accepts, as tf-provider now does.
  • Lower the provider contract budgets in .config/test-budgets.yaml and the matching per-test timeouts in .config/nextest.toml to the measured times plus margin.

This commit does not shrink the repository's history: the build output stays in 1844e321f4. Removing it would require rewriting v1.

Validation

openshell-provider contract 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.

Build Serial 4 threads
Before #13381 171 s 43 s
tf-provider fix only (measured with the same patch) 80 s 19 s
This branch 21.2 s 7.0 s

Also ran cargo fmt --all --check, Clippy for nemoclaw-test-fixtures, and cargo test --manifest-path crates/vendor/tf-provider/Cargo.toml, after which git status showed no untracked files.

Linux CI, this PR's runs 39015106152 and 39015808792 against v1 after #13381 (39005227268) and before it (#13378, attempt 3):

Binary, summed Before #13381 After #13381 This PR
openshell-provider::contract, amd64 / arm64 182.4 / 175.9 s 106.7 / 88.0 s 56.3–74.6 / 48.6–48.7 s
nemoclaw-provider::contract, amd64 / arm64 55.9 / 50.3 s 31.8 / 22.4 s 27.5–32.5 / 23.2 s
fabric-provider::contract, amd64 / arm64 34.3 / 36.7 s 21.6 / 22.1 s 13.5–15.1 / 14.4–17.4 s

New budgets, summed / per test: openshell-provider::contract 80 / 6 s (was 190 / 12), nemoclaw-provider::contract 45 / 8 s (was 110 / 10), fabric-provider::contract 25 / 10 s (was 40 / 22). They rest on the first run per platform. The second run summed 74.6 s for openshell-provider::contract on 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.

cv added 2 commits October 17, 2026 00:48
… 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.
@github-actions

Copy link
Copy Markdown
Contributor

@cv
cv merged commit d240dcf into v1 Oct 17, 2026
@cv
cv deleted the codex/drop-vendored-target branch October 17, 2026 08:16
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.
@wscurran wscurran added area: ci CI workflows, checks, release automation, or GitHub Actions area: e2e End-to-end tests, nightly failures, or validation infrastructure chore Build, CI, dependency, or tooling maintenance v1 NemoClaw v1 branch labels Oct 23, 2026
@cv cv added this to the Roadmap: GTC DC 2026 milestone Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: ci CI workflows, checks, release automation, or GitHub Actions area: e2e End-to-end tests, nightly failures, or validation infrastructure chore Build, CI, dependency, or tooling maintenance v1 NemoClaw v1 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants