Selected changesmerged Oct 10, 2026
Implement support for Limit and reproduce #94002Go · 289 + / 9 −
Introduces 4 new declarations in staging/src/k8s.io/apiserver/pkg/storage/testing/correctness/correctness.go.
Adds new systems design rather than adjusting what was there. Tests changed with it, with code of their own.
staging/src/k8s.io/apiserver/pkg/storage/testing/correctness/correctness.go ↗ · 6 files
@@ -1620,6 +1620,188 @@ func readTestCases() []testStep { {Object: nil, Err: nil}, }, },+ {+ Name: "List pods with Limit=1 when one pod exists",+ Request: Request{+ Op: OpList,+ Key: "/pods/",+ List: ListRequest{Options: storage.ListOptions{+ ResourceVersion: "",+ Recursive: true,+ Predicate: storage.SelectionPredicate{+ Label: labels.Everything(),+ Field: fields.Everything(),+ Limit: 1,+ },+ }},+ },+ CorrectResponse: Response{+ Object: newTestPodList("19", withLabel(pod4, "17", "version", "v2")),+ },+ InvalidResponses: []Response{+ {Object: newTestPodListWithContinue("19", new(int64(0)), withLabel(pod4, "17", "version", "v2"))},+ {Object: newTestPodList("19")},+ {Object: nil, Err: nil},+ },+ },+ {+ Name: "List pods with Exact ResourceVersion=15 and Limit=1",+ Request: Request{+ Op: OpList,+ Key: "/pods/",+ List: ListRequest{Options: storage.ListOptions{
Rollup of 4 pull requestsRust · 131 + / 65 −
Introduces 5 new declarations in compiler/rustc_codegen_llvm/src/llvm/mod.rs.
Adds new language design rather than adjusting what was there. Tests changed with it, with code of their own.
compiler/rustc_codegen_llvm/src/llvm/mod.rs ↗ · 11 files
@@ -83,13 +82,15 @@ pub(crate) fn CreateAttrStringValueFromCStr<'ll>( attr: &std::ffi::CStr, value: &std::ffi::CStr, ) -> &'ll Attribute {+ let attr = attr.to_bytes();+ let value = value.to_bytes(); unsafe { LLVMCreateStringAttribute( llcx,- (*attr).as_ptr(),- (*attr).to_bytes().len() as c_uint,- (*value).as_ptr(),- (*value).to_bytes().len() as c_uint,+ attr.as_ptr(),+ attr.len() as c_uint,+ value.as_ptr(),+ value.len() as c_uint, ) } }
Don't parse error message lines as stack frames in the server error inspectorTypeScript · 49 + / 2 −
Introduces 2 new declarations in packages/next/src/server/patch-error-inspect.ts.
Adds new framework internals rather than adjusting what was there. Read the linked PR for the surrounding test context.
packages/next/src/server/patch-error-inspect.ts ↗ · 3 files
@@ -164,16 +164,63 @@ function computeErrorName(error: Error): string { return error.name || 'Error' } +// Records where the frames start in a stack produced by+// `prepareUnsourcemappedStackTrace`, so they can be parsed without having to+// guess where the message ends. Uses `Symbol.for` since this module is bundled+// into several runtimes, and any copy may have formatted a given stack.+const STACK_FRAMES_START = Symbol.for('next.dev.stackFramesStart')+type ErrorWithStackFramesStart = Error & {+ [STACK_FRAMES_START]?: { stack: string; framesStart: number }+}+ function prepareUnsourcemappedStackTrace( error: Error, structuredStackTrace: any[] ): string { const name = computeErrorName(error) const message = error.message || '' let stack = name + ': ' + message+ const framesStart = stack.length for (let i = 0; i < structuredStackTrace.length; i++) { stack += '\n at ' + structuredStackTrace[i].toString() }+ // Record where the real stack frames start+ try {+ // Non-enumerable so that it doesn't show up when inspecting the error.+ Object.defineProperty(error, STACK_FRAMES_START, {+ value: { stack, framesStart },+ configurable: true,+ writable: true,+ })+ } catch {+ // The error may be frozen. We'll fall back to finding the frames by
[Model] Support MiniCPM-V 4.7C++ · 406 + / 28 −
Introduces 3 new declarations in tools/mtmd/mtmd.cpp.
Adds new runtime rather than adjusting what was there. Read the linked PR for the surrounding test context.
tools/mtmd/mtmd.cpp ↗ · 23 files
@@ -2494,6 +2623,67 @@ size_t mtmd_image_tokens_get_ny(const mtmd_image_tokens * image_tokens) { return image_tokens->ny; } +// map a tile coordinate onto the canvas like the reference: round(linspace(0, canvas - 1, grid)), round() breaks ties to even+static uint32_t mtmd_canvas_scale(uint32_t coord, uint32_t grid, uint32_t canvas) {+ if (grid <= 1 || canvas <= 1) {+ return 0;+ }+ const double v = (double) coord * (double) (canvas - 1) / (double) (grid - 1);+ return std::min((uint32_t) std::nearbyint(v), canvas - 1);+}++// MTMD_POS_TYPE_CANVAS: every tile shares the <image> token before the chunk as origin+// the overview is stretched over the whole canvas, each slice fills its own cell; the time component is the origin, in slot z+// a tile takes one position in slot t (the KV cache position), the separators after it take one position each+static mtmd_decoder_pos mtmd_canvas_decoder_pos(const mtmd_image_tokens * image_tokens, llama_pos pos_0, size_t i) {+ const auto & entries = image_tokens->batch_f32.entries;+ const auto & grid = entries[0].anyres;+ const uint32_t nx = image_tokens->nx;+ const uint32_t ny = image_tokens->ny;+ const uint32_t canvas_w = grid.is_tiled() ? grid.grid_x * nx : nx;+ const uint32_t canvas_h = grid.is_tiled() ? grid.grid_y * ny : ny;+ const uint32_t base = pos_0 - 1;++ mtmd_decoder_pos pos;+ uint32_t t = pos_0;+ for (size_t k = 0; k < entries.size(); ++k) {+ const auto [gw, gh] = image_tokens->canvas_tile_grid(k);+ if (i < gw * gh) {+ const uint32_t row = i / gw;+ const uint32_t col = i % gw;+ uint32_t h;+ uint32_t w;
DEPR: negative min_count in reductions (GH#50022)Python · 71 + / 9 −
Introduces 1 new declaration in pandas/core/groupby/groupby.py.
Adds new core implementation rather than adjusting what was there. Tests changed with it, with code of their own.
pandas/core/groupby/groupby.py ↗ · 15 files
@@ -2955,7 +2958,7 @@ def prod_compat(obj: NDFrameT): def min( self, numeric_only: bool = False,- min_count: int = -1,+ min_count: int = 0, skipna: bool = True, engine: Literal["cython", "numba"] | None = None, engine_kwargs: dict[str, bool] | None = None,