Skip to content

Keep placement test setup outside the HTTP deadline - #1019

Merged
zlareb1 merged 3 commits into
mainfrom
fix/cell-place-http-deadline-tests
Nov 20, 2026
Merged

zlareb1 merged 3 commits into
mainfrom
fix/cell-place-http-deadline-tests

Conversation

@zlareb1

@zlareb1 zlareb1 commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

Linked issues

Related: #1024

Changelog category

  • Not for changelog (changelog entry is not required)

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

  • Source parsing, unchanged test-function AST comparison and whitespace checks pass.
  • Focused command: .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.
  • The published placement component passed all six cases in hosted CI on its exact reviewed tree. Its full run still failed the native rollup case; those results are retained and do not qualify this composed head.
  • The rollup component passed static AST comparison; its focused local lint attempt was refused before execution. On this composed head, the native integration job passed 545 tests with 173 skipped. Its quiet output does not list individual passing nodes.
  • Fresh independent whole-change review found no findings. All required checks and workflows passed on this composed head. No CI retry or waived test is part of this change.

AI assistance

AI assistance was used for diagnosis and the fixture change. Independent source review and hosted execution remain separate checks.

Checklist

  • Production behavior and existing assertions are unchanged; the inherited fixture checkpoint is disclosed.
  • Local execution limits and prior failures are disclosed.
  • Fresh independent review has no findings.
  • Required current-head CI passes.

@zlareb1
zlareb1 marked this pull request as ready for review November 20, 2026 10:21
@zlareb1
zlareb1 merged commit af58a61 into main Nov 20, 2026
46 checks passed
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant