Repository navigation
Keep the cancelled first-set test in one coalescing window - #934
Merged
Merged
Conversation
The ordering assertion requires all three calls to share a window. Use the existing manual clock so scheduler delay cannot turn the third call into an independent point write. Signed-off-by: zlareb1 <[email protected]>
6 tasks done
zlareb1
added a commit
that referenced
this pull request
Nov 18, 2026
Related: #755, #934 ### Changelog category (leave one): - Build/Testing/Packaging Improvement ### Changelog entry (one or two sentences a user of Loom can read without the diff; the release pull request collects these into the release notes): The n8n package builds resolve patched glob matching, query serialization and UUID dependencies. A pinned assembler backport prevents prototype injection while retaining the toolchain's CommonJS API. ### Why The n8n dependency graph includes vulnerable minimatch, qs and uuid versions. The package-manager pin uses 10.34.9, above the fixed 10.34.5 release for [pnpm tarball path traversal](GHSA-vq4v-j7r6-jq4m) and [pnpm store-linker path traversal](GHSA-c59q-g84q-2gj5). Scoped package-manager overrides select the patched versions while retaining the existing direct toolchain and application dependencies. ### Scope and risk The n8n manifest, generated lockfile, dependency patch, patch provenance and regression tests change. The overrides select minimatch 11.0.8 for vulnerable versions from 7 through 11.0.0, qs 6.16.1 for the affected 6.x range and uuid 11.1.1 for uuid 10.0.0. They address [minimatch preprocessing amplification](GHSA-g3hv-75wg-m249), [qs comma-array serialization](GHSA-6pq8-jhm2-2vcw) and [UUID buffer bounds](GHSA-w5hq-g745-h8pq). The minimatch and uuid selections cross a major version because their callers pin an affected major. Both selected versions retain CommonJS and ESM entry points. The n8n package requires Node.js 24; minimatch 11 supports that runtime. The matching APIs used by the toolchain and the no-options UUID generation APIs used by the consumers remain available. The recorded build and lint checks exercise the security overrides; CI checks their composition with the merged dependency update. Existing minimatch 3 remains outside the override. The stream-json 1.9.1 assembler receives a minimal backport of [the upstream prototype-injection fix](uhop/stream-json@2f2d35b). Both ordinary and reviver writes define `__proto__` as an own data property. The package manager binds the patch SHA256 in the frozen lockfile. This is a local mitigation on 1.9.1, not an upstream fixed-version claim. Upstream 3.6 changes the assembler API and cannot replace the current toolchain import directly. The manifest and lockfile retain the esbuild update merged by the linked pull request. This change does not claim to resolve other dependency advisories. ### Compatibility, rollout and rollback - Wire: no operation, field or default changes. - Operator steps: none. Frozen installs use the regenerated lockfile and its scoped overrides. - Rollback: reverting the manifest and lockfile restores the prior dependency graph; no stored data changes. ### Tests The [hosted n8n package job on this head](https://github.com/ClickHouse/loom/actions/runs/44414855365/job/135192339222) passes frozen installation with pnpm 10.34.9, build, lint, both dependency-security regressions, package creation and loading without development dependencies: 11 passes and one existing live-test skip. - The same assembler regression fails against the original unpatched dependency while its ordinary-value control passes. The patch and both tests remain unchanged. - Earlier dependency API smoke checks pass for UUID generation and bounds rejection, query serialization and glob matching. No blanket dependency-audit clearance is claimed. - Whitespace and source-union checks pass. All 54 checks are terminal: 53 pass and the release-only publish check is skipped. All five applicable workflows pass, including full unit, integration, Postgres-authority, coverage and offline benchmark checks. - No live n8n deployment is qualified. No broad local suite, service or dependency installation was started for this composition. ### AI assistance in the code (leave one; writing this description with AI is fine): - AI-generated: Codex traced the dependency consumers, checked upstream advisories, backported the assembler fix, wrote its regression controls and checked the dependency API controls. - [x] I can explain every line of this diff and how it interacts with the rest of Loom. ### Checklist - [x] Full checks pass in CI on this head. - [x] The package manager regenerates the lockfile; it is formatted for repository checks. - [x] No migrations, wire fields, plugin behavior or frontend source change. - [x] Repository text follows the public-copy rules. - [x] Commits are signed off.
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.
Related: #855
Related: #932
Changelog category (leave one):
Changelog entry (one or two sentences a user of Loom can read without the diff; the release pull request collects these into the release notes):
The first-set cancellation test controls the clock so its writes share one coalescing window.
Why
The test requires a bulk flush behind an unfinished point write. Yielding a fixed number of event-loop turns does not establish that all three calls fit inside one 200 ms window. If the window expires before the third call submits, that call can become a point write in a new window and finish while the earlier write waits.
The existing manual clock holds this test in the window it intends to exercise. Explicitly closing the window still starts the flush, and the test still requires the cancelled caller's write to land before that flush.
Scope and risk
One test gains the existing clock fixture. Its cancellation, gates, both ordering assertions and scheduling yields remain unchanged. The SDK implementation and 200 ms window are unchanged. The separate close-cancellation test is unaffected.
Compatibility, rollout and rollback
Tests
python -m pytest -q tests/unit/test_sdk_set_coalescer.py::test_a_first_set_its_caller_cancels_still_lands_before_the_windows_flush— 1 passed in 1.64s.AI assistance in the code (leave one; writing this description with AI is fine):
AI-generated: Codex wrote the clock setup. Source review checked the coalescer's window and cancellation behavior; a bounded witness checked the scheduling premise, and AST comparison checked the preserved assertions.
I can explain every line of this diff and how it interacts with the rest of Loom.
Checklist
make format-check,make lint,make typecheckandmake test-unitpass; the integration suite passes if server behaviour changed.git commit -s).