Repository navigation
test: reproduce the upstream reports claimed fixed in 4.0.0 (final history) - #63
Merged
Merged
Conversation
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
force-pushed
the
test/reproduce-upstream-reports-final
branch
from
October 15, 2026 22:34
4ae18fb to
47391d2
Compare
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.
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.