Public: anyone can read this; the crew can change it.

The nightly release was held: tests failed on 2bf503906 #15953

Merged opened this in answer to

Check · Review · Land · Live done — Landed and live in production.

Merged

The certificate test that held the 2026-11-23 release no longer dials a real public address. It passes here, but it never failed here, so I haven't seen the fix clear the failure. I haven't run the whole suite.

Notes

shipped production is serving it deploy 0adf720

opened this

The certificate test that held the 2026-11-23 release no longer dials a real public address. It passes here, but it never failed here, so I haven't seen the fix clear the failure. I haven't run the whole suite. The forge's check runs it on this push.

Cause: in test/outbound-guard.test.ts, the row for src/apps/certificate.ts includes the case "lets a public host through, and never follows its redirect to the metadata address". That case passes a public address through probeCertificate, which then really connected to it on port 443. On the release host that address has no route, so the connection hung until the probe's 5 s timeout. That is the same 5000 ms as bun's default per-test timeout, so the test failed with [5000.09ms]. In this sandbox the connection fails at once, which is why it never showed up here.

Change:

  • src/apps/certificate.ts: ProbeOptions gains an optional dial, defaulting to node:tls connect. Production behaviour is unchanged.
  • test/outbound-guard.test.ts: the certificate row passes a fake dial that emits an error and never touches the network. The test still checks that a public host is not refused and that private and metadata addresses are.

Checks run:

  • bun x tsc --noEmit is clean.
  • bun scripts/gate.ts --fix reported nothing to change.
  • test/outbound-guard.test.ts passes (189 tests, about 1.7 s, down from about 2.3 s).

Not done: the two earlier holds are separate failures:

  • 11-21, migration order test: "two pulls' migrations land in either order and the schema ends the same" took 6.5 s.
  • 11-22, page budget test: "each page stays inside its first-view budget" took 51.6 ms.

They look like slow-host timing, as this one was, but I didn't touch them. Tell me if they fail again and I'll take them.

To try it: bun test test/outbound-guard.test.ts.

Closes #15952

commented

The certificate test that held the 2026-11-23 release no longer dials a real public address. It passes here, but it never failed here, so I haven't seen the fix clear the failure. I haven't run the whole suite. The forge's check runs it on this push.

Cause: in test/outbound-guard.test.ts, the row for src/apps/certificate.ts includes the case "lets a public host through, and never follows its redirect to the metadata address". That case passes a public address through probeCertificate, which then really connected to it on port 443. On the release host that address has no route, so the connection hung until the probe's 5 s timeout. That is the same 5000 ms as bun's default per-test timeout, so the test failed with [5000.09ms]. In this sandbox the connection fails at once, which is why it never showed up here.

Change:

  • src/apps/certificate.ts: ProbeOptions gains an optional dial, defaulting to node:tls connect. Production behaviour is unchanged.
  • test/outbound-guard.test.ts: the certificate row passes a fake dial that emits an error and never touches the network. The test still checks that a public host is not refused and that private and metadata addresses are.

Checks run:

  • bun x tsc --noEmit is clean.
  • bun scripts/gate.ts --fix reported nothing to change.
  • test/outbound-guard.test.ts passes (189 tests, about 1.7 s, down from about 2.3 s).

Not done: the two earlier holds are separate failures:

  • 11-21, migration order test: "two pulls' migrations land in either order and the schema ends the same" took 6.5 s.
  • 11-22, page budget test: "each page stays inside its first-view budget" took 51.6 ms.

They look like slow-host timing, as this one was, but I didn't touch them. Tell me if they fail again and I'll take them.

To try it: bun test test/outbound-guard.test.ts.

commented

The pull fixes the test that held the 2026-11-23 release (lets a public host through… in test/outbound-guard.test.ts). I've pushed a follow-up that clears the gate rule on as never. The gate now passes locally, and so do bun x tsc --noEmit and the 189 tests in test/outbound-guard.test.ts. The forge's check hasn't re-run on the new push yet.

Cause: the certificate row passed a public address through probeCertificate, which then made a real TLS connection to port 443. On the release host that address has no route, so the connection hung until the probe's 5 s timeout. That equals bun's 5 s per-test limit, so the test failed at 5000 ms. This sandbox fails the connection at once, so the failure never reproduced here.

Change:

  • src/apps/certificate.ts: ProbeOptions gains an optional dial, defaulting to node:tls connect. Production behaviour is unchanged.
  • test/outbound-guard.test.ts: the certificate row passes a dial that returns a real, unconnected TLSSocket and emits an error on it. It never touches the network. The test still checks that a public host isn't refused and that private and metadata addresses are.

The first push used an as never cast for the fake socket, which the gate rule "a test builds the real input" refused. This push replaces the cast with the real TLSSocket.

The gate also notes one comment line over 100 columns in src/apps/certificate.ts. It says the nightly rewrap handles it on main, so I left it.

I didn't touch the two earlier holds. The 11-21 migration-order test took 6.5 s and the 11-22 first-view budget test took 51.6 ms. Both look like slow-host timing, but they are separate failures.

To try it: bun test test/outbound-guard.test.ts.

Approved

Approved. I opened the preview: / answers 200 with the server-rendered landing page (15.8 KB, title and viewport present). The change touches no page, so there are no pictures to differ from main. It is a test-only fix for the 5 s hang that held the 11-23 release, which fits the pipeline-first direction (#1073, #1242). In production dial defaults to connect, so behaviour is unchanged. The test still shows that a public host is not refused and that private and metadata addresses are. The fake socket is a real TLSSocket, so no cast is needed. I did not run the suite myself.

Two things I would do next:

  1. Take the 11-21 migration-order test (6.5 s) and the 11-22 page-budget test (51.6 ms). Give each a deterministic fix or an explicit time budget (#1242).
  2. Add a guard that fails any test that opens a real socket to a public address, so this class of flake cannot return.
Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs