Repository navigation
Keep placement test setup outside the HTTP deadline - #1019
Merged
Merged
Conversation
Signed-off-by: zlareb1 <[email protected]>
5 tasks done
Signed-off-by: zlareb1 <[email protected]>
3 of 5 tasks
Signed-off-by: zlareb1 <[email protected]>
This was referenced Nov 20, 2026
zlareb1
marked this pull request as ready for review
November 20, 2026 10:21
zlareb1
added a commit
that referenced
this pull request
Nov 20, 2026
### Changelog category (leave one): - Build/Testing/Packaging Improvement ### Changelog entry The TypeScript memory tool accepts the 1.11.x SDK series alongside 1.8.x, with native tool-runner checks for both supported bands. ### Why The optional peer range rejects the current SDK series even though the adapter uses its existing native memory-tool interface. Add a separate supported band and qualify it in CI. The locked development baseline remains 1.8.x; intermediate series are not declared supported without qualification. ### Scope and risk The package manifest, lockfile and two integration references gain the additional peer band. Three regressions drive the real native tool runner with synthetic model and storage responses: file creation and retrieval across fresh histories, path refusal before storage I/O, and a denied write returned as a tool error. They also check that application identity is retained when model arguments contain another scope. The adapter implementation and storage operations do not change. The added CI step installs the second supported SDK band after the existing baseline checks, then checks types, native memory tests and package exports. A dependency or native protocol change can fail that qualification. Two test-only fixture repairs from #1019 are composed as a CI dependency. The inert HTTP transport is prepared before its request deadline, and the fake cleanup phase uses the existing manual-clock seam while the HTTP work deadline stays real. The native rollup fixture pauses and waits for its refresh before seeding equal-timestamp rows. Assertions, production deadlines and SQL remain unchanged. ### Compatibility, rollout and rollback - Wire: no operations, fields or defaults change. - Operator steps: none. - Rollback: reverting restores the previous peer range; there are no migrations or stored-data changes. ### Tests - Narrow strict TypeScript compilation of the new regression and its imports against the installed baseline SDK passes. - Scoped Biome formatting/lint, lockfile semantic comparison and `git diff --check` pass. - The adopted local environment's whole-SDK type check fails because unrelated optional adapter development dependencies are absent. This is not reported as a passing check. - The three runtime regressions have not run locally: resource admission refused before execution. No broad local suite was run. On the SDK-only revision, hosted baseline tests passed (647 cases and 11 exports checks); the added 1.11 type check, 26 native memory cases and 11 exports checks passed. That head still failed its deadline fixtures; these results are component evidence, not a passing result for this composed head. - Full hosted CI on the final head passes, including all six unit shards, all four integration shards, both Postgres authority jobs, the baseline SDK suite, the 1.11 native-memory qualification and package exports. The fixture files also pass scoped Ruff checks and formatting; placement test functions retain identical ASTs. Local runtime checks remain unrun. ### AI assistance in the code (leave one; writing this description with AI is fine): - AI-generated: Codex prepared the changes. Independent review checks the complete diff, native helper contracts, identity forwarding, error behavior and CI coverage. - [x] I can explain every line of this diff and how it interacts with the rest of Loom. ### Checklist - [x] `make format-check`, `make lint`, `make typecheck` and `make test-unit` pass; the integration suite passes if server behaviour changed. - [x] Generated operation, schema and plugin files require no changes. - [x] No migration is added or edited. - [x] No plugin behavior changes. - [x] No frontend changes. - [x] Integration documentation matches the declared peer bands; there are no operator steps or wire changes. - [x] Repository text describes the public integration and its supported versions. - [x] Commits are signed off (`git commit -s`), as CONTRIBUTING.md asks.
8 of 9 tasks
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.
Linked issues
Related: #1024
Changelog category
Changelog entry
Not required.
Why
The placement HTTP tests share a short phase allowance between mock transport construction and a delayed reply. Their fake connection cleanup also consumes wall time while waiting for task scheduling. A hosted run failed the two timely-reply cases and a cancellation cleanup assertion. The exact scheduling interval in that run was not recorded.
Prepare the inert transport before the phase and use the existing manual-clock pattern for the fake connection's cleanup allowance. The asynchronous work timer remains real, as does the delayed reply.
Scope and risk
The placement test fixture changes. All six cases and their assertions remain unchanged, including cancellation order, termination checks, no local write after refusal, and separate local and HTTP phase bounds. The HTTP allowance, local allowance, reply delay and elapsed-time assertions keep their values. This does not change production code or establish the cause of every prior deadline failure.
The branch also includes the published native rollup fixture checkpoint from the linked pull request. That checkpoint pauses and drains the test-owned view before three equal-timestamp inserts, retaining every aggregate-state assertion. It is included so current CI can test both corrections after the preceding run reported a missing marked-only row. The exact scheduled-refresh interleaving in that failure was not recorded. No production query or migration changes.
Compatibility, rollout and rollback
No wire, schema, setting or operator changes. Revert the test fixture changes to roll back.
Tests
.venv/bin/python -m pytest tests/unit/test_cell_place_http_deadline.py -q. The supervised local attempt was refused before execution below the unchanged memory admission floor; no local pass is claimed.AI assistance
AI assistance was used for diagnosis and the fixture change. Independent source review and hosted execution remain separate checks.
Checklist