bazelrc: hold CI remote configs to one connection (TIN-4972) - #287
Merged
Merged
Conversation
The GF REAPI cell admits 2 active + 64 pending ByteStream transfers and caps streams per HTTP/2 connection at active+pending. bazel-remote-gates overflowed the pending queue (RESOURCE_EXHAUSTED: blob transfer pending queue exhausted: pending=64/64). One connection keeps the client inside that envelope; extra streams wait at transport admission. Mirrors GloriousFlywheel's .bazelrc (TIN-3701). The cache-backed contract test now asserts the line.
`npm audit --omit=dev` fails on dompurify 3.4.13-3.4.15 for GHSA-p98j-92pf-mc4p (low: IN_PLACE node-removing afterSanitize hook leaves detached subtree event handlers armed). That is the build-and-test red at "Static production dependency audit" on PR #287 (TIN-4972, R99). The root pin moves ^3.4.13 -> ^3.4.16 and package-lock.json resolves 3.4.16; mermaid and @zenuml/core dedupe onto it. pnpm-lock.yaml is regenerated with the pnpm version rules_js pins in MODULE.bazel (9.15.9, --lockfile-only) so the Bazel graph carries the same version. The regeneration touches only the dompurify entries plus one registry `deprecated:` metadata line on eslint@9.39.4 (no resolution change). MODULE.bazel.lock is unaffected. Local: security:audit:static 0 vulnerabilities (root and both pulse workspaces); lint clean; svelte-check 0 errors; npm run build passes; test:bazel-graph-hygiene passes.
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.
Ruling R99 (per Jess, 2026-10-01); ticket TIN-4972.
Failure signature
bazel-remote-gatesoverflows the GF REAPI cell's blob transfer queue:Queue math
The cell admits a fixed number of active ByteStream transfers (2 on the current installation, 8 in the earlier shape) plus a 64-deep pending FIFO, and refuses anything past that. It also caps streams per HTTP/2 connection at active + pending: 66 for 2/64, 72 for 8/64. Bazel's default opens several connections, so the client's in-flight reads and writes can add up to more than the queue holds. With
--remote_max_connections=1the client gets one connection, so it can have at most 66 (and never more than 72) streams in flight. Any extra stream waits at transport admission instead of overflowing the application queue.This only bounds this client. Independent processes or connections can still fill the queue together, which is why the GF-side companion is xoxd-ai/GloriousFlywheel#2073.
Change
.bazelrc:build:ci-remote-base --remote_max_connections=1, with a comment giving the reason and the ticket.ci-remote-baseis the shared base ofci-cached(the moderemote:check/remote:test/remote:e2eand their:publicvariants select throughscripts/bazel-cache-backed.sh) and ofexecutor-backed. That matches GloriousFlywheel, whereexecutor-backedinheritsci-cached.scripts/test-bazel-cache-backed.sh(//:bazel_cache_backed_contract): asserts the line, alongside the existingci-cachedbounds..bazelrcline 78,build:ci-cached --remote_max_connections=1, added in 3ae8aa0d (TIN-3701, "bound single-connection blob admission").Verification
npm run test:bazel-graph-hygiene: passed.bash scripts/test-bazel-cache-backed.sh(fake-bazel contract, no remote): passed.bazel-remote-gateshas to completeremote:check:public,remote:test:publicandremote:e2e:publicwith nopending=64/64refusal.Dependency audit
build-and-testfailed at "Static production dependency audit" (npm run security:audit:static) on a new advisory unrelated to the.bazelrcchange: dompurify 3.4.13 to 3.4.15, GHSA-p98j-92pf-mc4p (low; IN_PLACE node-removing afterSanitize hook leaves detached subtree event handlers armed). First patched version: 3.4.16.Second commit, 9966a44, follows the 7fe5b81 precedent:
package.json: direct dependencydompurify^3.4.13->^3.4.16.package-lock.jsonresolves 3.4.16; the transitive mermaid and@zenuml/coreuses dedupe onto it.pnpm-lock.yaml: regenerated with pnpm 9.15.9 (therules_jspin inMODULE.bazel),--lockfile-only. It changes only the dompurify entries, plus one registrydeprecated:metadata line on eslint@9.39.4 that doesn't change resolution.MODULE.bazel.lock: unchanged, because it doesn't record the npm extension.Local verification (2026-10-01, after
npm ci):npm run security:audit:static: 0 vulnerabilities for the root and both pulse workspaces.npm run lint: clean.npm run build: passed. Build side effects understatic/were reverted.svelte-kit sync && svelte-check --tsconfig ./tsconfig.json: 0 errors, plus 1 warning that was already there.npm run checkfails closed locally by design becauseBAZEL_REMOTE_CACHEis unset, sobazel-remote-gatesis that check's authority.npm run test:bazel-graph-hygiene: passed.