Skip to content

fix(results): the E11 edge matrix, and #896's export on a Postgres-less server (#1233) - #1244

Merged
athvin merged 3 commits into
mainfrom
issue/1233-results-edge-matrix
Nov 25, 2026
Merged

athvin merged 3 commits into
mainfrom
issue/1233-results-edge-matrix

Conversation

@athvin

@athvin athvin commented Nov 25, 2026 •

Copy link
Copy Markdown
Owner

Closes #1233
Closes #896

🚧 Claimed by an agent session — 2026-11-25T20:11:30Z, session Claude Code:d1e3b2dc-3174-4091-9c30-c08fc4820306 on Mac.
The claim is this open draft PR: closing it releases the claim.

Post-merge is part of this pull request. The ledger below records whether
the follow-up work actually happened. /land-pr closes it.

What

E11's closing audit (#521), plus the #896 fix.

#896. A Postgres-less er-server answers the segment export's tags prequery 501, the BFF mapped every 5xx to 502, and the whole export failed. Of the ticket's two candidate fixes, this takes the BFF side, narrowed: forwardUnlessNotImplemented returns null for an upstream 501 only, and only for this optional column. The rejected alternative was making the server's reads answer [], which would turn a lost DSN into a silent "no tags" for every caller. The server's 501 stays loud everywhere the value is required. BffFailure now carries the upstream status, so the status is read directly rather than sniffed from the detail text.

The matrix. One row per case the epic asked for, naming the test and the mutation that was observed to fail it:

Case Test Mutation observed failing
empty output (no run has finished) export_write.rs case 4: a zero-row artifact the first version hit a hard Catalog Error (fixed in #1239)
large pagination export_write.rs (page size 2; golden, duplicates, lineage all cross pages); pg_golden_read.rs keyset paging lineage keyset resumed from the first key → rows duplicated (#1242)
truncation can't pass as complete export_write.rs case 5: ceiling fails by name, no file and no .partial left — (asserts both artifacts absent)
failed export pg_exports.rs: status names error_class, download 409 (added here) error_class: None → caught
concurrent newer run export_write.rs case 1 (export at R after R+1); run_snapshot_read.rs (reads at R after R+1) finish stamping latest - 3 → caught once the test pinned the exact snapshot (#1236)
expired snapshot run_snapshot_read.rs → Expired; pin_requested_tests expiry branch disabled → caught (#1236)
expired export pg_exports.rs → 410 expiry check disabled → caught (#1239)
cross-dataset access pg_exports.rs: /datasets/second/exports/{id} → 404 dataset scope removed → caught (#1239)
cross-org access pg_exports.rs: another org's key and route → 404 (same guard path as above)
role pg_exports.rs: a viewer's POST → 403 guard lowered to Viewer → caught (#1239)
results documented every_public_result_read_documents_its_payload, every_arrow_* untyped read added; wrong row component (#1235)
events link results / recovery job_event_data_tests; run_snapshot_read.rs (the event equals the poll) export download linked before success → caught (#1243)
#896 forward-not-implemented.test.ts: a 501 is null, 503/500/404/403 still throw, and plain forward still throws on 501 >= 500 instead of === 501 → caught

Why

#1233 closes E11's last acceptance bullet; #896 was named in it.

Proof

make check: 1,190 passed, 0 failed. er-server + er-cli --tests against Postgres with DEDUPE_E2E_DUCKLAKE=1: 498 passed. make frontend: 964 passed, 0 failed.

Risk & rollback

The BFF change is one opt-in helper and one call site. forward and every other route are unchanged. Rollback: git revert <merge-sha>.

Post-merge ledger

Closed by: agent · session Claude Code:d1e3b2dc-3174-4091-9c30-c08fc4820306 on Mac · 2026-11-26T00:45:36Z

Specific to this change

Context — plan, discoveries, measurements, files

Plan

Discoveries

Measurements

Files

@github-actions

github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

The marketing preview was removed because this PR is closed or merged.

bmoore813 and others added 3 commits November 25, 2026 12:28
…empty column (#896)

The segment export prequeries tags for an optional column. er-server
answers 501 without Postgres, the BFF mapped every upstream 5xx to 502,
and the whole export failed on a deploy shape where the column could never
be non-empty. forwardUnlessNotImplemented returns null for an upstream 501
only; the server's 501 stays loud for every caller that needs the value.
Chose this over making the reads answer [] server-side, which would make a
lost DSN read as 'no tags' everywhere.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@athvin
athvin marked this pull request as ready for review November 25, 2026 20:29
@athvin
athvin force-pushed the issue/1233-results-edge-matrix branch from 8b7f23b to 5c19902 Compare November 25, 2026 20:29
@athvin
athvin merged commit 92c6e3c into main Nov 25, 2026
41 checks passed
@athvin
athvin temporarily deployed to marketing-preview November 25, 2026 20:37 — with GitHub Actions Inactive

This branch was previously deployed

1 inactive deployment
marketing-preview — 5c19902b Deployed Nov 25, 2026 by athvin via remove closed PR previews #59
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.

E11.6 — Results edge matrix, and #896 Export 502s on a Postgres-less er-server (the 501 shape meets the tags prequery)

2 participants