Selected changesmerged Nov 20, 2026
fix: Fire Tabulator on_edit when its edit event arrives after the data patchPython · 51 + / 7 −
Introduces 4 new declarations in panel/widgets/tables.py.
Adds new core implementation rather than adjusting what was there. Tests changed with it, with code of their own.
panel/widgets/tables.py ↗ · 3 files
@@ -1879,17 +1912,28 @@ def _process_event(self, event) -> None: for cb in self._on_click_callbacks.get(event_col, []): state.execute(partial(cb, event), schedule=False) + def _edit_applied(self, event: TableEditEvent, column: str, indexed: bool) -> bool:+ if _values_equal(event.old, event.value) or not (0 <= event.row < len(self.value)):+ return False+ if indexed:+ current = self.value[column].iloc[event.row]+ else:+ current = to_narwhals(self.value).item(event.row, column)+ return _values_equal(current, event.value)+ def _fire_pending_edits(self, column: str, index) -> None: if not self._pending_edits: return for ind in index: events = self._pending_edits.pop((column, ind), None)- if not events:- continue- for event in events:- for cb in self._on_edit_callbacks:- state.execute(partial(cb, event), schedule=False)- self._update_style()+ if events:+ self._fire_edits(events)++ def _fire_edits(self, events: list[TableEditEvent]) -> None:+ for event in events:+ for cb in self._on_edit_callbacks:+ state.execute(partial(cb, event), schedule=False)+ self._update_style() def _get_theme(self, theme, resources=None):
test_runner: junit fixesJavaScript · 76 + / 22 −
Introduces 5 new declarations in lib/internal/test_runner/reporter/junit.js.
Adds new runtime rather than adjusting what was there. Tests changed with it, with code of their own.
lib/internal/test_runner/reporter/junit.js ↗ · 5 files
@@ -64,17 +77,56 @@ function isSkipped(node) { return (node?.children && ArrayPrototypeSome(node.children, (c) => c.tag === 'skipped')) || node?.attrs?.skipped; } +function setSuiteAttrs(node, tests) {+ node.tag = 'testsuite';+ node.attrs.disabled = 0;+ node.attrs.errors = 0;+ node.attrs.tests = tests;+ node.attrs.failures = ArrayPrototypeFilter(node.children, isFailure).length;+ node.attrs.skipped = ArrayPrototypeFilter(node.children, isSkipped).length;+}++// Give a test that started but never reported a result (e.g. because a test+// child process exited before all of its output was read) a valid element.+// A leaf is reported as a failure so that lost results don't look green.+function closeIncomplete(node) {+ const tests = ArrayPrototypeFilter(node.children, (c) => c.comment == null).length;+ if (tests > 0) {+ setSuiteAttrs(node, tests);+ node.attrs.hostname = HOSTNAME;+ return;+ }+ const message = 'test did not report a result';+ node.tag = 'testcase';+ node.attrs.classname = 'test';+ node.attrs.failure = message;+ ArrayPrototypePush(node.children, {+ __proto__: kEmptyObject, nesting: node.nesting + 1, tag: 'failure',+ attrs: { __proto__: kEmptyObject, type: 'incomplete', message },+ });+}+ module.exports = async function* junitReporter(source) {
Clearer diagnostics when `&FnOnce` was provided when `FnOnce` was expectedRust · 125 + / 21 −
Introduces 6 new declarations in compiler/rustc_trait_selection/src/error_reporting/traits/fulfillment_errors.rs.
Adds new language design rather than adjusting what was there. Tests changed with it, with code of their own.
compiler/rustc_trait_selection/src/error_reporting/traits/fulfillment_errors.rs ↗ · 6 files
@@ -3675,6 +3714,38 @@ impl<'a, 'tcx> TypeErrCtxt<'a, 'tcx> { } } + fn infer_closure_origin(+ &self,+ closure_def_id: DefId,+ ) -> Option<(Span, rustc_middle::hir::place::Place<'tcx>)> {+ let typeck_results = self.typeck_results.as_ref()?;+ let local_def_id = closure_def_id.as_local()?;+ let hir_id = self.tcx.local_def_id_to_hir_id(local_def_id);+ typeck_results.closure_kind_origins().get(hir_id).cloned()+ }++ fn report_ref_to_fn_once_error(+ &self,+ closure_def_id: DefId,+ trait_prefix: &'static str,+ kind_origin: Option<(Span, rustc_middle::hir::place::Place<'tcx>)>,+ cause_span: Span,+ ) -> Diag<'a> {+ let origin = kind_origin.or_else(|| self.infer_closure_origin(closure_def_id));++ let err = RefToFnOnce {+ cause_span,+ trait_prefix,+ fn_once_label: origin.map(|(span, place)| ClosureFnOnceLabel {+ span,+ place: ty::place_to_string_for_capture(self.tcx, &place),+ trait_prefix,+ }),+ };++ self.dcx().create_err(err)
Admit in-place pod resizes as a transaction v3Go · 523 + / 8 −
Introduces 24 new declarations in pkg/kubelet/cm/cpumanager/admit_transaction.go.
Adds new systems design rather than adjusting what was there. Tests changed with it, with code of their own.
pkg/kubelet/cm/cpumanager/admit_transaction.go ↗ · 20 files
@@ -0,0 +1,241 @@+/*+Copyright The Kubernetes Authors.++Licensed under the Apache License, Version 2.0 (the "License");+you may not use this file except in compliance with the License.+You may obtain a copy of the License at++ http://www.apache.org/licenses/LICENSE-2.0++Unless required by applicable law or agreed to in writing, software+distributed under the License is distributed on an "AS IS" BASIS,+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+See the License for the specific language governing permissions and+limitations under the License.+*/++package cpumanager++import (+ "context"+ "fmt"++ v1 "k8s.io/api/core/v1"+ "k8s.io/klog/v2"++ podutil "k8s.io/kubernetes/pkg/api/v1/pod"+ "k8s.io/kubernetes/pkg/kubelet/cm/cpumanager/state"+ "k8s.io/kubernetes/pkg/kubelet/cm/topologymanager"+ "k8s.io/kubernetes/pkg/kubelet/lifecycle"+ "k8s.io/utils/cpuset"+)++var _ topologymanager.AdmitTransactionalHintProvider = &manager{}
feat(asr): sequence-packed teacher forcing in the Transformer decoderPython · 320 + / 2 −
Introduces 7 new declarations in nemo/collections/asr/parts/submodules/packed_attention.py.
Adds new core implementation rather than adjusting what was there. Tests changed with it, with code of their own.
nemo/collections/asr/parts/submodules/packed_attention.py ↗ · 7 files
@@ -275,6 +281,90 @@ def packed_attention_supports_dropout(device: torch.device, dtype: torch.dtype, return _get_flash_attention_varlen_for_device(device) is not None +def packed_cross_attention(+ q: Tensor,+ k: Tensor,+ v: Tensor,+ query_context: PackedAttentionContext,+ key_context: PackedAttentionContext,+ *,+ causal: bool = False,+ dropout_p: float = 0.0,+ scale: float | None = None,+) -> Tensor:+ """Attend from token-flat queries to the token-flat keys of the same sequence, without a position bias.++ On CUDA this runs variable-length FlashAttention and raises when that does not apply+ (float32, a head width above 256 or not divisible by 8, a GPU before Ampere):+ the dense attention below would be several times slower than the padded attention.+ On the CPU the sequences are attended one at a time with dense attention,+ which is also the reference of the unit tests.++ Args:+ q: queries, shape ``(Q_total, H, d_k)``.+ k: keys, shape ``(K_total, H, d_k)``, packed in the same sequence order as the queries.+ v: values, shape ``(K_total, H, d_k)``.+ query_context: packing metadata of the queries.+ key_context: packing metadata of the keys; the same object as ``query_context`` in self-attention.+ causal: let every query see only the keys at its position or before; needs equal query and key lengths.+ dropout_p: dropout on the attention weights, in ``[0, 1)``.+ scale: positive score scale, ``1 / sqrt(d_k)`` by default.++ Returns: