fix(tests): ISSUE-267 backend test drift batches 1-2 + EventContext schema - #883
Draft
cursor[bot] wants to merge 5 commits into
Draft
fix(tests): ISSUE-267 backend test drift batches 1-2 + EventContext schema#883cursor[bot] wants to merge 5 commits into
cursor[bot] wants to merge 5 commits into
Conversation
Co-authored-by: hust..munos <3353532706@qq.com>
… drift Co-authored-by: hust..munos <3353532706@qq.com>
…egraded field Co-authored-by: hust..munos <3353532706@qq.com>
- Add shared db_isolation (TRUNCATE + Redis cleanup) with proper ORM import - Fix test setup: FK-safe teardown order, connector seeds, audit/guard context - Update tests for current semantics (analysis_only API, chat mock, trace projection) - Fix mock pipeline signatures and background task scheduling in events API tests - Pass compensation writeback guard_context; flush on scope activation retire - Export EventContext contract; align schema export test with model_json_schema() - Playbook ledger replay via _prepare_response_plan_task_for_claim Co-authored-by: hust..munos <3353532706@qq.com>
Upload junit-default and timing-round XML artifacts; surface the 25 slowest tests (>=0.5s) in CI logs. Align make ci-test with the same pytest flags. Co-authored-by: hust..munos <3353532706@qq.com>
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.
Summary
Fixes backend test drift clusters for ISSUE-267 by updating tests and contracts to match current production behavior.
Batch 1 — Celery / graph quick fixes
generate_reportto_fake_bodymock in celery redelivery matrix testdispatch_investigationkwargs assertions to includegenerate_report: Trueregister_scriptto_FakeRedisfor broker-unavailable 503 testdegraded/summaryfieldsBatch 2 — Detection scope tests
uq_detection_scope_revision_one_active_per_instancewhen testing ambiguous scope bindingsession.scalarsfor resolver/service testsContracts
contracts/schemas/EventContext.jsonwithInvestigationReport.degradedcomputed field (serialization schema)Test status