|
1 | 1 | # Lessons |
2 | 2 |
|
3 | | -<!-- distilled-through: 2026-11-18 --> |
| 3 | +<!-- distilled-through: 2026-11-20 --> |
4 | 4 |
|
5 | 5 | ## Public API and bindings |
6 | 6 | - L-0001 (4×, #250 #184 #372): Preserve public Rust compatibility: non-exhaustive structs need external builders, public enums need fallback arms, and breaking 1.x type changes require a major release. |
|
72 | 72 | - L-0061 (1×, #466): Coalesce requests without holding locks across network calls: key attempts, share same-key errors/results, recheck after different-key waits, and detach work from individual waiter cancellation. |
73 | 73 | - L-0062 (1×, #431): A non-consuming peek buffers errors as well as data for the next read. Test one-shot-error-then-EOF; optional enrichment must not silently turn server success into execution failure. |
74 | 74 | - L-0063 (1×, #451): Cached terminal ExecuteResponse payloads must be complete and take-once. Clear on error, close, Drop, owner release, timeout and fresh status polls; document how terminal observations retain inline results. |
| 75 | +- L-0097 (1×, #478): When sync code triggers lock-guarded async work, take try_lock_owned before spawning and move the guard in so bursts spawn one task; ensure timer/close flushes skipped triggers. Test spawn count via num_alive_tasks on an unstarted current_thread runtime. |
| 76 | +- L-0098 (1×, #477): Never log while holding a lock a GIL-holding caller may wait on (pyo3_log can take the GIL). On GIL-held paths, try-lock and return Pending on contention instead of blocking. |
| 77 | +- L-0099 (1×, #435): Owned children that call back into their owner must hold a Weak, upgraded only at use (invalid_state if gone). Test that dropping the owner makes Weak::upgrade return None for both objects. |
75 | 78 |
|
76 | 79 | ## Arrow results and metadata |
77 | 80 | - L-0064 (2×, #301 #373): Empty catalog/pattern semantics vary by metadata operation; test short-circuit ordering and avoid turning an empty request into catalog=None (all catalogs). GetFunctions accepts meaningful empty catalogs. |
|
109 | 112 | - L-0092 (2×, #333 #429): Keep required checks always present. Compute path changes from BASE...HEAD with full history and include standalone workspaces plus their root path dependencies. |
110 | 113 | - L-0093 (1×, #429): repository_dispatch 204 only acknowledges delivery. Sender-owned checks need cancellation/failure completion and stale-check expiry; list check runs with filter: all. |
111 | 114 | - L-0094 (2×, #411 #412 #473): Regenerate dependency pins on the normal toolchain with a healthy registry. Inspect every lockfile for unrelated downgrades/checksum drift and validate locked builds. |
| 115 | +- L-0100 (1×, #477): When Drop does best-effort cleanup, assert the explicit path's side effect (request sent, and how many times) before closing or dropping handles, so Drop cannot mask a missing call. |
112 | 116 |
|
113 | 117 | ## Review follow-up [phase=review,followup] |
114 | 118 | - L-0095 (1×, #257): Before claiming a review finding is already fixed or a symbol exists, reread HEAD and cite its current lines; remembered or partial source reads waste review rounds. |
0 commit comments