droboticflow/scripts/verification-scopes.json

250 lines
6.7 KiB
JSON

{
"version": 1,
"scopes": [
{
"name": "review-navigation",
"paths": [
"^src/(pages/AnnotationOperations\\.tsx|hooks/useReviewContinuation\\.ts|services/api/review-continuation\\.ts)$",
"^internal/api/review_(continuation|trace)",
"^tests/browser/review-trace\\.mjs$"
],
"frontend": [
"tests/frontend/annotation-project-loading.test.mjs"
],
"go": {
"./internal/api": [
"^TestReviewContinuation"
]
},
"task": [
{
"argv": [
"go",
"test",
"./internal/api",
"-run",
"^TestReviewTraceBrowserReplica$",
"-count=1",
"-timeout=3m",
"-v"
],
"env": {
"REVIEW_TRACE_BROWSER_TEST": "1"
},
"tests": true
}
]
},
{
"name": "source-and-buffer",
"paths": [
"^src/(pages/AnnotationOperations\\.tsx|services/api/annotation-operations\\.ts)$",
"^internal/(api|store)/annotation_(source|work_buffer|claim_read|claim_visit|random_claim)",
"^internal/store/human_claim",
"^tests/browser/annotation-source-validation-replica\\.mjs$"
],
"frontend": [
"tests/frontend/annotation-buffer-*.test.mjs",
"tests/frontend/annotation-source-validation-ui.test.mjs"
],
"go": {
"./internal/api": [
"^TestSourceValidation",
"^TestPendingSourceValidation",
"^TestWorkBufferRetains",
"^TestRandomClaim"
],
"./internal/store": [
"^TestSourceAdmissionMemoryClaimFence$"
]
},
"task": [
{
"argv": [
"go",
"test",
"./internal/store",
"-run",
"^TestSourceAdmissionMongo(ClaimFence|BatchMatchesLegacyPipeline)$",
"-count=1",
"-timeout=3m",
"-v"
],
"env": {
"SOURCE_ADMISSION_LOCAL_MONGO": "1"
},
"tests": true
},
{
"argv": [
"go",
"test",
"./internal/api",
"-run",
"^TestSourceValidationBrowserReplica$",
"-count=1",
"-timeout=3m",
"-v"
],
"env": {
"SOURCE_VALIDATION_BROWSER_TEST": "1"
},
"tests": true
}
],
"warnings": [
"涉及准入/轮询:核对真实规模下查询次数、扫描量、超时与并发;局部回归不等于容量通过。"
]
},
{
"name": "pool-search",
"paths": [
"^src/pages/AnnotationOperations\\.tsx$",
"^src/.*(pool|Pool|human-loop)",
"^internal/(api|store)/(human_pool|admin_annotation_pool|human_loop)",
"^tests/browser/(review-pool-search|admin-annotation-pool)"
],
"frontend": [
"tests/frontend/annotation-pool-*.test.mjs",
"tests/frontend/review-pool-preview.test.mjs"
],
"go": {
"./internal/api": [
"^TestHumanPoolSearch",
"^TestHumanPoolQCProjectScope"
]
},
"task": [
{
"argv": [
"go",
"test",
"./internal/api",
"-run",
"^TestReviewPoolSearchBrowserReplica$",
"-count=1",
"-timeout=3m",
"-v"
],
"env": {
"REVIEW_POOL_BROWSER_TEST": "1"
},
"tests": true
}
]
},
{
"name": "annotation-editing",
"paths": [
"^src/(pages/AnnotationOperations\\.tsx|components/CaptureAnnotationWorkbench\\.tsx)$",
"^src/.*(slice-edit|SliceEdit|annotation-persistence)",
"^internal/api/(annotation_draft|annotation_slice|slice_recovery|slice_edit)",
"^tests/browser/(rework-boundary|slice-edit)"
],
"frontend": [
"tests/frontend/annotation-persistence.test.mjs",
"tests/frontend/slice-edit-session.test.mjs",
"tests/frontend/annotation-authoritative-mutation.test.mjs"
],
"go": {},
"task": [
{
"argv": [
"go",
"test",
"./internal/api",
"-run",
"^TestReworkBoundaryBrowserReplica$",
"-count=1",
"-timeout=3m",
"-v"
],
"env": {
"REWORK_BOUNDARY_BROWSER_TEST": "1"
},
"tests": true
}
]
},
{
"name": "review-decisions",
"paths": [
"^src/(pages/AnnotationOperations\\.tsx|components/CaptureAnnotationWorkbench\\.tsx)$",
"^src/.*([Rr]eview[Dd]raft|review-draft|[Rr]eview[Dd]ecision|review-decision)",
"^internal/api/review_(draft|decision|confirmation)",
"^tests/browser/review-(draft|decision|authoring)"
],
"frontend": [
"tests/frontend/review-decision-controller.test.mjs",
"tests/frontend/review-decision-completion.test.mjs",
"tests/frontend/review-draft-persistence.test.mjs",
"tests/frontend/review-draft-autosave.test.mjs"
],
"go": {},
"task": [
{
"argv": [
"npm",
"run",
"test:browser:review-drafts"
],
"tests": true
},
{
"argv": [
"npm",
"run",
"test:browser:review-decisions"
],
"tests": true
},
{
"argv": [
"npm",
"run",
"test:browser:review-permissions"
],
"tests": true
}
]
},
{
"name": "dashboards",
"paths": [
"^src/.*([Dd]ashboard|WorkforceStatistics|annotation-output)",
"^internal/(api|store)/(production_(dashboard|stats)|annotation_output|workforce)",
"^internal/(outputsnapshot|workforcestats)/",
"^tests/browser/.*dashboard"
],
"frontend": [
"tests/frontend/dashboard-presentation.test.mjs",
"tests/frontend/production-quality-dates.test.mjs"
],
"go": {
"./internal/api": [
"^TestProductionDashboardScopeIsolationAndFullCorpus$"
]
},
"task": [
{
"argv": [
"npm",
"run",
"test:browser:dashboard"
],
"tests": true
},
{
"argv": [
"python3",
"scripts/test_dashboard_stability.py"
]
}
],
"warnings": [
"统计/查询改动须额外记录同数据规模的性能对照;完整 120 人容量另行验收。"
]
}
]
}