Skip to content

docs(testing): record the live run of #39 (placement, budget counts, bench) - #121

Merged
aRustyDev merged 2 commits into
mainfrom
chore/39-live-run
Nov 11, 2026
Merged

aRustyDev merged 2 commits into
mainfrom
chore/39-live-run

Conversation

@aRustyDev

Copy link
Copy Markdown
Owner

What

The gated live run of #39, recorded. It ran on 2026-11-11 against a fresh spike stack built from 1991731 (placement on, Hyperdrive caching off), and the stack was torn down afterwards.

  • Placement took effect. The Workers API returned placement: {mode: "targeted", region: "aws:us-east-1"}. A request that entered at EWR answered cf-placement: remote-IAD, which is the observation that tells the two header values apart. All 18 probes from the laptop (whose edge is IAD) answered local-IAD with an -IAD ray, so from that vantage placement moves nothing, as research/0011 §6.8 found.
  • The budget on the deployed Worker. The new budget pass of scripts/stage2-contract.sh passed 1 of 1 and gave the same nine counts as native-pg: 3 for the slice's work items, S17 and S47; 4 for the /api/v1 lists; 3 and 4 for a limited guest.
  • The bench with placement on, three runs each at c=1 and c=8, recorded as research/0004 §10.3a beside §10.3 (create p95 138-174 ms at c=1 and 307-432 ms at c=8; list p95 85-106 ms at c=1). It carries its caveats: one vantage, three runs, a different build from §10.3, and no placement-off arm, so the lower create latency is not attributed to placement.
  • Dated notes in research/0011 §6.10 and §12; the placement sentence in docs/src/architecture/infra.md and G-24 in docs/src/testing/status.md now say what was seen instead of "not run".
  • scripts/stage2-contract.sh: main counted 31 tests where the suite has 51 (counted with --list), a budget pass, and a refusal of a create limit above 1000 (below).

Not green, and why

stage2-contract.sh main ran all 51 tests: 50 passed, the 51st did not finish. create_is_rate_limited_per_user sends up to 2 x limit + 1 creates one at a time, and this Worker's create binding was 1,000,000 (raised for the bench), so it would have sent about two million requests. I stopped it after about 90 minutes with no result. It needs a Worker deployed with the default 30. The pass's vacuity guard could not see this, so the script now refuses a limit above 1000 (or a non-number) for main and ratelimit before it sends anything. Checked both ways: 1,000,000 and abc exit 2; the default and the budget pass with a raised limit get past it.

Not run live: a placement-off arm in the same run, a second vantage, main to the end.

Checks

  • Every number in §10.3a is read from the three-run logs; the 18 probes' placement, rays and connect times (11.7-16.5 ms) were re-read from them before writing.
  • Teardown was verified by listing, not by the script's own exit: no Worker, queue, bucket, Hyperdrive config, role or schema left, and the Worker URL answers 404.
  • No account or resource ids are in the documents.

Refs #39. The issue stays open.

🤖 Generated with Claude Code

aRustyDev and others added 2 commits November 11, 2026 17:11
…e a raised create limit

`stage2-contract.sh main` expected 31 tests where the suite has 51 once the six `oidc_`
tests and the others it skips are left out (counted with `cargo test -- --list`, not by
arithmetic), so a green run would have exited 5. Fixed, and confirmed live: all 51 tests
started against the deployed Worker and 50 passed; the 51st is the rate-limit test below.

A `budget` pass runs `list_endpoints_stay_within_five_db_round_trips` alone, so the
database round-trip budget of #39 can be read against a deployed Postgres Worker.

`create_is_rate_limited_per_user` (in `main`, and as `ratelimit`) sends up to 2 x limit + 1
creates one at a time. Against a Worker whose create binding was raised for the bench
(1,000,000) it ran for 90 minutes without a result and had to be stopped, and the pass's
vacuity guard could not see it. The pass now refuses a THRUST_EXPECT_CREATE_LIMIT above
1000 (or one that is not a number) before it sends anything. Checked both ways: 1,000,000 and
`abc` exit 2, the default 30 and the `budget` pass with a raised limit get past it.

Refs: #39
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…ct, the budget counts, the bench with placement on

Run on 2026-11-11 against a fresh spike stack built from 1991731, torn down afterwards
(checked by listing: no Worker, queue, bucket, Hyperdrive config, role or schema left).

- Placement: the Workers API returned targeted / aws:us-east-1; a request that entered at
  EWR answered `cf-placement: remote-IAD`; 18 of 18 probes from the laptop answered
  `local-IAD`. The sentence in architecture/infra.md that said this was unverified now says
  what was seen.
- Budget: the `budget` pass passed on the deployed Worker with the same nine counts as
  native-pg (3 for the slice, S17 and S47; 4 for the /api/v1 lists; 3 and 4 for a limited
  guest).
- Bench: three runs each at c=1 and c=8, recorded as research/0004 section 10.3a beside
  10.3, with the caveats (one vantage, no placement-off arm, a different build, so the
  lower create latency is not attributed to placement). 0011 gets dated notes at 6.10 and
  12. G-24 says what ran live and what did not.
- Not green: `stage2-contract.sh main` passed 50 of 51; the rate-limit test needs a create
  limit of 30 and this Worker's was 1,000,000. It is recorded as not run to the end.

Issue #39 stays open.

Refs: #39
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant