feat: AI Agent-driven test infrastructure (Phase 1)#24084
Closed
feat: AI Agent-driven test infrastructure (Phase 1)#24084
Conversation
Implement the foundation for an AI Agent-driven testing system: - pkg/testinfra/types: Core types (TestPlan, TestTask, DiffSummary, etc.) - pkg/testinfra/planner: PR diff analyzer, code path→test category mapping, and TestPlan generator - pkg/testinfra/executor: Test execution interface wrapping existing optools - pkg/testinfra/dedup: SQL fingerprinting and test case deduplication - cmd/mo-testplan: CLI tool for generating TestPlans from git diffs - .github/workflows/testplan.yaml: GitHub Action for automatic TestPlan generation on PRs Agent-Logs-Url: https://github.com/matrixorigin/matrixone/sessions/259914fa-6e60-401c-b7f3-d78061d5ae7b Co-authored-by: Ariznawlll <108530700+Ariznawlll@users.noreply.github.com>
Agent-Logs-Url: https://github.com/matrixorigin/matrixone/sessions/259914fa-6e60-401c-b7f3-d78061d5ae7b Co-authored-by: Ariznawlll <108530700+Ariznawlll@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
Ariznawlll
April 8, 2026 03:24
View session
|
|
Copilot AI
added a commit
that referenced
this pull request
Apr 8, 2026
Cherry-picked from copilot/add-new-feature-to-project branch (PR #24084): - pkg/testinfra/types/ — Domain types - pkg/testinfra/planner/ — Diff parser + path→test mapping - pkg/testinfra/executor/ — Test execution interface - pkg/testinfra/dedup/ — SQL fingerprinting & dedup - cmd/mo-testplan/ — CLI tool - .github/workflows/testplan.yaml — CI workflow Agent-Logs-Url: https://github.com/matrixorigin/matrixone/sessions/01a80fb2-03a5-4645-8d55-6b07eada549b Co-authored-by: Ariznawlll <108530700+Ariznawlll@users.noreply.github.com>
15 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.
Foundational infrastructure for automated test planning from PR diffs: parse changed files → map to test categories → generate structured TestPlan → deduplicate SQL cases → execute via local runner. Phase 1 of agent-driven CI.
New packages (
pkg/testinfra/)types/— Domain types:TestPlan,TestTask,DiffSummary,FileChange, priority/status enums, JSON round-tripplanner/— Unified diff parser (files, packages, functions from hunk headers), 22 static path→test-category mapping rules (e.g.pkg/sql/plan/→ optimizer BVT,pkg/vm/engine/disttae/→ disttae UT),Plannercombining diff + mapping into a prioritized TestPlan with SCA/UT/BVT tasksexecutor/—Executorinterface +LocalExecutorwrappinggo test/go vet/mo-tester, sequentialExecutePlanorchestratordedup/— SQL fingerprinting (normalize case/whitespace/literals → SHA-256),.testfile parser handling mo-tester tags (@bvt,@sortkey), batch dedup with duplicate-group reportingCLI + CI
cmd/mo-testplan/—git diff | mo-testplan --pr 42 --base main --format json|summary.github/workflows/testplan.yaml— PR open/sync trigger → generate TestPlan → upload artifact → post summary commentUsage