Skip to content

test: reproduce the upstream reports claimed fixed in 4.0.0 (final history) - #63

Merged
okomarov merged 3 commits into
mainfrom
test/reproduce-upstream-reports-final
Oct 15, 2026
Merged

okomarov merged 3 commits into
mainfrom
test/reproduce-upstream-reports-final

Conversation

@okomarov

Copy link
Copy Markdown

Final history for merge of the reproductions in #62, without the temporary 3.4.9 job. Opened as a draft only so CI runs on the branch; not for merging through the PR.

The Shipped list stopped at 4.4.0. It now has parameter_types: 'client' and await using from 4.5.0-rc1, and the cached-plan fix from 4.4.0, and the intro links the public Roadmap project that tracks the same items.
The fixed-issues table listed reports whose own scenarios had never been
run here. Each now has a test that does what the reporter did, fails on
the upstream 3.4.9 source with the reported symptom, and passes on the
fork (fork #61; the 3.4.9 runs and their output are in PR #62).

Most scenarios live in tests-startup/reports.js and run against the real
CI PostgreSQL, one child process each (node tests-startup/run.js
--reports), because on 3.4.9 several crash the process and a crash must not
hide the others. They run after tests/index.js, which creates the roles the
row-level security scenario needs. Upstream 861 and 1164 are in
tests/index.js (861 also runs on Deno); 1242 and a reset case for 1186 are
fake-server lease cases.

What each fails with on 3.4.9:
- upstream 1208, 1154, 1199, 1133, 1248: uncaught "Cannot read properties
  of null (reading 'write')" after a reserved or transaction connection is
  terminated, cut by a proxy, or ended by idle_in_transaction_session_timeout
- upstream 1216: a closed transaction handle reads another user's row
  through row-level security
- upstream 1204: notice 25001 and two rows committed by another
  transaction's COMMIT after a late drain
- upstream 823, 1189: UNSAFE_TRANSACTION at the pipeline limit and on a
  busy pool; begin() leaves the backend idle in a transaction
- upstream 1186: a statement queued on a transaction never settles after
  the connection closes
- upstream 1226: the next query rejects with 57P01
- upstream 1223: a FATAL on the type query surfaces as an unhandled
  rejection
- upstream 815, 988: CONNECT_TIMEOUT from a host that accepts and stays
  silent
- upstream 1246: a reset transaction leaves nine backends for ten queries
- upstream 1242: end() never resolves after a parameterised statement is
  cut off
- upstream 861: end() resolves before the queued query
- upstream 1164: malformed array literal for plain arrays without fetched
  types
The row-level security, late-drain, crash, reset and pipeline rows now name
the behaviour their reproductions check. The Bun-only report is dropped
from the crash row with a note that the same crash on Node is covered, so
the count drops to 39, and the array row says plain arrays are sent as well
as decoded. The sentence that every fix has a test reproducing the report
names its two exceptions: the Vercel adapter rests on a production
measurement, and one crash report has no known trigger. The startup
README's stale remark that these reports need separate work is removed.
@okomarov
okomarov force-pushed the test/reproduce-upstream-reports-final branch from 4ae18fb to 47391d2 Compare October 15, 2026 22:34
@okomarov
okomarov merged commit 47391d2 into main Oct 15, 2026
11 checks passed
@okomarov
okomarov deleted the test/reproduce-upstream-reports-final branch October 15, 2026 22:42
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