Repository navigation
The audit-v1 and set-from-messages integration tests run under a minted token instead of skipping without self-signup - #376
Merged
Conversation
…ed token test_audit_v1.py (5 tests) and test_memory_set_from_messages.py (3 tests) got their identity from /v1/auth/self-signup and skipped on a 404. CI does not set LOOM_SELF_SIGNUP, whose default is off, so all 8 skipped on every run: lexical search, per-type retention expires_at, outcome evidence counts, memory.list sort_by=score, the namespace.get audit fields and memory.set_from_messages were never exercised. Each test now takes a fresh org from unique_org(...) and a token from the mint_test_token fixture, as test_search_keys_resolve_round_trip.py does. The assertions are unchanged. Run against a local server with auth off and the fake embedder and LLM: 8 passed, 0 skipped, on two consecutive runs. An earlier run on the same loaded machine had 2 memory.set_from_messages calls exceed the 8 s client timeout; the passing calls take 1 to 3 s. Signed-off-by: zlareb1 <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ages calls get a 20 s client timeout Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…dule docstring names it Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
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.
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):
Why
tests/integration/test_audit_v1.py(5 tests) andtests/integration/test_memory_set_from_messages.py(3 tests) got their identity from/v1/auth/self-signupand skipped when it failed. CI does not setLOOM_SELF_SIGNUP, whose default isoff, so the endpoint answers 404 and all eight skipped on every run: hybrid lexical search, per-type retentionexpires_at, outcome evidence counts, list sort-by-score, the audit-v1namespace.getfields andmemory.set_from_messageswere never exercised. The tests rule says integration tests never depend on self-signup.Each test now takes the
mint_test_tokenfixture and a fresh org fromunique_org(...), astest_search_keys_resolve_round_trip.pydoes, through one helper,minted_identityintests/integration/_resources.py, which returns theorg,namespace,subjectandtokenthe tests read. The test bodies and every assertion are unchanged. Now that thememory.set_from_messagestests run in CI, their client timeout is 20 s, as intest_search_keys_resolve_round_trip.py, instead of 8 s.Scope and risk
Two integration test files and one helper in
tests/integration/_resources.py. No server code.Compatibility, rollout and rollback
Tests
main, its own ClickHouse, auth off: 8 passed, 0 skipped. Under a load average of about 85 the old 8 s client timeout was hit twice onmemory.set_from_messages; the same calls take 1 to 3 s.AI assistance in the code (leave one; writing this description with AI is fine):
AI-generated (an agent wrote most of the diff): Claude Code; the test bodies and assertions were compared with
main(unchanged), and both files were run against an isolated server: 8 passed, 0 skipped.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.main; no merged migration is edited.frontend/changed.docs/describe the system as it now is, and this description names any operator steps and wire changes.git commit -s), as CONTRIBUTING.md asks.🤖 Generated with Claude Code