feat: AI Agent-driven test infrastructure (Phase 1)#24087
Open
Ariznawlll wants to merge 10 commits intomatrixorigin:mainfrom
Open
feat: AI Agent-driven test infrastructure (Phase 1)#24087Ariznawlll wants to merge 10 commits intomatrixorigin:mainfrom
Ariznawlll wants to merge 10 commits intomatrixorigin:mainfrom
Conversation
Foundational infrastructure for automated test planning from PR diffs: - pkg/testinfra/types: Domain types (TestPlan, TestTask, DiffSummary, FileChange, priority/status enums) - pkg/testinfra/planner: Unified diff parser, 22 static path→test-category mapping rules, Planner combining diff + mapping into prioritized TestPlan - pkg/testinfra/executor: Executor interface + LocalExecutor wrapping go test/go vet/mo-tester - pkg/testinfra/dedup: SQL fingerprinting (normalize case/whitespace/literals → SHA-256), .test file parser, batch dedup - cmd/mo-testplan: CLI tool for generating TestPlan from git diff - .github/workflows/testplan.yaml: PR trigger → generate TestPlan → upload artifact → post summary comment
|
Ariznawl@163.com seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
added 4 commits
April 8, 2026 19:10
- 6 test types: BVT, stability, chaos, bigdata, PITR, snapshot - LLM-powered analysis via GitHub Models API (gpt-4o-mini) - Smart category inference from changed file paths - Sample case loading for LLM format learning - SQL deduplication against existing test files (>50% overlap filter) - Precise targeting: only generates cases for types that truly need coverage - Writer module for auto-writing cases to correct locations - CLI: mo-testplan --pr N [--write] [--create-pr] [--json] - Expanded testing-guide.md with real formats for all 6 test types - 35+ unit tests across 6 packages
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:
What type of PR is this?
Which issue(s) this PR fixes:
A PR may generate a test plan, then automatically add related cases, and can eliminate duplicates with the current case. At the execution level, it can be arranged and scheduled by agents, and can be viewed and controlled through Enterprise WeChat.
issue ##24086
What this PR does / why we need it:
A PR may generate a test plan, then automatically add related cases, and can eliminate duplicates with the current case. At the execution level, it can be arranged and scheduled by agents, and can be viewed and controlled through Enterprise WeChat.